I found a way to run Mamin on Google colab.
Mamin is the foundation of the famous 3Blue1Brown youtube video.
I always want to run it on google colab. Finally, I found a solution. There will be no installation error since we are in the same environment.
Step 1. Copy and paste it.
!sudo apt update!sudo apt install libcairo2-dev ffmpeg texlive texlive-latex-extra texlive-fonts-extra texlive-latex-recommended texlive-science tipa libpango1.0-dev!pip install manim!pip install IPython --upgrade
It will take several minutes.
***IMPORTANT*** After execution of the first cell, you will be prompted to restart the runtime. Click the “
restart runtime” button at the bottom of the cell output.
You don’t have to re-run the first cell once you install everything.
Step 2. Import and the magic starts
from manim import *
From manim import everything, then you will see “
Manim Community v0.7.0” — This is the most current version of ManimCE when this is written. Once confirmed,
If you see the usual help message, CONGRATULATIONS!!!
Step 3. Fun time
Study the following.
%%manim SquareToCircle # Note the difference from the manual!!!class SquareToCircle(Scene):
circle = Circle()
Have fun! 😆 😆 😆