Grant Sanderson a.k.a. 3blue1brown’s project manim is a curious passion project to create interactive python plot-compatible animations with mathematics, via code. It is youtube-famous. Here is a powerful example of what this tool can do, i.e. make you feel smart and fancy.. I believe the community edition(source) is recommended for newcomers rather than the more advanced OpenGL version of
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?
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?