Science animation with Manim in Colab
Project description
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mscene-0.1.4.tar.gz.
File metadata
- Download URL: mscene-0.1.4.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55cd94bbf4b510a811ccd668b7bcfa55301c3e28332c42ce193deed5a2371e8d
|
|
| MD5 |
8ebb1f35cc168662c906d81b0e68327a
|
|
| BLAKE2b-256 |
f8111fdc4ce37315a5981ccd3212c5adefc7ffd27ce8ef694692952e9c67bb2d
|
File details
Details for the file mscene-0.1.4-py2.py3-none-any.whl.
File metadata
- Download URL: mscene-0.1.4-py2.py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6debfa79f9971cf38202a32e2e4b249e00ef555780e9b0777158df62721b116f
|
|
| MD5 |
124be8d368ce52397a5c492f2656598b
|
|
| BLAKE2b-256 |
9ecba26d99e2c9eb3c2dbdc64994aae7485d0d1041d263ec133a96a4bb00428e
|