Mscene

A Python library for creating science animation 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

Plugins

Scenes

Clips

Docs

Plugins

Scenes

Clips

Quickstart

Manim in Colab

Visit colab.new to create a new Colab notebook.

Installation

%pip install -q mscene
import mscene
%mscene -l manim
from mscene.manim import *

Manim Gallery

Example Scene

%%manim -qm ManimScene

class ManimScene(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.

Adding Plugins

import mscene
%mscene plugins
from mscene.plugins import *

Mscene Plugins

Example Scene

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