bhoov / manim-notebook

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

Command to run active cell up to cursor position #15

Open Splines opened 2 days ago

Splines commented 2 days 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 2 days 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