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.

Agent Sandbox: Secure Local Development for AI Coding Agents
August 17, 2026
Agent Sandbox provides a robust and secure local development environment specifically designed for collaborating with AI coding agents. It ensures minimal filesystem access, configurable network egress policies, and secure secret injection, protecting your local machine from potentially risky agent operations. This project supports various AI agents and integrates seamlessly with both CLI and popular IDE devcontainer setups.

AMD Skills: Empowering AI Agents with AMD's Optimized Software Stack
August 16, 2026
AMD Skills is the official catalog of AI agent skills from AMD, designed to empower AI agents with optimized software for AMD hardware. This repository provides knowledge, scripts, and conventions for working with AMD's stack, enabling seamless integration with major coding agents like Cursor, Claude Code, OpenAI Codex, and Gemini CLI.

agent-tackle-box: A Terminal Debugger for LangGraph & LangChain Agents
August 15, 2026
agent-tackle-box is a comprehensive toolkit for developing AI agents, featuring the powerful `agent-debugger`. This terminal debugger provides deep insights into LangGraph and LangChain agents. It allows developers to inspect state, monitor tool calls, and step through Python code, all within a unified Textual UI.

ADR: Uber's Enterprise Security System for AI Agents
August 14, 2026
ADR (Agentic AI Detection and Response) is an enterprise security system developed by Uber to secure AI agents. It offers critical capabilities like observability, security benchmarking, and threat detection, ensuring the safe operation of both employee and customer-facing AI applications. This open-source project is deployed in production at Uber and was accepted to MLSys 2026.
Source repository
Open the original repository on GitHub.
11 counted GitHub visits