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,

%manim --help

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):
def construct(self):
circle = Circle()
circle.set_fill(PINK, opacity=0.5)

Have fun! 😆 😆 😆



Ydobon is nobody.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store