Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic checkpoint states on every line #2306

Open
Splines opened this issue Jan 29, 2025 · 1 comment
Open

Automatic checkpoint states on every line #2306

Splines opened this issue Jan 29, 2025 · 1 comment
Labels

Comments

@Splines
Copy link
Contributor

Splines commented Jan 29, 2025

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 Splines added the bug label Jan 29, 2025
@Splines Splines changed the title checkpoint_paste() on every line Automatic checkpoint states on every line Jan 29, 2025
@Splines
Copy link
Contributor Author

Splines commented Jan 29, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant