3b1b’s manim is a curious passion project to create interactive python plots animations via code. It is famous on e.g. youtube. Here is a powerful example. I believe the community edition(source) is recommended for newcomers.
Here are some notes and links I need while using it.
- ManimCommunity/manim: A community-maintained Python framework for creating mathematical animations.
sudo apt install libcairo2-dev libpango1.0-dev ffmpeg # Debian brew install py3cairo ffmpeg pango scipy # macos python -m pip install manim
- Moving things to the edge of the screen?
- manimml/ManimML: ManimML is a project focused on providing animations and visualizations of common machine learning concepts with the Manim Community Library.
- Matheart/manim-physics: Physics simulation plugin of Manim that can generate scenes in various branches of Physics.
- ManimCommunity/manim_editor: Web Presenter for Mathematical Animations using Manim.
- NeoPlato/manim-livestream: Package that implements livestreaming configurations for Manim.
- ManimCommunity/awesome-manim: A database with many Manim users and content creators
- heejin_park’s Lectures
- Manim Tutorial on 2D Graphs
This is how we create a cell that will render itself:
%%manim -v WARNING --progress_bar None CreateCircle class CreateCircle(Scene): def construct(self): circle = Circle() # create a circle circle.set_fill(PINK, opacity=0.5) # set the color and transparency self.play(Create(circle)) # show the circle on screen
-v WARNING and
--progress_bar None are to keep output minimalist.
It is somewhat hard to find documentation for this features by browsing, but it exists under ManimMagic, although there it punts lots of stuff to the manim command line.
In VS Code
There is an extension apparently.
It doesn't work for me; for one it seems to use PowerShell, somehow, but then give an error about a missing
/bin/sh. What shell/OS am I even supposed to be using?