Skip to content

Usage in Chat ​

Ask for something in a session (for example "draw a unit circle with Manim"); the AI submits a piece of Manim Python through the manim_card tool, and a card appears in the chat stream. Before the tool returns, the code is prechecked: syntax errors, undefined names and unsupported constructs come back to the model, which corrects them within the same turn.

Playback rules ​

Several cards may exist in the chat stream at once, and playing all of them in full is expensive, so full playback happens only in these cases:

CaseBehaviour
A newly generated card first enters the viewportPlays through once
Any later remount (switching back, refreshing, scrolling away and back)Lands directly on the final frame, no replay
Cards in historical sessionsDo not play; show the final frame
Several cards produced within one stepOnly the last one plays in full
Scrolled out of the viewportThe canvas is kept; when more than 8 canvases are active they are reclaimed from farthest to nearest relative to the reading position

The playback chance is consumed exactly once

Scrolling out of the viewport after entering the playback queue, or skipping midway, spends the chance — viewing the card again shows the final frame, not a replay from the beginning.

Manual playback ​

The button in the card's top bar has two states:

  • ▶: play in full. Takes precedence over all the automatic rules above.
  • ⏩: jump straight to the final state.

Interrupted cards (the turn was stopped) do not render by default; press ▶ to start. Every canvas on a page shares one execution queue, so two canvases never play at the same time.

Viewing the code ​

The Python source can be read on the card and copied out to the AI for further adjustment.

Exporting a video ​

The download button in the card's top bar opens a two-row menu — one row per path. Each row's caption says both what it does and why it is greyed out. Both rows carry a submenu: hover the row (or press →) to open the quality tiers, and picking one starts the export at that quality.

OptionProduceRequiresBest for
Native rendermp4 in your Downloads folderpython3 / manim / the manim module / ffmpeg installed locallyRelease quality, mp4
Web exportwebm or mp4 (chosen by the browser) in your Downloads folderThis browser supports WebCodecs or MediaRecorderA fallback when nothing is installed locally

Quality tiers (in the submenu; the choice is remembered and applies to later cards too):

TierNative renderWeb export
CheapestDraft 480p · 15fpsSmooth 720p · 30fps (Web default)
MiddleStandard 720p · 30fpsStandard 1080p · 30fps (same picture, half the frames)
DefaultHigh 1080p · 60fps (native default)High 1080p · 60fps (smoothest, slowest)
FinerUltra 1440p · 60fps (noticeably longer)—

The two defaults deliberately differ. A native render runs as a local process, does not hold this page hostage, and its output usually ships somewhere — so it defaults to High. A Web export computes and encodes every frame on the spot, so each tier up costs several times the wait, while slightly softer and slightly fewer frames are nearly invisible in a short teaching animation — so it defaults to the fast one; anyone who wants sharper picks a tier up and pays that cost knowingly.

  • Native render hands the source to the local manim CLI for a real render, so frames and formula typesetting are stock Manim; the tiers are manim's own -ql / -qm / -qh / -qp. When something is missing the row is greyed out and its caption lists exactly what; latex and dvisvgm are only needed by formula constructs and are not prerequisites.
  • Web export uses the core package's frame-by-frame exporter: it collects the animation into a timeline, temporarily resizes the canvas to the selected tier, then renders each frame with seek(t) and encodes it — no real-time playback. The output carries exactly the chosen resolution and frame rate (bitrate follows pixels and frame rate), so detail is sharper than what the card shows, the frame rate is steady, the cost is largely independent of animation length, and page stutter does not show up in the output. seek resets every timeline animation and interpolates it, so Create / Transform / FadeIn are exact frame by frame; updaters that only accumulate dt and were never scheduled on the timeline do not advance, and look frozen in the export — write those as timeline animations (e.g. self.play(obj.animate.shift(...))) if you need them exported.
  • Exporting first re-runs the code on this card's scene (cleared before it starts), so two sets of objects never stack; the price is that the card is left on the last collected frame rather than the final state.
  • "1080p" is not a 720p canvas stretched up: the encoder is configured for the real pixel count. Upstream configures AVC at a level that only covers 720p, so the core package raises the level for the duration of the export (1080p30 → Level 4.0, 1080p60 → Level 4.2); the result plays and shares normally.
  • After a native render, the path can be hovered and clicked for "Show in folder"; a web export is a browser-side file with only a name, dropped straight into Downloads.
  • Native-render records persist: after a page refresh the card still shows the last exported file, and it says so honestly when that file has since been deleted.
  • What to install and how to check it item by item: see the configuration section.

When nothing can be drawn ​

On a render failure the card shows manim's original error message at the bottom. If a hard environment condition really is unmet, the card adds one actionable line — the same verdict the "Browser runtime" card in the configuration section reads. Per-item states are in Configuration.

DeepSeek Harness 插件系列 · 运行时与渲染引擎见核心包 manim-live