bhoov / manim-notebook

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

Manim Notebook

VSCode extension for replicating Grant Sanderson's manim workflow for Sublime Text from this video

Note this extension is specifically for 3b1b's original manim library, NOT the community version.

Example usage

  1. Install manimgl, make sure that the command manimgl works in your terminal
  2. Open your manim file (e.g. scene.py) in VSCode
  3. Place your cursor where you want to start the scene, on a line of code within the construct method in a scene class
  4. Run the VSCode command: cmd+shift+p -> Manim Notebook: Start scene at cursor
    (This command runs manimgl scene.py NAME_OF_SCENE -se <lineNumber> in your terminal)
    In the upper-right of your screen - the manim interactive video will appear.


Then you can do either:



Keybord shortcuts

You can use the default keyboard shortcuts for these commands, or assign your own.

All current commands are:



Demonstration

The resulting workflow can look like Grant's 🥳

(see demo on youtube)



Links