Skip to content

bionetslab/manim-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Visualizations with manim in Python

This repo contains some information and data for getting started with the python visualization framework manim. In the subdirectory example-basic/ you can find some basic code for playing around with geometric objects, and under example-network/ you can find a simple network visualization with text annotations.

Installation

Either via conda:

conda install -c conda-forge manim

or pixi:

pixi init; pixi add manim

For alternative installation strategies check out the manim website.

Usage

You can find exemplary code snippets in the directories example-basic/ and example-network/. Inside the directories, you should be able to render visualizations by running manim -pql main.py SquareAndCircle or manim -pql main.py ImportNetworkxGraph, respectively. The rendered mp4 file should appear under media/videos/.

If you want to setup a new visualization project, you can do this by running manim init project my-project --default. In the file main.py you can then simply start putting your own code into the construct() function of the corresponding Scene subclass.

For development, I can highly recommend the VS Code Plugin "Manim Viewer", which shows immediately rendered videos in a separate side panel.

Documentation

If you need inspiration or help, check out the tutorials or the reference manual.

About

Some basic code for getting started with the python visualization framework manim.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors