Skip to content

sahilvirdi01/Python-Manim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-Manim

Manim - A mathematical animation engine made by 3b1b for mathematical animations

Requirements

  • Python 3.7
  • Operating System (Linux (Preffered), Windows, MacOS)

Table of Contents

Installations

Linux Users

Below aee some packages we need to install to use manim as manim heavily relies on them : Cairo,sox, Latex andffmpeg

sudo apt install ffmpeg sox
sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev
sudo apt install texlive-latex-base texlive-full texlive-fonts-extra

Install Manim within a virtual environment to avoid package conflicts

python3 -m venv .venv
source .venv/bin/activate
pip install manim

Windows Users

I highly prefer Windows user to use WSL (Windows Subsystem for Linux) for Manim

Know More About WSL

WSL Setup

Requirements :

  • Windows 10(Build 20262+) or Windows 11

First check if you have all the prerequisites for the installation or not

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

Open Terminal and run :

wsl --install

You can see a list of Distros by runnig :

wsl --list --online

But for now we will be using Ubuntu

wsl --install -d Ubuntu

Follow on screen Commands to set Username and Password for Ubuntu

Install System Dependencies

sudo apt update && sudo apt upgrade -y
sudo apt install libcairo2-dev ffmpeg sox texlive-full

Install Manim within a virtual environment to avoid package conflicts

python3 -m venv .venv
source .venv/bin/activate
pip install manim

Repo Installation

Lets get this manim repo using the terminal -

    git clone https://github.com/sahilvirdi01/Python-Manim.git  
    cd Python-Manim                     

Gallery

Basic Shapes

Animation Code Preview
Hello World HelloWorld.py Hello World
Circle Circle.py Circle
Square Square.py Square
Triangle Triangle.py Triangle
Multiple Shapes Shapes.py Multiple Shapes
Transform animation Transform.py Transform

Mathematical animations

Animation Code Preview
Sine Wave Sine wave.py Transform

About

Learning Manim by building mathematical and graphical animations using Python.

Resources

Stars

Watchers

Forks

Contributors

Languages