May 02, 2021
A total of 40 people contributed to this release. People with a ‘+’ by their names authored a patch for the first time.
Adam Ryczkowski +
Alex Lembcke +
Deniz Hasler +
Elisha Hollander +
Erik Tastepe +
Naveen M K
Newell Jensen +
Nidhal Baccouri +
Nikhil Garuda +
Ricky Chon +
The patches included in this release have been reviewed by the following contributors.
Naveen M K
Pull requests merged¶
A total of 112 pull requests were merged for this release.
- #1347: Restructure vector_field module and add documentation
:class`~.VectorField` is renamed to
ArrowVectorFieldand a new class
VectorFieldis added as a superclass for
AnimatedStreamLinesis removed. It’s functionality is moved to
StreamLines. Added a lot of new options when working with vector fields.
ShowPassingFlashWithThinningStrokeWidthwas moved to the indication module.
- #1161: Upgrades to CoordinateSystem and graphing.
Breaking changes were introduced to
NumberLineAll the above now use lists to construct their ranges as opposed to explicitly defining these values. x_range has replaced x_min, x_max and defining the step is much easier with x_step –>
[x_min, x_max, x_step]. There were also many upgrades to these classes which improve their functionality and appearance.
NumberLineOldwas introduced to continue support for
GraphScene, although we are moving away from GraphScene and intend to deprecate it in a future release.
- #1013: Refactored the Command Line Interface to use Click instead of Argparse
This change breaks the CLI API to organize the structure of Manim Community’s commands, options, and arguments.
To be more in line with POSIX compliant CLI conventions, options for commands are given BEFORE their arguments. In Argparse:
manim basic.py -p -qlWith Click:
manim -p -ql basic.py
Although this is primarily a refactor and most of the common options are still there, some options have been added/removed. Use the
--helpoption, or simply run the command without providing options/arguments to view the help page with the full list of subcommands/options/arguments.
--frame_rateoption which allows for custom fps that don’t have to be integer (i.e. 29.97, 23.98, etc.). Users no longer have to specify the FPS from within a config file. Additionally, the
--webgl_renderer_fpsoption has been removed. Use
--rendereroption which you can use to select your choice of renderer (e.g.
--renderer=opengl). There are currently THREE renderers to choose from!
--background_coloroption. Reassigned the
Removed the deprecated render quality flags, in particular:
--soundoption. It lost support long ago with the removal of SoX.
Deprecated classes and functions¶
- #1431: Fix CLI bugs
Fixed conflict with
-fwhich was previously assigned to both
--format. A warning is issued that
-fwill soon move to
Added back in flags to render the files as gif/last frame. Deprecated them in favor of
Fixed the broken
Fixed an issue where the
-qhquality option was interpreted as
-h, prompting the help page.
#1354: Refactored a few functions in space_ops.py, deprecated
- #1370: Remove TexMobject and TextMobject
TexMobject and TextMobject have been deprecated for a while, they are now fully removed. Use Tex or MathTex instead.
#1349: Removed the deprecated
#1259: Removed deprecated CairoText class
#1386: Implement utility methods for adding/removing vertices and edges of graphs; allow custom mobjects as vertices
- #1381: Hot reloading for the OpenGL renderer
Rerun scene when the input file is modified
- #1383: Overhaul of the
Added class Circumscribe combining functionality of CircleIndicate, AnimationOnSurroundingRectangle, ShowPassingFlashAround, ShowCreationThenDestructionAround, ShowCreationThenFadeAround, which have all been deprecated.
Changes to Flash: flash_radius parameter now defines inner radius of the animation. Added new parameter time_width.
ShowCreationThenDestruction has been deprecated in favor of ShowPassingFlash
Changes to ApplyWave: New implementation giving more flexibility with new parameters wave_func, time_width and`ripples`
Renamed WiggleOutThenIn to Wiggle (WiggleOutThenIn has been deprecated)
Added documentation and examples to all the above
Other minor enhancements and bug-fixes
- #1383: Overhaul of the
- #1261: Render image automatically if no animation is played in a scene
If no animations in scene and asked to preview/render a video, preview/render an image instead of raising a confusing error.
- #1200: Add text and SVG mobjects to OpenGL
Added OpenGL-compatible text and SVG mobjects
- #1398: Fix and enhance Mobject.arrange_in_grid
arrange_in_grid now actually arranges submobjects in a grid. Added new parameters buff, cell_alignment, row_alignments, col_alignments, row_heights, col_widths, flow_order.
#1380: Allow image objects as background images
#1363: Change of TeX compiler and output file format
- #1359: Make FILE a required argument
Make FILE a required argument, manim/cli/render/commands.py:L30
#1304: Improve Tex string splitting at double braces: only split for double brace groups
- #1340: Add OpenGL support to the new transform animations
Made FadeTransform, FadeTransformPieces, TransformMatchingShapes and TransformMatchingTex compatible with OpenGL rendering.
- #1343: Make TexTemplate() simple, but keep Tex()’s default template
TexTemplate() now returns a simple tex template.
#1320: Add jpeg extension to the default image extensions
#1237: Notify user if they are using an outdated version of Manim
#1260: Change Brace from Tex to SVG (#1258)
#1122: Support for specifying the interpolation algorithms for individual ImageMobjects
- #1220: Added sanity checks to
Add Mobject add_to_back sanity checks: - Raises ValueError when Mobject tries to add itself - Raises TypeError when a non-Mobject is added - Filters out incoming duplicate submobjects if at least one instance of that submobject exists in the list
- #1220: Added sanity checks to
#1248: Add Copy function to TexTemplate
#1368: Added a check to ensure checking for the latest version was successful
#1395: SVG transforms now handle exponent notation (6.02e23)
#1355: Rewrite put_start_and_end_on to work in 3D
#1305: Automatically remove long tick marks not within the range of the
#1296: Fix random pipeline TeX failures
Changes concerning the testing system¶
#1299: Red pixels (different value) now appear over green pixels (same value) in GraphicalUnitTest
Changes to our development infrastructure¶
- #1436: Cache poetry venv with pyproject.toml hash in key
Cache poetry venv with pyproject.toml hash in key
- #1435: CI: Update poetry cache when new version is released
Fix test_version failure in CI when using cached poetry venv
#1427: Add URL’s to pyproject.toml
#1421: Updated changelog generator’s labels and removed pre-commit bot from changelog
#1339: CI: Fix macOS installation error from creating file in read-only file system
- #1257: CI: Caching ffmpeg, tinytex dependencies and poetry venv
CI: Caching ffmpeg, tinytex dependencies and poetry venv
#1294: Added mixed-line-ending to .pre-commit-config.yaml
#1278: Fixed flake8 errors and removed linter/formatter workflows
#1270: Added isort to pre_commit file
- #1263: CI: Turn off experimental installer for poetry to fix installation errors
Turn off experimental installer for poetry to prevent manim installation errors for packages.
Downgrade py39 to py38 for flake checks as pip does not enjoy py39, along with poetry.
- #1255: CI: Fix macOS pipeline failure
Update ci.yml to update and upgrade brew if necessary before installing dependencies, and remove the unsupported dvisvgm.86_64-darwin package.
#1254: Removed the comment warning that GitHub doesn’t allow uploading video in the issue templates.
#1216: Use actions/checkout for cloning repository; black-checks
#1235: Fixed version of decorator at <5.0.0
Code quality improvements and similar refactors¶
#1411: Change Union[float, int] to just float according to PEP 484
#1241: Type Annotations: Fixing errors showing up in static type checking tool mypy
- #1319: Fix mean/meant typo
Fix typo in docs
#1313: Singular typo fix on the Quickstart page in documentation
- #1292: Remove unnecessary imports from files
Imports reduced in a bunch of files
#1295: Fix grammar and typos in the CODE OF CONDUCT
- #1293: Minor fixes - reduce lines
Remove unnecessary lines
#1281: Remove all Carriage Return characters in our files
#1178: Format Imports using Isort
#1233: Fix deprecation warning for
#1282: Fix typing hints in vectorized_mobject.py based on mypy
#1434: Prepare v0.6.0