Manim-Notebook / manim-notebook

Simple commands to replicate the manim dev workflow in VSCode
MIT License
5 stars 0 forks source link

Command to run active cell up to cursor position #15

Open Splines opened 1 week ago

Splines commented 1 week ago

While the preview selection command is useful, you always have to remember to include a code comment in it or otherwise the scene caching mechanism by Manim does not work. To only run the active Manim cell up to the position where the cursor is, it'd be nice to have a Preview active Manim Cell up to cursor position command. This way, I can just place my cursor anywhere in a cell and press a key to run the cell up to the cursor position.

Splines commented 1 week ago

bhoov replied here:

Let's keep the previewSelection for those that watch Grant's video and want to replicate his exact workflow, since that feature is already implemented. I have found that it is useful to run disposable lines to "see what they do", without any desire to reset the video state to the beginning of the cell.

However, your proposed solution of "run cell up to cursor" is super useful to my particular workflow. Would like to see it as part of the extension

bhoov commented 1 week ago

This is a "nice to have", not essential for v0.1.0