Animation engine for explanatory math videos
Project description
ManimX
Manim is an engine for precise programmatic animations, designed for creating explanatory math videos.
Installation
Manim runs on Python 3.8 or higher.
System requirements are FFmpeg, OpenGL and LaTeX (optional, if you want to use LaTeX). For Linux, Pango along with its development headers are required. See instruction here.
Directly
# Install manimx
pip install manimx
# Try it out
manimx
For more options, take a look at the Using manim sections further below.
If you want to hack on manimx itself, clone this repository and in that directory execute:
# Install manimx
pip install -e .
# Try it out
manimx example_scenes.py OpeningManimExample
# or
manim-render example_scenes.py OpeningManimExample
Directly (Windows)
- Install FFmpeg.
- Install a LaTeX distribution. MiKTeX is recommended.
- Install the remaining Python packages.
git clone https://github.com/Manim-X/manimx.git cd manimx pip install -e . manimx example_scenes.py OpeningManimExample
Mac OSX
-
Install FFmpeg, LaTeX in terminal using homebrew.
brew install ffmpeg mactex
-
Install latest version of manimx using these command.
git clone https://github.com/Manim-X/manimx.git cd manimx pip install -e . manimx example_scenes.py OpeningManimExample
Anaconda Install
- Install LaTeX as above.
- Create a conda environment using
conda create -n manimx python=3.11
. - Activate the environment using
conda activate manimx
. - Install manimx using
pip install -e .
.
Using manim
Try running the following:
manimx example_scenes.py OpeningManimExample
This should pop up a window playing a simple scene.
Some useful flags include:
-w
to write the scene to a file-o
to write the scene to a file and open the result-s
to skip to the end and just show the final frame.-so
will save the final frame to an image and show it
-n <number>
to skip ahead to then
'th animation of a scene.-f
to make the playback window fullscreen
Take a look at custom_config.yml for further configuration. To add your customization, you can either edit this file, or add another file by the same name "custom_config.yml" to whatever directory you are running manim from. There you can specify where videos should be output to, where manim should look for image files and sounds you want to read in, and other defaults regarding style and video quality.
Documentation
License
This project falls under the MIT license.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file manimx-2024.6.22.tar.gz
.
File metadata
- Download URL: manimx-2024.6.22.tar.gz
- Upload date:
- Size: 183.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b12231f31d2e7b4d637821a576ad89f28a9881b172835da6707a0bf071077e1 |
|
MD5 | 0bdad53c95f4ce8f75309392bb4e23dc |
|
BLAKE2b-256 | d9c4bf26b08fb9eefffb623de75fee7b5d99b9bce6ab9eb3a6afcdf6927f69e1 |
File details
Details for the file manimx-2024.6.22-py3-none-any.whl
.
File metadata
- Download URL: manimx-2024.6.22-py3-none-any.whl
- Upload date:
- Size: 223.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8bc9f538e28f8c7c7ea98f41e849f84c37e7d42f9a39d4f064751a50c44be18 |
|
MD5 | d3ad57274f6c73e308b96208876abf57 |
|
BLAKE2b-256 | 7cc5a803e2698391a595dbf8d9688e6809b853cb01ae67d7b9a9024a4bb11e1a |