mr-h-manim

Maths and physics animations a teacher can stand behind

Short, silent clips for teaching undergraduate maths and school physics. The maths on screen is checked in code, every render is audited for layout and pacing, and the teacher tunes the timing before a clip goes out.

Watch the clips Code on GitHub

The last frame of the clip Two boxes, two shuffles: the 24 orderings of four particles sorted into six rows, one per way of filling two boxes, with the conclusion W = 24 ÷ 4 = 6.
From Particles in boxes, clip 4.

How the clips are made

Claude Code writes the animation code in Manim. The project's rules and checks decide whether a clip is ready.

Maths checked in code

Every equation and number a clip shows is listed in its storyboard and checked by sympy, numpy or brute force. Numbers on screen are computed, never typed.

Paced for a silent classroom

Each pause is named by what the viewer has to do: take in a move, read a caption, think about a result. A check flags any move followed by another with no pause.

Laid out for a projector

Every render audits the picture at each pause: text outside the safe area, overlapping labels, lines and arrows touching text.

Tuned by the teacher

A local page previews speed and pause changes instantly, without re-rendering, and edits on-screen text straight into the code.

Make your own

The toolkit behind these clips is open source under the MIT licence. It runs on your own Claude Code plan, so there's no API key to set up and no cost per video.

You'll need Python 3.12, Manim, TeX Live and Claude Code. Setup is written up for Windows so far.

  1. Set up the repository.
  2. Open a Claude Code session in it and say Read tutor.md and tutor me.
  3. Plan a clip from the storyboard template, then let the checks do their work.

Support

The clips and the toolkit are free. If they save you time in your teaching, you can chip in.

Ko-fi: coming soon GitHub Sponsors: coming soon