Slides & Present
Any notebook is also a slide deck. The same cells you edit group into slides by their headings — no separate authoring mode, no second copy of the content. Present them live in the browser, or export a typeset PDF deck.
Present mode — 📽 Present
☰ → 📽 Present (or ⌘⇧P) enters full-screen presentation. The notebook's cells are segmented into slides and shown one at a time.
Because the deck is the notebook, your figures, tables, and @bind controls are all live on the slide — a slider still drives its chart mid-presentation.
In the deck:
| Key | Action |
|---|---|
→ space / ← | next / previous step or slide |
⇧→ / ⇧← | next / previous slide, skipping steps |
Home / End, 3 ⏎ | first / last slide, go to slide 3 |
o | overview of every slide |
a / p | autoplay / pause timing |
t | rehearse: time every step |
b | black screen |
l / d / x | laser pointer / draw on the slide / clear the drawing |
c | show code |
r / v | record / camera bubble |
s / f / ? | presenter window / fullscreen / key list |
Esc | exit |
A notebook URL can open the deck at a given place: …/n/talk?deck=3.2 presents slide 3 at its second step (?deck=3.end at its last), and ?deck=sheet lays out every slide at its last step on one page, and &slatetheme=daylight paints the page in that Slate palette instead of your saved one. An agent looks at slides the same way, with slide_view(notebook; slide, step), which captures that page in a headless Chrome (slide = 0 for the sheet). The headless browser has no saved palette, so it uses the default one unless the agent passes theme.

The presenter window
Press s (or the 🪞 button, or Open presenter window in the palette) for a second window showing live previews of the current position and the next click, a timer, and the speaker notes from your notes cells. Arrow keys in either window drive the deck. On a video call, share only the deck window and keep the presenter window to yourself.

Rehearsal and autoplay
Press t (or rehearse in the presenter window) and click through the talk: every step is timed, and pressing t again saves the timings to the notebook. The presenter window then shows the planned length and whether you are ahead or behind, and autoplay (a) advances on the rehearsed timings. A step that plays a figure's clip is held until the clip has run, whatever its timing says.
Recording
Press r to record the deck. The browser asks which tab or window to capture, a 3-2-1 countdown starts it, and r again stops it. What is recorded besides the slides is your choice: ⇧R (or the ⏺ button) opens a panel to switch the microphone and the slide sound (clips playing on slides) on or off, and starts from there. The choice is remembered, and r says which it is using as it starts. With both off the video has no audio track. The video is written beside the notebook in recordings/, with a chapters file (.vtt) marking each slide and a .json of the step timings. Press v for a camera bubble, which is part of the recording; drag it to move it, double-click to enlarge it. The presenter window shows the recording time and a stop button.
To make a video of a set length without presenting it, use Render a video in the same panel: give the length (m:ss) and the hub steps through the deck in a headless Chrome and writes a silent MP4 exactly that long, with a chapter per slide, to recordings/. Only the motion is recorded as it plays (transitions, builds, figure clips); each step then holds for its share of the length, which is its rehearsed time when it has one and otherwise a reading time from the words it brings in (more for a new slide or a figure that changes), all scaled to fill the length. No step is cut shorter than its own motion. A render takes about as long as the deck's motion plays, a minute or so for a typical deck, not the length of the video. The video uses your palette. It needs Chrome (or Chromium) and ffmpeg on the hub's machine; an agent starts one with render_deck(notebook; length, theme).
A notes cell shows while you are authoring — marked with a dashed rule so you can tell at a glance which cells are yours alone — and nowhere else. It never reaches a slide, the reading view (zen, and an app) hides it, and the HTML and markdown exports omit it entirely rather than hiding it in CSS, so the text is not in the published page's source either. The PDF carries notes only when you ask for the appendix (below). Style them yourself with the .cell-notes class.

