

Mscene¶
A Python library for programming animation scenes with Manim in Google Colab to create science videos directly in the browser.
Manim is an animation engine designed to program precise animations for science videos. Google Colab (Colaboratory) is a hosted Jupyter Notebook service that requires no setup and provides free access to computing resources, including GPUs and TPUs.
Manim
The Manim Community Developers. Manim — Mathematical Animation Framework [Software].
Docs
Scenes
Plugins
Quickstart¶
Manim in Colab¶
Create a new Colab notebook at colab.new and run the cells below.
%pip install -q mscene
import mscene
%mscene -h
Install Manim
%mscene -l manim
Import Manim
from mscene.manim import *
%%manim -qm ExampleScene
class ExampleScene(Scene):
def construct(self):
banner = ManimBanner()
self.play(banner.create())
self.play(banner.expand())
self.wait(1.5)
Mscene Plugins¶
Plugins extend Manim with additional features.
%mscene plugins
from mscene.plugins import *
%%manim -qm FractalScene
class FractalScene(Scene):
def construct(self):
ks = KochSnowflake(level=2)
self.add(ks)
self.play(ks.animate.next_level())
self.wait(1.5)
self.play(ks.animate.prev_level())
self.wait(1.5)