fastslides
Turn notebooks, md or Solveit dialogs into a slide deck with one command.
pip install fastslides
fastslides talk.md # opens the slides in a browser
fastslides talk.ipynb --export # writes talk.html and talk.pdf next to it
The HTML is one self-contained file: local images inlined, arrow keys, Space and PageUp/PageDown move between slides, and the slide number is in the URL, so a reload keeps your place. --export also prints the page to a 16:9 PDF with a headless Chrome, which must be installed.
Writing slides
A slide deck is an ordinary document. A line containing only --- starts a new slide; headings never do. In a notebook or dialog, a note cell containing only --- breaks between cells. When any cell is exported (nbdev's #| export, or the Solveit export flag), only exported cells are rendered, so a working dialog can hold drafts and prompts beside the deck; --no-exported renders every cell. Code cells render as highlighted code with their stored outputs beneath.
Two columns: wrap the blocks in a fenced div.
::: {.cols}

- first point
- second point
:::
::: {.cols .narrow} makes the left column a quarter of the width. An image on its own line shrinks to the space left on the slide. A slide that still does not fit scrolls, which is the cue to cut it.
fastslides --help lists the options, which are viewmd's: --refs, --hl, --head my.css for your own styling, --math.
How it works
mdhtml parses the Markdown (and aidialog turns notebooks into Markdown first). mdhtml2slides cuts the parsed tree at top-level hr elements and renders each group with mdhtml2html, so every Markdown feature mdhtml supports works on a slide. The page is viewmd's, plus about forty lines of CSS and JS.
Metadata
Release files for fastslides 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastslides-0.0.2.tar.gz | 5.3 kB | Without provenance | Details for fastslides-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastslides-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for fastslides-0.0.2-py3-none-any.whl |
Total release size: 11.0 kB
Release files / fastslides-0.0.2.tar.gz
| Download URL | fastslides-0.0.2.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a16e693c55233f5cb790a98c49c535fea26b43e3e1f8342d9b890e5d1228f83
|
|
BLAKE2b-256 checksum How to use checksums |
c2f238bd2af53edfdf9da66d3bb822963ae529c3cec47ab4b899c3dc3fffbdb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / fastslides-0.0.2-py3-none-any.whl
| Download URL | fastslides-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e4cdf4917b531ae0d527ecc18420382ad921d49019d6f66a5f52dbff7279e34
|
|
BLAKE2b-256 checksum How to use checksums |
14a558904e8b38b974c51c2e87f6baa07e76dd02eb321ba2130d643451bf2241
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for fastslides 0.0.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.