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 is a hosted Jupyter Notebook service that requires no setup and provides free access to computing resources, including GPUs and TPUs.

Docs

docs

Scenes

scenes

Clips

clips

Plugins

plugins

Docs

docs

Scenes

scenes

Clips

clips

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 *

Example Scene

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

%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)