manim icon indicating copy to clipboard operation
manim copied to clipboard

Automatic checkpoint states on every line

Open Splines opened this issue 10 months ago • 1 comments

I was wondering what the original motivation for the CheckpointManager was since it forces the users to split the scene into small chunks that start with a comment. This is really nice as it gives you a Jupyter-like experience and we fully hopped onto that train with Manim Notebook by introducing the concept of Manim Cells into VSCode.

But just as a figment, imagine what a more interactive preview experience could look like. Imagine a Manim Animation Debugger (MAD), where users can step through the construct() method just like they would on regular code and preview the scene line by line, or even run until the next breakpoint. And while doing so, see variable states evolve in a debug pane. The code would become a bit like a vertical video timeline that users can easily navigate. They could jump to any line and start previewing there, without the need for an extra comment at the start.

So as a first step to this vision, I was wondering if checkpoints could be automatically created for every single line of the animation and not just for comment lines. Are there any memory or performance concerns in doing so, in particular for very long scenes? Maybe I'm missing something entirely.

Splines avatar Jan 29 '25 18:01 Splines

And sorry that the bug label was assigned, this is not at all a bug.

Splines avatar Jan 29 '25 18:01 Splines