Skip to main content

Slyde

Slyde is a native wxPython slideshow for editable Python percent notebooks. A slide is introduced by a # %% Title [slide] marker. Python and markdown cells after it belong to that slide until another slide marker appears.

Set up

Install uv and sync the project:

uv sync

On Linux, wxPython may need system GTK and WebKit development/runtime packages. Markdown uses wx.html2.WebView when available and falls back to wx.html.HtmlWindow.

Launch

uv run slyde
uv run slyde examples/interactive.py
uv run slyde examples/animation.py

examples/animation.py builds a square wave out of sine harmonics and uses each of the animate settings described below.

Cells run in the directory Slyde was launched from, so relative paths in a notebook resolve against it.

Without a path, use File → Open. A notebook with PEP 723 inline metadata is started through uv run --with for each declared dependency; its packages are made available in the GUI process, so code and embedded Matplotlib widgets share the notebook's environment. uv must be installed and available on PATH. When opening such a notebook from the file picker, Slyde starts a new app process under uv and closes the current window. This first run may resolve and download packages.

The example declares its packages at the top of the notebook:

# /// script
# requires-python = ">=3.11"
# dependencies = ["matplotlib", "numpy"]
# ///

Inline requirements are resolved by uv on demand. No adjacent lockfile is created automatically; add version bounds to dependency strings when a notebook needs tighter version constraints.

Notebook format

# /// script
# requires-python = ">=3.11"
# dependencies = ["matplotlib", "numpy"]
# ///

# %% Introduction [slide]
# %% [markdown]
# Use markdown cells to explain the idea.

# %% [slide]
# %% [markdown]
# Slides may contain more than one cell.

# %% Build a plot
import matplotlib.pyplot as plt

Supported cell types are Python (the default) and [markdown]. [slide] starts a new slide; text before the type marker is its optional title. Marker lines and the preamble are retained when saving. Only Python cells are editable in the UI.

Maths between dollar signs in a markdown cell is rendered as equations: $a^2 + b^2$ within a line, and $$ ... $$ on its own.

A marker may carry key="value" options after its type. [slide] takes animate:

# %% Results [slide] animate="bullet"
  • none shows the whole slide at once, and is the default.
  • paragraph reveals each top-level markdown block and each code cell one at a time.
  • bullet does the same, and also reveals list items one at a time.

Controls

  • Shift+Enter runs the focused Python cell.
  • The Kernel menu runs several cells at once or starts over:
    • Run All Cells (Cmd+Shift+A) runs every Python cell in the notebook.
    • Run Until Current Slide (Cmd+Shift+U) runs the Python cells on the slides before the current one.
    • Restart Kernel & Clear All Cells (Cmd+Shift+R) discards the shared namespace and every cell's output, after asking for confirmation.
  • Left/Up and Right/Down change slides when focus is outside a code editor, and step through the content of an animated slide before moving on; Cmd+Left/Up and Cmd+Right/Down work even while editing a cell (the platform command key is Ctrl on Windows/Linux).
  • Cmd+plus and Cmd+minus scale slide content between 50% and 200% (the platform command key is Ctrl on Windows/Linux).
  • F11 toggles full screen; Escape exits full screen.
  • View → Slide Size sets the window so the slide gets exactly the room a projector would, for rehearsing a deck at the size it will be shown.
  • Ctrl+S saves edits to the source .py file.

Python cells run in a shared namespace in the GUI process, one at a time. Printed output and exceptions appear below the cell, and long lines scroll horizontally instead of wrapping. Matplotlib figures created by a cell are embedded as interactive wx canvases with the standard toolbar for home, back/forward, pan, zoom, and save. A code cell is as tall as its source, and the plot beside it takes the size Matplotlib needs for it. A plot shrinks by up to 30% when that makes the slide fit the window; otherwise it stays full size and the slide scrolls. Output appears as it is produced, and the window stays usable while a cell runs. A queued run from the Kernel menu shows its progress in a strip at the bottom of the window, and stops at the first cell that raises, moving to that slide.

Metadata

Release files for slyde 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slyde 0.1.0
File Size Uploaded Provenance Actions
slyde-0.1.0.tar.gz 90.7 kB With provenance Details for slyde-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for slyde 0.1.0
File Interpreter ABI Platform Actions
slyde-0.1.0-py3-none-any.whl Python 3 none any Details for slyde-0.1.0-py3-none-any.whl

Total release size: 112.8 kB

Release files / slyde-0.1.0.tar.gz

Download URL slyde-0.1.0.tar.gz
Size 90.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c9c5bf702297cbea5d00f64536ea7d14d180950724e96018cc0f68f57367c665
BLAKE2b-256 checksum
How to use checksums
c12ff61acf433368772676c11d1b6b0b5f0b4d921e247627dc776fd4b766f4f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Release files / slyde-0.1.0-py3-none-any.whl

Download URL slyde-0.1.0-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d199518a407f90fe1a31a4d0c06708544cc65d97353b6f0edc8c39345c8fa4e
BLAKE2b-256 checksum
How to use checksums
43d9ad51900ef2cfb9eab1ffa735c482295b2a2547f985f3463a469ebae59fb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

Security for slyde 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for slyde-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page