Documentation

Python scene-writing docs for Manim Web

Learn the authoring model, copy known-good patterns, and use the generated API reference when you need exact signatures and parameters.

Build-generated referenceGuides for scene authors
Getting StartedGetting Started4 sections

Write Your First Scene

This is the shortest path from a blank script to a successful preview. It focuses on the Python scene shape, not on repository setup or deployment.

Minimal Scene

from manim import * class HelloScene(Scene):    def construct(self):        title = Text("Hello, Manim Web")        circle = Circle().shift(LEFT * 2)        square = Square().shift(RIGHT * 2)         self.play(FadeIn(title))        self.play(Create(circle), Create(square)) scene = HelloScene()scene.construct() 

Script Shape

The key pieces are a scene class, a construct() method, one or more mobjects, and a sequence of timeline actions. You usually create objects first, then add or animate them.

Preview Loop

The healthiest authoring loop is simple:

  1. Write a small scene.
  2. Preview it.
  3. Fix diagnostics or layout problems.
  4. Only add complexity once the current step is readable and stable.
Best practice
Start with very small scenes. A short scene with three clear objects teaches more than a complicated one that mixes layout, animation, and 3D all at once.

Where To Go Next

  • Learn the authoring mental model in Core Scene Model.
  • Use Objects and Layout when scenes start feeling visually unbalanced.
  • Use Examples and Patterns when you want known-good script structures.
  • Use Python API Reference when you know what concept you need and want exact details.