Designing slides
A slide is a fixed 16:9 (or 16:10, or 4:3) canvas that scales to the window, so it lays out the same on a laptop, a projector and a shared screen. Pick the ratio of the screen you present on: a MacBook and many projectors are 16:10, and a 16:9 deck shows bars above and below on them. Everything below is markup in the notebook itself: the deck never holds a second copy of your content.
Slide tags
Put these on any cell of a slide (the first cell that sets a key wins):
| Tag | Effect |
|---|---|
layout=title | centred, large gradient title |
layout=section | a section divider |
layout=center | content centred on the slide |
layout=cover | the slide's first image or video fills the canvas, text over it |
bg=aurora | a background: aurora, nebula, midnight, ember, ocean, slate, paper, a colour (bg=#0b1020), a gradient written without spaces, or an image or video path |
bgdim=0.5 | darken the background so text reads over it |
transition=zoom | how this slide enters: fade, slide, zoom, rise, none |
auto=5 | advance by itself after 5 seconds per step |
class=name | add a CSS class to the slide; class=serif sets its headings in a book face |
Deck style in Settings gives every slide without its own bg a background, dimmed behind content slides and full strength on title and section slides.
Columns
:::: columns
::: {.column width="40%"}
Left
:::
::: column
Right takes the rest
:::
::::Cells tagged column=2 still sit beside the cell before them, on a slide as in the notebook.

Builds
A slide can bring its content in a piece at a time. → walks the steps, then moves to the next slide; going back to a slide lands on its finished state.
::: step…:::appears on its own click, rising into place. Choose how with a class:{.step .fade},.fade-left,.fade-right,.fade-down,.zoom,.blur. Three effects act on content that is already showing:.highlightlights it up,.strikecrosses it out,.fade-outtakes it away..dimdims an item once the next one arrives.step=3puts it on a specific step.::: incrementalaround a list brings in one item per click.A line with
. . .reveals the rest of the cell in one step.A cell tagged
step(orstep=2) appears as a whole.
Hidden steps keep their space, so the slide never reflows as it builds.
Builds from computed state
SlideSteps(n) makes the step counter a value the notebook can compute with:
#%% code id=k hidecode
@bind k SlideSteps(5)
#%% code id=fit
echart(:line, x, partial_sum(x, k + 1))k is 0 when the slide comes up and counts to 5 as you click, so the figure is recomputed at each step instead of being duplicated across slides. The control is hidden while presenting; in the notebook it is a slider for scrubbing through the build.
Explaining mathematics
A few macros, usable in any math, let an equation be explained one piece at a time. They render as ordinary coloured math in the notebook, and print unwraps them to the plain equation.
| Macro | Effect |
|---|---|
\term{name}{…} | names a piece; it keeps one colour everywhere it appears |
\termc{name}{blue}{…} | the same, with the colour chosen |
\step{…}, \stepat{2}{…} | the piece arrives on the next click, or on step 2 |
\hl{…}, \hlat{2}{…} | lights the piece up |
\cancelat{2}{…} | strikes it through on step 2 |
\fadeat{2}{…} | removes it on step 2 |
\braceat{2}{…}{label}, \obraceat | draws a brace under (over) the piece with a label on step 2 |
\focusat{2}{…} | on step 2 everything else on the slide recedes |
\note{…} | a quiet word beside an equation on what the step did ("divide by m") |
Outside math, ::: {.step .focus} spotlights a block the same way; whatever arrives on that step (a caption, say) stays lit with it.

Terms take colours in the order they first appear in the notebook, so give each quantity one name and use it in prose, in every equation, and as the name of the chart series that plots it: the series wears the term's colour.
$$\term{inertia}{m\ddot x} \stepat{1}{{}+ \term{damping}{c\,\dot x}} \stepat{2}{{}+ \term{spring}{k\,x}} = 0$$A ::: derive block shows a sequence of equations in one place, one at a time. Each click turns the equation into the next: pieces with the same name glide to where they belong in the new equation, and the rest fades across. Put a blank line between the equations.
::: derive
$$\term{inertia}{m\ddot x} + \term{damping}{c\,\dot x} + \term{spring}{k\,x} = 0$$
$$\term{inertia}{\ddot x} + \term{damping}{2\gamma\,\dot x} + \term{spring}{\omega_0^2\,x} = 0$$
$$r = -\term{damping}{\gamma} \pm i\,\term{freq}{\omega_d}$$
:::Named pieces carry between consecutive slides the same way, so the result of one slide can move into place on the next.
Figures on slides
A chart on a slide is restyled for the room: tick labels, axis names, legend and tooltip are set in slide units, lines and points are heavier unless the cell chose their size, and the plot keeps room for its labels. The cell's chart is untouched; leaving the slide puts it back as drawn.
steps walks a figure through views as the slide builds, with the axes animating from one to the next:
echart(:line, t, x; steps = [(x = (0, 12),), # step 1: the whole run
(x = (7.5, 12), y = (-0.16, 0.16)), # step 2: zoom into the tail
(x = (0, 3), band = true)]) # step 3: back out, shade 0–3A step with band = true keeps the view and shades that stretch of x. The figure's steps share the slide's step counter with its other builds.
Tag a chart cell ghost and, while it is presented, changing a control leaves a faint copy of the figure as it was before the change. A drag compares against where it started, so a question answered live ("what if the damping doubles?") shows both curves at once.
Makie figures that build
A CairoMakie figure can build on a slide too. Draw it as usual, keep the plots you want to bring in, and return slide_figure(fig; steps):
let fig = Figure(size = (1100, 1000)), ax = Axis(fig[1, 1]; aspect = DataAspect())
scatter!(ax, R, Z; markersize = 1, color = (:gray70, 0.4)) # always there
wu = lines!(ax, Ru, Zu; color = slate_color(:red))
ws = lines!(ax, Rs, Zs; color = slate_color(:yellow))
xp = callout!(ax, (RX, ZX), "X-point")
slide_figure(fig; steps = [
(show = wu, animate = t -> n[] = round(Int, t * N), frames = 60), # the branch grows
(show = ws,), # the other one appears
(show = xp, focus = [wu, ws, xp]), # the rest dims
(limits = (ax, (RX - w, RX + w, ZX - w, ZX + w)), frames = 45), # the camera moves in
])
endEach step is rendered with the notebook's Makie backend, so the slide is as crisp as the figure. A step fades in over the one before; a step with frames is rendered as a short clip that plays when you step onto it, which is how growth, sweeps and camera moves stay smooth. The figure's steps are the slide's build steps, so they line up with equations built on the same slide. In the notebook the finished figure shows.
| Step key | Effect |
|---|---|
show = plots, hide = plots | plots appear (hidden until then) or go |
focus = plots | every other plot dims until the next focus |
limits = (ax, (x1, x2, y1, y2)) | the axis moves to that window (six values for an Axis3) |
view = (ax3, (azimuth, elevation)) | an Axis3 camera turns to those angles |
trace = tr | a trace! orbit draws itself along its points |
terms = "name" | the math terms \term{name}{…} on the slide light up while this step is current |
animate = t -> … | called with t from 0 to 1, usually setting observables |
update = () -> … | any other change |
frames = n | render the step as an n-frame clip |
The moves of one step (limits, view, trace, animate) run together in its clip, so a camera can turn while an orbit draws.
callout!(ax, (x, y), "label") pins a label with a fine leader line to a point of the data; on an Axis3, callout!(ax, (x, y, z), "label") keeps the label upright beside the point as the camera turns, and its label can be math (L"W^u"). trace!(ax, xs, ys[, zs]) is an orbit that draws itself with a bright head and a soft glow just behind it, at an even pace per point: a sampled flow runs smoothly, and a map's orbit hops from iterate to iterate (markers = true leaves a dot at each). Repeat the first point to close a periodic orbit.
slate_color(:red) is the red that \termc{name}{red}{…} gives a term, so the figure and the equation beside it agree. With terms, a step also points at the symbol: a figure that brings in the orbit 01 with terms = "t01" rings \termc{t01}{teal}{t_{01}} in the cycle expansion beside it at the same moment. A markdown step can do the same with ::: {.step terms="t01"}.
Tag two figure cells on consecutive slides morph=name and the figure glides from its place on the first to its place on the second, say from full width to a column beside text. Draw the second one starting from the state the first ends in, so the glide reads as one figure moving.
A figure with a transparent background (backgroundcolor = :transparent on the figure and its axes) sits on the slide's own background. Its clips are then WebM with an alpha channel, which Chrome and Firefox play.
Media and morphing
 is a video (and  audio). Flags in the alt text: autoplay (starts when it comes on screen), loop, muted, nocontrols. Relative paths resolve next to the notebook.
A heading or image that appears on two consecutive slides moves and resizes into its new place. Name anything else to morph it the same way: ::: {.morph name=plot}, or tag a cell morph=plot.
Two chart cells on consecutive slides tagged with the same morph= name are treated as one figure changing form: the marks of the first travel into the second. Give data items a shared groupId to say which go where; several items with one groupId gather into the single item that carries it on the next slide, so points can collect into the histogram bar they fall in:
#%% code id=strip morph=dist
echart(; xAxis = (type = :value,), yAxis = (type = :value, show = false),
series = [(type = :scatter, data = [(value = [v, rand()], groupId = "b$(bin(v))") for v in draws])])
#%% code id=hist morph=dist
echart(; xAxis = (type = :value,), yAxis = (type = :value,),
series = [(type = :bar, data = [(value = [centre(b), count(b)], groupId = "b$b") for b in bins])])How cells become slides
Segmentation follows a small set of boundary rules:
A markdown heading at or above the slide level (default
##/ H2) starts a new slide.A cell tagged
slideforces a new slide, regardless of headings. It carries a smallslidechip in the editor — the other boundaries are headings you can already see, this one isn't — and the.slide-startclass if you want to mark it differently.PDF only. A thematic break (
---on its own line) inside a markdown cell splits it mid-cell into separate slides. The live deck keeps the cell whole, because it moves the real cell onto the stage so charts and@bindcontrols stay live, and a cell cannot be cut in half. Split the cell yourself to get the same break in both.A cell tagged
notesattaches to the current slide as speaker notes (never shown in the slide body, the reading view, or an export — see above).Cells before the first boundary form the leading title slide.
collapsedcells are omitted (matching the article/report export).
#%% md id=title
# Reactive Notebooks
### a five-minute tour
#%% md id=idea
## The core idea ← starts slide 2 (H2 heading)
Change a value; only the downstream cells recompute.
#%% code id=demo slide ← `slide` tag forces slide 3, even without a heading
@bind f Slider(1:10)
echart(:line, 1:100, sin.(f .* (1:100) ./ 10))
#%% md id=sp notes ← speaker notes for slide 3, not shown on it
Remember to drag the slider here.Set the slide level (the heading depth that starts a slide, 1 through 6, default 2 for ##), the transition, and the aspect ratio (16:9, 16:10 or 4:3) per notebook in ☰ → ⚙ Settings → This notebook (see Configuration). These pin to the notebook and travel in its .jl.
The live deck follows the editor theme. A PDF deck takes its theme from the export dialog.
Export a PDF deck
☰ → ⬆ Export…, format PDF, layout 🎞 Slides — typeset (Typst). This renders a typeset landscape deck server-side via Typst — one slide per page at the deck's aspect ratio, auto-fit:
Code listings are hidden by default on slides, since a deck usually shows results rather than source. Choosing any non-hidden Code listings size brings them back.
Vector figures — CairoMakie embeds as PDF, ECharts as SVG (light+dark captured), so a slide stays crisp on a projector.
Speaker notes — tick Append speaker-notes pages to the deck to follow the deck with a notes appendix (one page per slide that has
notescells).
The route is GET /api/<id>/export.pdf?layout=slides. ?theme= sets the deck palette (as-is, light or dark, as in the dialog), ?notes=1 appends the speaker-notes pages, ?code= sizes or hides listings, and ?columns= is ignored for decks. See Export for the shared PDF options and the editable Typst project (export.typ).
Print the live deck
Layout Slides — as presented (Chrome) in the PDF export prints the deck itself instead. The hub opens ?deck=print in a headless Chrome and prints one page per slide, at its last step and at the slide's own size. The page has the look of the live deck: your palette, its CSS, its fitting, and your own slide styles. Text and SVG stay vector. A chart is the snapshot that the contact sheet shows, so it is a raster image. Theme picks the palette, and the Typst options do not apply. The page size follows the notebook's Slide aspect ratio: 1920 × 1080 px at 16:9, 1920 × 1200 px at 16:10, 1440 × 1080 px at 4:3. It needs a Chrome-family browser on the hub's machine: Chrome, Chromium, Edge or Brave, found in the usual install places or on the PATH, or the one KAIMONSLATE_CHROME names. The same browser renders a deck video and the slide views an agent asks for. Without one, the layout is listed but cannot be chosen, the record panel's Render button is disabled, and each says what is missing.

Steps chooses what a slide with builds prints. Last step prints each slide once, as it ends. Every step prints a page for each step, from the slide before its first build to its end, with a row of dots that shows the step. A build that replaces what came before, such as a derive chain, then keeps every state. All the pages of a slide carry its number.

The route is GET /api/<id>/export.pdf?layout=present&slatetheme=<palette>&steps=all, and an agent calls export_pdf(notebook; layout = "present", charttheme = "<palette>", steps = "all").
Zen mode
☰ → 🧘 Zen mode is the other full-page reading view. It hides code and chrome on the same scrollable page, leaving prose and output. Esc returns to the editor.
Present is the slide deck; Zen is the document.
One source, three artifacts
The same notebook is a live document, a full-screen presentation, and a typeset PDF deck. Add a few ## headings and it's already a deck — refine with slide / notes tags and the per-notebook settings.