Mscene

A Python library for creating science animations with Manim in Google Colab.

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

docs


Scenes

scenes


Plugins

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 *
View Manim Gallery
%%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 *
View Mscene Plugins
%%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)