explaingit

3b1b/videos

10,678PythonAudience · developerComplexity · 4/5LicenseSetup · hard

TLDR

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.

Mindmap

mindmap
  root((3b1b videos))
    What it does
      Python animation source
      Math video scenes
      Live debug workflow
    Tech Stack
      Python
      Manim library
      LaTeX rendering
    Use Cases
      Study video production
      Learn Manim patterns
      Adapt scenes
    Setup
      Manim from source
      LaTeX required
      Older scenes may break
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Study how specific 3Blue1Brown videos were built scene by scene in Python

USE CASE 2

Learn how to use Manim by reading real production animation code

USE CASE 3

Adapt a scene from a 3Blue1Brown video to create your own math animation

Tech stack

PythonManimLaTeXSublime Text

Getting it running

Difficulty · hard Time to first run · 1day+

Requires installing Manim from source plus a full LaTeX distribution, older scenes may not work with the current Manim version.

You can share and adapt the video scene code for non-commercial purposes only, with credit and under the same license terms, the Manim library itself is MIT-licensed.

In plain English

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.

Copy-paste prompts

Prompt 1
I have this Manim scene from 3b1b/videos. Help me understand what each animation call does and how the scene is structured: [paste code]
Prompt 2
Using the 3Blue1Brown video codebase as a reference, help me write a Manim scene that animates the Pythagorean theorem step by step.
Prompt 3
Show me how to set up the interactive Sublime Text workflow from the 3b1b/videos README so I can preview Manim scenes live while coding.
Prompt 4
I want to replicate the checkpoint system from 3b1b/videos in VS Code, help me set up keyboard shortcuts that drop into a live Manim debugging mode.
Open on GitHub → Explain another repo

← 3b1b on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.