manimce-best-practices

Best practices and patterns for Manim Community Edition, the Python animation engine for mathematical visualizations. Covers Scene structure, mobject types, 15+ animation classes, and LaTeX/MathTex rendering with color control Includes 3D support via ThreeDScene, camera manipulation, updaters with ValueTracker, and coordinate systems (Axes, NumberPlane) Provides organized rule files for core concepts, text/math, styling, positioning, timing, and CLI usage with quality flags Includes five complete working examples (basic animations, math visualization, updaters, graphing, 3D) and three scene templates for quick project setup Distinguishes ManimCE ( from manim import * , manim CLI) from ManimGL/3b1b version to prevent version confusion

INSTALLATION
npx skills add https://github.com/adithya-s-k/manim_skill --skill manimce-best-practices
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$2c

Styling & Appearance

Positioning & Layout

Coordinate Systems & Graphing

  • rules/3d.md - ThreeDScene, 3D axes, surfaces, camera orientation

Animation Control

Configuration & CLI

  • rules/cli.md - Command-line interface, rendering options, quality flags

Shapes & Geometry

  • rules/shapes.md - Circle, Square, Rectangle, Polygon, and geometric primitives

Working Examples

Complete, tested example files demonstrating common patterns:

Scene Templates

Copy and modify these templates to start new projects:

Quick Reference

Basic Scene Structure

from manim import *

class MyScene(Scene):

    def construct(self):

        # Create mobjects

        circle = Circle()

        # Add to scene (static)

        self.add(circle)

        # Or animate

        self.play(Create(circle))

        # Wait

        self.wait(1)

Render Command

# Basic render with preview

manim -pql scene.py MyScene

# Quality flags: -ql (low), -qm (medium), -qh (high), -qk (4k)

manim -pqh scene.py MyScene

Key Differences from 3b1b/ManimGL

Feature

Manim Community

3b1b/ManimGL

Import

from manim import *

from manimlib import *

CLI

manim

manimgl

Math text

MathTex(r"\pi")

Tex(R"\pi")

Scene

Scene

InteractiveScene

Package

manim (PyPI)

manimgl (PyPI)

Jupyter Notebook Support

Use the %%manim cell magic:

%%manim -qm MyScene

class MyScene(Scene):

    def construct(self):

        self.play(Create(Circle()))

Common Pitfalls to Avoid

  • Version confusion - Ensure you're using manim (Community), not manimgl (3b1b version)
  • Check imports - from manim import * is ManimCE; from manimlib import * is ManimGL
  • Outdated tutorials - Video tutorials may be outdated; prefer official documentation
  • manimpango issues - If text rendering fails, check manimpango installation requirements
  • PATH issues (Windows) - If manim command not found, use python -m manim or check PATH

Installation

# Install Manim Community

pip install manim

# Check installation

manim checkhealth

Useful Commands

manim -pql scene.py Scene    # Preview low quality (development)

manim -pqh scene.py Scene    # Preview high quality

manim --format gif scene.py  # Output as GIF

manim checkhealth            # Verify installation

manim plugins -l             # List plugins
BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card