videos
Code for the manim-generated scenes used in 3blue1brown videos
Python source code for the animated math videos on the 3Blue1Brown YouTube channel, built using the Manim animation library to write code that generates mathematical visuals instead of drawing them by hand.
This repository contains the Python source code behind the animated math videos on the 3Blue1Brown YouTube channel. Each video is built as a collection of scenes using a library called Manim, which the same creator also develops. Manim is a programmatic animation tool where you write Python code that produces mathematical visuals and animations rather than drawing them by hand.
The code here is primarily useful for people who want to study how specific 3Blue1Brown videos were made, or for developers interested in how Manim is used in a real production workflow. Running the code yourself requires installing Manim from source and having a LaTeX installation available on your machine, since the animations often render mathematical notation.
The README describes an interactive workflow built around a text editor called Sublime Text, with custom keyboard shortcuts that drop you into a live debugging mode for a scene. In this mode you can paste snippets of animation code into a terminal and see the result immediately, with a checkpoint system that saves and restores scene states so you can iterate on specific sections without re-running the whole file. The README also explains how to replicate this workflow in other text editors.
Older scenes in the repository may not work with the current version of Manim since the library has changed over time. There is also a separately maintained community edition of Manim, which the README acknowledges but does not cover.
The Manim library itself is open source under the MIT license, but the contents of this repository, meaning the video scene code, are under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 license, which means you can share and adapt the code but not for commercial purposes.
Where it fits
- Study how specific 3Blue1Brown videos were built scene by scene in Python
- Learn how to use Manim by reading real production animation code
- Adapt a scene from a 3Blue1Brown video to create your own math animation