A community-maintained Python framework for creating mathematical animations.
short-title: v0.21.0 description: Changelog for v0.21.0
v0.21.0
Date : August 10, 2026
What's Changed
Breaking Changes π¨
Delegate color handling in {class}
.Codeto Pygments and document custom styles by {user}Helbronnerin {pr}4816{class}
.Codeno longer honors foreground color overrides passed throughparagraph_config={"color": ...}orCode.default_paragraph_config["color"]; syntax and line-number colors now come from the selected Pygmentsformatter_style. To customize them, pass a custom PygmentsStylesubclass throughformatter_styleand configure its token styles andline_number_color. Background colors can still be overridden withbackground_config={"fill_color": ...}; otherwise, the selected Pygments style provides the background. See the note in the documentation of {class}.Codefor an explicit example.Speed up Cairo renderer by 2.2x on animation-heavy scenes by {user}
HamdiBarkousin {pr}4695Cairo path construction now uses vectorized subpath splitting, and pixel-array handling avoids redundant copies while producing pixel-identical output. This changes
Camera.convert_pixel_array(): theconvert_from_floatsargument has been removed, and the method now always converts floats to the camera's pixel format. Omit the argument if it was previouslyTrue; usenp.array(pixel_array)instead if relying on the old default copying behavior.
Highlights π
Introduce first-class support for rendering text and markup via Typst (optional dependency) by {user}
behacklin {pr}4681The new {class}
.Typstand {class}.MathTypstmobjects compile Typst markup and mathematical expressions directly to SVG without requiring a TeX installation. They support label-based subgroup selection,{{ ... }}expression grouping, and integration with existing label APIs. Install the optional dependency withpip install "manim[typst]".Hash NumPy arrays without JSON expansion by {user}
dexhunterin {pr}4883NumPy arrays in scene cache keys are now represented by deterministic hashes of their complete logical contents instead of sampled JSON data. This prevents stale cache hits when visible image data changes and reduces hashing CPU time by roughly 94β98% in representative benchmarks.
Add support for encoding partial movie files in parallel by {user}
pjfoin {pr}4899The new
max_inflight_encodersconfiguration option allows partial movie encoding to overlap with rendering while bounding the number of encoder workers. Try it withmanim render --max-inflight-encoders 4 --encoder-queue-size 8 scene.py Scene;--encoder-queue-sizelimits the pending frame buffers held by each encoder. The default of one in-flight encoder preserves serial behavior; higher values reduced an encoding-heavy benchmark by 56% and larger real-world renders by roughly 8β11%.
New Features β¨
- Allow inner lines to be omitted from {class}
.Tableby {user}leqo-cin {pr}4731 - Support multiple compiler passes in {class}
.TexTemplateby {user}Sazzzzzzin {pr}4810 - Add a
dot_buffparameter to {class}.BulletedListby {user}GniLudioin {pr}4892
Enhancements π
- Support tuple-based edge lookup in
GenericGraph.__getitem__()by {user}HairlessVillagerin {pr}3799 - Raise a clear error when rendered glyphs do not match input characters by {user}
SupernovaIain {pr}4868 - Avoid copying
Mobject.submobjectsin sequence methods by {user}nikolajmunkin {pr}4915 - Make additional mobject methods chainable by {user}
GniLudioin {pr}4913
Bug Fixes π
- Fix OpenGL crashes in
arrange_in_grid()andget_location()by {user}Croustitin {pr}4622 - Prevent
get_nth_subpath()from raisingIndexErrorand ensure it returns a NumPy array by {user}MqCreaplein {pr}4630 - Preserve closed curves in
put_start_and_end_on()by {user}GoThronesin {pr}4658 - Fix inconsistent stroke-width scaling for text in compound objects by {user}
vihduttain {pr}4694 - Accept a single
GrouporVGroupinCyclicReplaceandSwapby {user}irvanalhaq9in {pr}4211 - Prevent empty submobjects from distorting parent dimensions by {user}
gvauvertin {pr}4088 - Honor
languagewhen constructingCodefromcode_fileby {user}GniLudioin {pr}4706 - Fix
ThreeDScene.set_to_default_angled_camera_orientation()raisingAttributeErrorby {user}siddhu-pikachuin {pr}4704 - Fix reversed default resolution in
manim init project --defaultby {user}aoxiangtianyu-goin {pr}4839 - Prevent memoizer collisions between object hashes and IDs by {user}
pjfoin {pr}4901 - Prevent
round_corners()failures for collinear vertices by {user}MeiSiristhebestin {pr}4906 - Fix
checkhealthfalse positives for uv launcher shims by {user}srinu2003in {pr}4889 - Fix OpenGL triangulation errors at ring boundaries by {user}
Theelxin {pr}4819 - Fix {class}
.Anglecrashes for parallel or collinear lines by {user}MeiSiristhebestin {pr}4907 - Stabilize cache hashes for transient objects by {user}
pjfoin {pr}4896 - Ignore SVG shape elements without points by {user}
behacklin {pr}4917 - Normalize {class}
.Codebaseline alignment in {class}.Paragraphby {user}Croustitin {pr}4692 - Preserve z-index ordering in animation groups by {user}
behacklin {pr}4918 - Let {class}
.MathTexhandle multiline strings by {user}henrikmidtibyin {pr}4634 - Ensure that glyphs at end of {class}
.Codelines are no longer deleted whendisable_ligaturesisFalseby {user}nikolajmunkin {pr}4926
Documentation π
- Correct
SquareToCircleterminology in the quickstart guide by {user}xuruidongin {pr}4631 - Correct angle ranges in {class}
.Spheredocumentation and add examples by {user}Jackyuanxin {pr}3973 - Document edge lookup in
GenericGraph.__getitem__()by {user}mayank-dev-15in {pr}4761 - Correct the {class}
.FadeOutexample name by {user}GniLudioin {pr}4832 - Document whitespace-stripped indexing in {class}
.Textby {user}SupernovaIain {pr}4866 - Preserve line color in the
MovingDotsexample by {user}shenao010415in {pr}4895 - Correct the font-directory lookup documented for
register_font()by {user}ExploreMathsin {pr}4880 - Correct angle ordering in the
cartesian_to_spherical()andspherical_to_cartesian()docstrings by {user}changsheng0804-blipin {pr}4764 - Clarify frame terminology in the {class}
.MovingCameraSceneexample by {user}nikolajmunkin {pr}4910
Testing π§ͺ
- Add unit tests for color helper functions by {user}
THE-RAFin {pr}4749 - Add regression tests for four recent
VMobjectfixes by {user}THE-RAFin {pr}4750 - Add tests for edge lookup in
GenericGraph.__getitem__()by {user}sridhar-3009in {pr}4753 - Add a regression test for text stroke-width scaling in compound objects by {user}
vihduttain {pr}4703
Infrastructure & Build π¨
- Update TinyTeX installation on Windows and macOS to fix CI failures by {user}
chopan050in {pr}4679 - Update CI workflow dependencies by {user}
behacklin {pr}4677 - Switch package builds from Hatchling to uv-build by {user}
JasonGrace2282in {pr}4619
Code Quality & Refactoring π§Ή
- Update the project metadata link to X (formerly Twitter) by {user}
henrikmidtibyin {pr}4642 - Replace a bare
exceptinrate_functions.pyby {user}koteshyelamatiin {pr}4891 - Simplify the {class}
.Codesyntax-coloring implementation by {user}GniLudioin {pr}4894 - Update pre-commit hooks by {user}
behacklin {pr}4920 - Rename
TypstMathto {class}.MathTypstto match existing {class}.Tex/ {class}.MathTexcoupling by {user}behacklin {pr}4925
Type Hints π
- Add type annotations to
mobject.pyby {user}henrikmidtibyin {pr}4388 - Use
npt.NDArray[np.float64]forVMobject._bezier_t_valuesby {user}GoThronesin {pr}4675 - Improve
Callableannotations for mobject updater utilities by {user}treszkaiin {pr}4728 - Add type annotations to
transform_matching_parts.pyby {user}henrikmidtibyin {pr}4400 - Fix the
_on_finishannotation inAnimation.__init__by {user}GniLudioin {pr}4812 - Add type annotations to
table.pyby {user}henrikmidtibyin {pr}4641
Other Changes
- Prepare new release:
v0.21.0by {user}behacklin {pr}4919
New Contributors
- {user}
Croustitmade their first contribution in {pr}4622 - {user}
xuruidongmade their first contribution in {pr}4631 - {user}
MqCreaplemade their first contribution in {pr}4630 - {user}
vihduttamade their first contribution in {pr}4694 - {user}
THE-RAFmade their first contribution in {pr}4749 - {user}
leqo-cmade their first contribution in {pr}4731 - {user}
treszkaimade their first contribution in {pr}4728 - {user}
gvauvertmade their first contribution in {pr}4088 - {user}
sridhar-3009made their first contribution in {pr}4753 - {user}
GniLudiomade their first contribution in {pr}4706 - {user}
mayank-dev-15made their first contribution in {pr}4761 - {user}
siddhu-pikachumade their first contribution in {pr}4704 - {user}
Sazzzzzzmade their first contribution in {pr}4810 - {user}
aoxiangtianyu-gomade their first contribution in {pr}4839 - {user}
SupernovaIamade their first contribution in {pr}4866 - {user}
koteshyelamatimade their first contribution in {pr}4891 - {user}
pjfomade their first contribution in {pr}4901 - {user}
MeiSiristhebestmade their first contribution in {pr}4906 - {user}
shenao010415made their first contribution in {pr}4895 - {user}
ExploreMathsmade their first contribution in {pr}4880 - {user}
srinu2003made their first contribution in {pr}4889 - {user}
changsheng0804-blipmade their first contribution in {pr}4764 - {user}
Theelxmade their first contribution in {pr}4819 - {user}
dexhuntermade their first contribution in {pr}4883 - {user}
nikolajmunkmade their first contribution in {pr}4910 - {user}
Helbronnermade their first contribution in {pr}4816 - {user}
HamdiBarkousmade their first contribution in {pr}4695
Full Changelog: Compare view