Skip to main content

Science animation with Manim in Colab

Project description

Mscene

Mscene

A Python library for creating science animations with Manim in Google Colab. ✨ mscene.curiouswalk.com

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.

The Manim Community Developers. Manim — Mathematical Animation Framework [Computer software].
www.manim.community

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mscene-0.1.3.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mscene-0.1.3-py2.py3-none-any.whl (3.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mscene-0.1.3.tar.gz.

File metadata

  • Download URL: mscene-0.1.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for mscene-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d07f9db2447a7e5dbff1f0eddea23a5fd623a8dd63d1c317ea87123d95cee18d
MD5 9bcf5a1f361b1302f25b9009995dd8ef
BLAKE2b-256 e1c2499f196067f326107dde00faf6cd24527217b8f1de748d7feacd666f954c

See more details on using hashes here.

File details

Details for the file mscene-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: mscene-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for mscene-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e67e3478907bd1bcc57fe68a23fdc0c3de70d39792efed3e92f8fdb6fe423717
MD5 54740426a6df55aa48a7a6207b1c99f4
BLAKE2b-256 897663e10c54c2e713302b3b294d8f029986d51c353071190f3616cf1aa5033a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page