Transform natural language math & science descriptions into cinematic Manim animations — 100% local, offline, private.
- Completely local & private — no API keys, no cloud, no data leaves your machine
- Uses code-specialized LLM (
qwen2.5-coder:7brecommended) - Very aggressive code sanitization & repair (~40 common Manim pitfalls automatically fixed)
- Clean, modern Streamlit interface with quality presets (480p – 4K)
- Generation history, natural-language code refinement, custom resolution/FPS
- Automatic cleanup of old temporary files
- Fallback animation when generation fails
- University lecturers creating step-by-step proof animations
- Math & physics YouTube / TikTok content creators
- Students preparing beautiful presentation videos
- Visual learners who want to see derivations, graphs, transformations
- Rapid prototyping of mathematical visualizations without writing Manim code manually
User enters natural language description
LLM creates structured, concise animation + math plan
Code-specialized LLM generates strict Manim CE v0.18.1 code
Heavy post-processing & error-fixing of the generated code
Manim renders MP4 video (selected quality preset)
Video preview + download appears in the browser
| Software | Recommended version / Download | Purpose | Approx. size |
|---|---|---|---|
| Python | 3.12.6 | Runtime | ~70 MB |
| FFmpeg | latest | Video encoding | ~60 MB |
| MiKTeX | latest (basic + auto-install packages) | LaTeX / MathTex rendering | 200+ MB |
| Ollama | latest | Local LLM runner | ~100 MB |
| qwen2.5-coder | 7b (or 14b if ≥16 GB VRAM) | Code generation model | ~4.7 GB |
-
Install Python 3.12.6
https://www.python.org/downloads/release/python-3126/ -
Install FFmpeg
https://ffmpeg.org/download.html
→ Extract → add thebinfolder to your system PATH -
Install MiKTeX
https://miktex.org/download
→ It will automatically download missing LaTeX packages on first use -
Install & start Ollama
https://ollama.com/download
Open a terminal / PowerShell:
ollama serveIn a second terminal window:
ollama pull qwen2.5-coder:7b
python -m pip install --upgrade pip
pip install -r requirements.txt
streamlit run app.pyIf you want to see a video of the examples that were created: go to example-result Directory
MPV-SHOW.mp4
animation_1771228341.mp4
For some mathematical examples, this project may give an error and not run correctly. We will try to optimize it soon so that it does not give an error.