3b1b/videos: Exploring the Code Behind 3Blue1Brown's Math Animations
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
The 3b1b/videos repository hosts the Python code used to generate the captivating mathematical animations featured in 3Blue1Brown's educational videos. Primarily utilizing the Manim library, this project offers a unique insight into the creation process of complex visual explanations. It serves as an invaluable resource for those interested in mathematical visualization and the Manim animation engine.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
The 3b1b/videos GitHub repository provides the source code for the visually stunning mathematical animations seen in the popular 3Blue1Brown YouTube channel. This project is almost entirely built using the Manim library, a powerful tool for programmatic animation. It offers an unparalleled opportunity to delve into the intricate details of how complex mathematical concepts are brought to life through animation.
Installation
While this repository contains the scene code, the core animation engine is the Manim library. To run and experiment with these scenes, you will first need to install Manim. The repository's README directs users to the official Manim repository for installation instructions, specifically mentioning 3b1b/manim and the community-maintained ManimCommunity/manim. Grant Sanderson, the creator of 3Blue1Brown, also provides a video walkthrough of his workflow, which is highly recommended for understanding the setup.
Examples
The repository's README details a unique workflow centered around manimgl and an interactive mode. Users can run manimgl (file name) (scene name) -se (line_number) to enter a debugger-like interactive session. A key feature is the checkpoint_paste() function, which allows users to paste code snippets from their clipboard into the interactive terminal. This function can save scene states and revert to them, enabling efficient iteration and debugging of animations. The README also includes specific instructions for integrating this workflow with the Sublime Text editor, demonstrating how custom commands and keybindings can streamline the animation development process.
# Example of manimgl command
manimgl my_scene_file.py MyScene -se 123
# Example of checkpoint_paste() usage
# Copy this to clipboard and paste into manimgl interactive terminal
# This is a comment
self.play(FadeIn(my_object))
Why Use
This repository is an essential resource for anyone looking to understand the technical artistry behind 3Blue1Brown's acclaimed videos. Developers and educators can explore advanced Manim usage, learn best practices for mathematical visualization, and adapt existing scenes for their own educational content. It serves as a practical guide and an inspiring example of how code can be used to explain complex ideas with clarity and beauty. Furthermore, it's a great starting point for those wanting to contribute to or learn from a high-quality open-source project in the realm of educational technology.
Links
Related repositories
Similar repositories that may be relevant next.

LangTest: A Comprehensive Library for Safe & Effective Language Models
June 30, 2026
LangTest is an open-source Python library dedicated to ensuring the safety and effectiveness of language models. It offers a comprehensive framework for testing model quality, covering robustness, bias, fairness, and accuracy across various NLP tasks and LLM providers. With LangTest, developers can generate and execute over 60 distinct test types with just one line of code, promoting responsible AI development.

EvalPlus: Rigorous Evaluation for LLM-Synthesized Code
June 30, 2026
EvalPlus is a robust framework designed for the rigorous evaluation of code generated by Large Language Models (LLMs). It extends standard benchmarks like HumanEval and MBPP with significantly more tests, offering precise assessment of code correctness and efficiency. This tool is crucial for developers and researchers aiming to thoroughly validate LLM-synthesized code.

AgentEvals: Robust Evaluation Tools for LLM Agent Trajectories
June 30, 2026
AgentEvals is a powerful open-source package from LangChain designed to simplify the evaluation of agentic applications. It provides a collection of ready-made evaluators and utilities, with a particular focus on analyzing agent trajectories, the intermediate steps an agent takes to solve problems. This helps developers understand and improve the reliability and performance of their LLM agents.

Phoenix: AI Observability and Evaluation Platform for LLMs
June 28, 2026
Phoenix is an open-source AI observability platform from Arize AI, designed for comprehensive experimentation, evaluation, and troubleshooting of LLM applications. It provides robust features including OpenTelemetry-based tracing, LLM evaluation, and systematic prompt management. This platform helps developers optimize and debug their AI models effectively across various environments.
Source repository
Open the original repository on GitHub.