bhoov / manim-notebook

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

Detect previewing cell from different class #9

Open Splines opened 5 days ago

Splines commented 5 days ago

The word "currently" refers to code of #8 in this pull request.

Currently, when previewing a cell from one class, then previewing a cell from another class, the new elements are just put on top of the active scene. Instead, we'd probably want to ask the user if they want to quit the active Manim interactive shell and run the manimgl command again with the new class name.

We could reuse code that would be introduced to close #2 beforehand.