Skip to main content

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}
![](logo.png)

- 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)

Source distribution for fastslides 0.0.2
File Size Uploaded
fastslides-0.0.2.tar.gz 5.3 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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