Animated presentations and explainer videos built with
Manim Community and
manim-slides. This repository provides the reusable
Python library, styles, starter template and mw CLI. Keep your talks and their assets in
presentations/ in a separate repository that depends on the framework. The same scene code
produces an interactive deck and a video.
Working with an AI agent? Point it at AGENTS.md (Claude Code picks it up through
CLAUDE.md automatically).
# system libraries Manim needs
brew install cairo pango pkg-config ffmpeg
# LaTeX for MathTex/Tex (includes dvisvgm); large download, needed only for maths
brew install --cask mactex-no-gui
# fonts: Inter for dark/light; Calibri (comes with Microsoft Office) or Carlito for lcas
brew install --cask font-inter font-carlitoOn Linux the equivalents are libcairo2-dev libpango1.0-dev pkg-config ffmpeg texlive texlive-latex-extra dvisvgm.
Once v0.1.0 is published on the framework repository, run this from the root of a new
content repository:
uvx --python 3.13 --from 'git+https://github.com/marc-hanheide/manim-workspace.git@v0.1.0' mw init --tag v0.1.0
uv sync
uv run mw new my-talk --style lcasmw init writes a pyproject.toml pinned to that Git tag, creates presentations/, and
adds a .gitignore if there isn't one. For an existing uv project, keep its pyproject.toml
and run uv add 'manim-workspace @ git+https://github.com/marc-hanheide/manim-workspace.git@v0.1.0'
instead. Move each talk's source and assets into presentations/<name>/; keep generated
media/, slides/, exports/ and .preview/ out of Git. Add any talk-specific Python
dependencies to the content project and commit its pyproject.toml and uv.lock.
Run uv run mw from the content repository. mw finds the nearest parent containing
pyproject.toml and presentations/, or uses MW_ROOT if set. Presentation commands also
accept a direct path to a folder containing presentation.toml. You don't need a framework
checkout or a copy of _template in the content repository. If you want the editor tasks or
storyboard skill there, copy .vscode/ and
.claude/skills/storyboard/ from the matching framework tag.
For framework development, run uv sync in this checkout. To test a talk that does not
need extra Python dependencies, run uv run mw check /path/to/content/presentations/my-talk
from this checkout. This leaves the content project's dependency and lockfile alone.
When publishing, tag the audited, framework-only history. Removing talks from the working tree or excluding them from Python packages does not remove them from Git history.
| Style | Look |
|---|---|
dark |
near-black background, Inter, yellow accent (default) |
light |
off-white background, Inter, blue and orange accents |
lcas |
University of Lincoln / L-CAS template: white, Lincoln blue (#002D5F), Calibri, blue footer band with logos, spaced-capitals title page |
Set style = "lcas" in a presentation's presentation.toml (or mw new NAME --style lcas),
or try another style for one run with --style, e.g. uv run mw check my-talk --style light.
The framework ships Lincoln blue and white logo variants made from the supplied source artwork.
uv run mw new my-talk --title "My Talk" --style lcas # use the bundled template
# plan in presentations/my-talk/storyboard.md (with the storyboard skill), write scenes in main.py
uv run mw storyboard my-talk # check the storyboard: timing, scenes, facts
uv run mw check my-talk # fast render + contact sheet of frames
uv run mw render my-talk Intro -q m -p # render one scene and open it
uv run mw present my-talk # click through it in the presenter window
uv run mw slides my-talk # HTML deck -> presentations/my-talk/exports/my-talk.html
uv run mw slides my-talk --to pptx # PowerPoint -> exports/my-talk.pptx
uv run mw video my-talk # 1080p video -> exports/my-talk.mp4| Command | Purpose | Output |
|---|---|---|
mw init [--tag TAG] |
set up a separate presentations workspace | pyproject.toml, presentations/, .gitignore |
mw list |
list presentations | |
mw new NAME [--title] [--style] |
new presentation from the template | presentations/NAME/ |
mw storyboard NAME [--strict] |
check storyboard.md (timing, scene list, facts, house style) |
report |
mw check NAME [SCENE...] [--frames N] |
480p render + frame grid for review | exports/check/SCENE.png |
mw render NAME [SCENE...] [-q l/m/h/k] [-s] [-n A,B] [-p] |
render videos (-s last frame, -n animation range) |
media/ |
mw present NAME [-q] |
render and present in the manim-slides window | |
mw slides NAME [--to html/pptx/pdf/zip] [--one-file] [--open] |
export a deck (1080p) | exports/NAME.* |
mw video NAME [-q] |
all scenes joined into one video (1080p) | exports/NAME.mp4 |
Quality flags: l 480p15, m 720p30, h 1080p60, k 4K. check, render, present,
slides and video take --style dark|light|lcas to override the style for one run.
- HTML deck (
mw slides): plays in any browser, arrow keys to advance, speaker notes withs. Keep the_assetsfolder next to the HTML, or use--one-fileto embed everything. - PowerPoint (
--to pptx): videos embedded, one per step. Good for mixing with ordinary slides; use desktop PowerPoint or Keynote (PowerPoint Online may not autoplay). - Presenter window (
mw present): the most responsive option when presenting from this Mac. - Video (
mw video): for sharing, recording or embedding.
presentations/my-talk/
presentation.toml title, description, scene file, ordered scene list
storyboard.md audience, message, scene-by-scene plan, facts with sources, feedback log
main.py scenes, each a class subclassing ThemedSlide (or ThemedCameraSlide)
assets/ images or data you add (optional)
media/ slides/ exports/ generated, git-ignored
A scene in a nutshell:
from manim import *
from manim_workspace import ThemedSlide, T, heading, theme
class Intro(ThemedSlide):
def construct(self):
self.title_slide("My Talk", "Subtitle", "Marc Hanheide · Lincoln")
self.next_slide() # a pause in the deck
self.clear_all()
self.play(Write(heading("First idea")))
self.caption("Captions sit at the bottom, one at a time")The styles live in src/manim_workspace/theme.py and reusable pieces in components.py
(T, heading, bullets, card, stat_card, uniform_row, icon_point, highlight_box,
fit_below, bar_chart, chip, panel, wrap). Change them there and every presentation
follows.
Open the folder in VS Code and accept the recommended extensions (Python, Ruff,
Manim Sideview, TOML). The interpreter is .venv/bin/python.
- Live preview while editing: Manim Sideview. Put the cursor in a scene class and press
Ctrl+'thenr(or the play icon in the editor title). It renders at 480p into.preview/and shows the video beside the code. Turn onmanim-sideview.runOnSavein.vscode/settings.jsonfor re-render on every save. - Tasks (
Cmd+Shift+P> Tasks: Run Task, orCmd+Shift+Bfor the defaultcheck): with any file of a presentation open, run check, render, present, HTML/PowerPoint export or video for that presentation. - Jump to one moment:
uv run mw render NAME SCENE -srenders only the last frame;-n 5,8renders only animations 5 to 8.
The agents follow AGENTS.md. Storyboards are developed with the
storyboard skill in .claude/skills/storyboard/:
in Claude Code, just say "let's storyboard a talk about ..." (or type /storyboard); other
agents are pointed to the same file by AGENTS.md. The skill interviews you in short rounds,
proposes narrative arcs and scene lists for you to choose from, fills in every scene
(beats, on-screen layout, speaker notes, captions), checks facts with sources, and finishes
when you mark the storyboard as agreed. The bundled starter shows the expected structure.
A good loop:
- You: describe the talk (audience, occasion, length, what you want them to take away).
- Agent (storyboard skill): develops
storyboard.mdwith you until it is agreed. - Agent: builds scenes one at a time and checks each with
mw check, looking at the contact sheet and fixing overlaps before reporting back. - You: fine-tune timing and positions yourself with Sideview, or give precise feedback ("scene 3, the label under the chart overlaps the caption").
- Agent or you: export with
mw slides/mw video.
Several agents can work in parallel on different presentations, since each presentation is self-contained. Ask for shared style changes explicitly, because they affect every talk.
- Manim is pinned below 0.22 (manim-slides 5.7.0 does not support 0.22 yet) and Pillow below 12 (fading images in crashes otherwise). See AGENTS.md ("Versions") before upgrading.
mw presentneeds a display (it opens a Qt window); it will not work over SSH.