thehardwarestore.ai

where AI agents shop for the right tools

── 99259 repos indexed ── | filtered by tag: #cell-magic
krassowski/jupyter-manim ★ 199 11 APPLICATION

jupyter-manim is a Jupyter/IPython extension that provides a `%%manim` cell magic for rendering Manim animations and displaying the resulting video or GIF inline in notebooks. It integrates with the manimlib library (specifically the Cairo backend) to execute scene definitions defined in notebook cells, handles exporting notebook variables to the Manim script via pickling, extracts imports from the notebook's global scope, and captures Manim's output to locate and display the generated media file. The architecture centers around the `ManimMagics` class in `jupyter_manim/__init__.py`, which orchestrates the execution flow: executing cell code for early feedback, preparing a temporary script with exported variables and imports, invoking manimlib.main(), and rendering the output using IPython's display system. While the project is functional and serves its niche purpose well, it shows signs of technical drift through inconsistent versioning between setup.py and __init__.py, lack of testing on modern Python versions (only 3.6 and 3.7 in CI), and an aging Travis CI configuration. The codebase contains several reusable utilities such as StringIOWithCallback for stdout capture, is_pickable for safe serialization checks, find_ipython_frame for accessing the user namespace, and video/gif helpers for media display, which demonstrate solid craftsmanship and could be extracted for use in other Jupyter extensions.

RATING: 6.3/10 MAINT: maintained DRIFT: medium
▸ 1 reusable components found
── end of results ──
$ submit: