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.

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.

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.
  • 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.0.1

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.0.1
File Size Uploaded Provenance Actions
slyde-0.0.1.tar.gz 88.6 kB With provenance Details for slyde-0.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 108.9 kB

Release files / slyde-0.0.1.tar.gz

Download URL slyde-0.0.1.tar.gz
Size 88.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3ddc1b6fb15cac4347084fc0f6d735a9549b42f3fe134516e030a6966a1a26d8
BLAKE2b-256 checksum
How to use checksums
77d85aeb0f033e09894a7b2bfeb8af6b8cf7a00687567feab5d66b4436d8481f
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 14, 2026.

Transparency log

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

Download URL slyde-0.0.1-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69aaa8232567812bb45b11e63f243d48a78da1b90a06cb789aaedd31f1634a8d
BLAKE2b-256 checksum
How to use checksums
7d8b875b75c3ff071d2959dc8c393dda80694078f80b456a0941e89fa07dc42c
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 14, 2026.

Transparency log

Security for slyde 0.0.1

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.0.1.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 14, 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