ManimCommunity /manim
A community-maintained Python framework for creating mathematical animations.
★ 42,386⑂ 3,313👁 65⑃ 2,998● 1,832▤ 36◈ 253
42,386
stars
+29
3,313
forks
65
watchers
2,998
prs
1,832
issues
36
releases
253
discussions
README
An animation engine for explanatory math videos
Manim is an animation engine for explanatory math videos. It's used to create precise animations programmatically, as demonstrated in the videos of 3Blue1Brown.
[!NOTE]
The community edition of Manim (ManimCE) is a version maintained and developed by the community. It was forked from 3b1b/manim, a tool originally created and open-sourced by Grant Sanderson, also creator of the 3Blue1Brown educational math videos. While Grant Sanderson continues to maintain his own repository, we recommend this version for its continued development, improved features, enhanced documentation, and more active community-driven maintenance. If you would like to study how Grant makes his videos, head over to his repository (3b1b/manim).
Table of Contents:
- Installation
- Usage
- Documentation
- Docker
- Help with Manim
- Contributing
- License
Installation
[!CAUTION]
These instructions are for the community version _only_. Trying to use these instructions to install 3b1b/manim or instructions there to install this version will cause problems. Read this and decide which version you wish to install, then only follow the instructions for your desired version.
Manim requires a few dependencies that must be installed prior to using it. If you
want to try it out first before installing it locally, you can do so
in our online Jupyter environment.
For local installation, please visit the Documentation
and follow the appropriate instructions for your operating system.
Usage
Manim is an extremely versatile package. The following is an example Scene you can construct:
python
from manim import
class SquareToCircle(Scene):
def construct(self):
circle = Circle()
square = Square()
square.flip(RIGHT)
square.rotate(-3 TAU / 8)
circle.set_fill(PINK, opacity=0.5)
self.play(Create(square))
self.play(Transform(square, circle))
self.play(FadeOut(square))
In order to view the output of this scene, save the code in a file called example.py. Then, run the following in a terminal window:
sh
manim -p -ql example.py SquareToCircle
You should see your native video player program pop up and play a simple scene in which a square is transformed into a circle. You may find some more simple examples within this
GitHub repository. You can also visit the official gallery for more advanced examples.
Manim also ships with a %%manim IPython magic which allows to use it conveniently in JupyterLab (as well as classic Jupyter) notebooks. See the
corresponding documentation for some guidance and
try it out online.
Command line arguments
The general usage of Manim is as follows:
!manim-illustration
The -p flag in the command above is for previewing, meaning the video file will automatically open when it is done rendering. The -ql flag is for a faster rendering at a lower quality.
Some other useful flags include:
- -s to skip to the end and just show the final Top issues
#183t values issue that causes the animations to not be finished entirely.35 comments · 2020-07-08#934Adding a Manim Showcase for Community Work29 comments · 2021-01-13#3375Typing progress tracker18 comments · 2023-09-22#2380personal opinion: your code is bad!17 comments · 2021-12-17#4183Select the last object of the group as the alignment target when using `Mobject.arrange()`13 comments · 2025-03-07#80Multithreading (or rather multiprocessing)12 comments · 2020-05-25#4103Code Transform Animation applies to the entire code instead of the changed lines11 comments · 2025-01-13#193List of tests to add 11 comments · 2020-07-10
Discussions
#5110Proposal: branching lesson exports from pre-rendered Manim scenes1 comments · 2026-10-29#5106Manim v0.22.10 comments · 2026-10-27#5066Build playable math with Manim, and embed it anywhere.0 comments · 2026-10-15#5057Manim v0.22.00 comments · 2026-10-08#4928Manim v0.21.00 comments · 2026-08-10#4902How to disable anti-aliasing in Manim?1 comments · 2026-07-29#4809Manim for science(bio and amalgamation of Manim chemistry and Phy-with-manim)?3 comments · 2026-06-14#4800Domaine de définition0 comments · 2026-06-11
Latest release
Manim v0.22.1 v0.22.1 2026-10-27See our rendered changelog. What's Changed Bug Fixes 🐛 Fix ImageMobject rendering with Pillow 13 by @behackl in https://github.com/manimcommunity/manim/pull/5074 Fix OpenGLImageMobject rendering by @behackl in https://github.com/manimcommunity/manim/pull/5081 Fix Line bending when expanded from a near-zero length by @WhyTan00 in https://github.com/manimcommunity/manim/pull/5078 Documentation 📚 Fix doubled backslashes in raw docstrings by @ExploreMaths in https://github.com/manimcommunity/manim/pull/5063 Warn against combining .animate on a group and its submobjects in one p