
Manim Slides
CLI把 Manim 数学动画做成可逐页翻动的演示文稿:在场景代码里标出翻页点,渲染后用 manim-slides 放映,也能导出 HTML、PDF 或 PPTX,适合数理课堂与学术报告。场景要用 Python 编写(可让 agent 代写),需要 Python 与 Manim,排版公式还需 LaTeX。
Manim Slides
Tool for live presentations using either Manim (community edition) or ManimGL. Manim Slides will automatically detect the one you are using!
[!NOTE] This project extends the work of
manim-presentation, with a lot more features!
Installation
Manim Slides requires either Manim or ManimGL to be installed, along with their dependencies. Please checkout the documentation for detailed install instructions.
Usage
Using Manim Slides is a two-step process:
- Render animations using
Slide(resp.ThreeDSlide) as a base class instead ofScene(resp.ThreeDScene), and add calls toself.next_slide()every time you want to create a new slide. - Run
manim-slideson rendered animations and display them like a PowerPoint presentation.
The documentation is available online.
Basic Example
Call self.next_slide() every time you want to create a pause between
animations, and self.next_slide(loop=True) if you want the next slide to loop
over animations until the user presses continue:
from manim import * # or: from manimlib import *
from manim_slides import Slide
class BasicExample(Slide):
def construct(self):
circle = Circle(radius=3, color=BLUE)
dot = Dot()
self.play(GrowFromCenter(circle))
self.next_slide() # Waits user to press continue to go to the next slide
self.next_slide(loop=True) # Start loop
self.play(MoveAlongPath(dot, circle), run_time=2, rate_func=linear)
self.next_slide() # This will start a new non-looping slide
self.play(dot.animate.move_to(ORIGIN))
First, render the animation files:
manim-slides render example.py BasicExample
# or use ManimGL
manim-slides render --GL example.py BasicExample
[!NOTE] Using
manim-slides rendermakes sure to use themanim(ormanimlib) library that was installed in the same Python environment. Put simply, this is a wrapper aroundmanim render [ARGS]...(ormanimgl [ARGS]...).
To start the presentation using Scene1, Scene2 and so on, run:
manim-slides [OPTIONS] Scene1 Scene2...
In our example:
manim-slides BasicExample
For detailed usage documentation, run manim-slides --help, or go to the
documentation.
Interactive Tutorial
Click on the image to watch a slides presentation that explains to you how to use Manim Slides.
More Examples
More examples are available in the
example.py
file, if you downloaded the git repository.
Comparison with Similar Tools
There exists a variety of tools that allows to create slides presentations containing Manim animations.
Below is a comparison of the most used ones with Manim Slides:
| Project name | Manim Slides | Manim Presentation | Manim Editor | Jupyter Notebooks |
|---|---|---|---|---|
| Link | ||||
| Activity | ||||
| Usage | Command-line | Command-line | Web Browser | Notebook |
| Note | Requires minimal modif. in scenes files | Requires minimal modif. in scenes files | Requires the usage of sections, and configuration through graphical interface | Relies on nbconvert to create slides from a Notebook |
| Support for ManimGL | Yes | No | No | No |
| Web Browser presentations | Yes | No | Yes | No |
| Offline presentations | Yes, with Qt, RevealJS (any web browser), or PowerPoint | Yes, with OpenCV | No | No |
Citing
If you use this software, please cite it using as:
@article{Jerome_Eertmans_Manim_Slides_A_2023,
title = {{Manim Slides: A Python package for presenting Manim content anywhere}},
author = {{Jérome Eertmans}},
year = 2023,
month = aug,
journal = {Journal of Open Source Education},
volume = 6,
doi = {10.21105/jose.00206}
}
or by linking this GitHub repository at the end of your presentation.
Other citation formats can be obtained by clicking on the Cite this repository button on this page.
Contributing
Contributions are more than welcome! Please read through our contributing section.
Reporting an Issue
If you think you found a bug, an error in the documentation, or wish there was some feature that is currently missing, we would love to hear from you!
The best way to reach us is via the GitHub issues. If your problem is not covered by an already existing (closed or open) issue, then we suggest you create a new issue. You can choose from a list of templates, or open a blank issue if your issue does not fit one of the proposed topics.
The more precise you are in the description of your problem, the faster we will be able to help you!
Seeking for help
Sometimes, you may have a question about Manim Slides, not necessarily an issue.
First, make sure to read the F.A.Q to see if your question has already been answered. If not, please follow the recommendation (from that page) to reach us for questions.
Contact
Finally, if you do not have any GitHub account, or just wish to contact the author of Manim Slides, you can do so at: jeertmans@icloud.com.
相关资源

Manim
CLI用 Python 代码制作数学与讲解类动画的引擎(社区版 ManimCE):写好场景后用 manim 命令渲染成视频,适合让 agent 生成教学、科普动画。macOS 需先装 cairo 与 pkg-config,渲染公式需 LaTeX。
ManimCommunity/manim43.2k
Manim Skills
Skill先把模糊的讲解想法拆成逐场景分镜,再按 Manim 社区版或 3Blue1Brown 版 ManimGL 的最佳实践写动画代码,做数学、物理讲解动画,适合老师做课堂演示和科普视频。需要本地安装 Python、FFmpeg 与 LaTeX。
adithya-s-k/manim_skill1.4k
notebooklm-py
CLI非官方 Python 库与 CLI,让 agent 操控 Google NotebookLM(现更名 Gemini Notebook):批量导入资料、基于来源带引用问答,生成播客、视频、幻灯片、测验与闪卡并批量下载,自带 agent skill。依赖未公开接口,需登录 Google 账号。
teng-lin/notebooklm-py20.4k
MulmoCast CLI
CLI用 JSON/YAML 格式的 MulmoScript 写好讲稿、说话人与画面,mulmo 命令即可生成配音和插图,合成为视频、播客、幻灯片或 PDF,可把讲义、报告做成讲解视频。需要 Node.js、FFmpeg 和 OpenAI API Key,其他厂商的 Key 可选。
receptron/mulmocast-cli482
Web Video Presentation
Skill把文章或讲稿改写成口播稿,再做成点击推进的 16:9 网页演示,录屏即可得到讲解视频,可选合成配音,适合教师录课、B 站/YouTube 教程和产品讲解。需要 Node.js 环境;配音需 MiniMax 或 OpenAI 的 API Key,也可换成其他 TTS。
ConardLi/garden-skills16.1k
MathLens
Skill数学老师的讲题视频助手:贴一道题的图片或文字,自动完成解题分析、图解 HTML 讲义、分镜与配音脚本,渲染成带中文配音的 Manim 动画。需本地 Python、Manim 与 edge-tts;讲解请老师核对后再用,非商业许可(CC BY-NC)。
shuyicc/MathLens358
