Member-only story
This Python package animates your math!

Welcome back! Python is an awesome programming language that can practically build anything, but theres an awesome Python package that everyone needs to know about! This specific package is called manim, this package actually animates your math! If you want to check out their GitHub page, check out the link below:
This specific package will take certain math components of your Python project and animate them, check out the website below to see some examples of this:
If you want to install this package, check out the link below:
Now let’s take a look at an example, in this specific case, we’ll be constructing a scene (via their GitHub):
from manim import *
class SquareToCircle(Scene):
def construct(self):
circle = Circle()
square = Square()
square.flip(RIGHT)
square.rotate(-3 * TAU / 8)
circle.set_fill(PINK, opacity=0.5)
self.play(Create(square))
self.play(Transform(square, circle))
self.play(FadeOut(square))
At this point, we want to save this file as example.py, then we can run the following command:
manim -p -ql example.py SquareToCircle
At this point, you should see your native video player pop up and play the basic scene, in this case, a square should be transformed into a circle. If you want to see a lot more examples of the capability of this project, check out the link below: