Replies: 2 comments 10 replies
-
Mhm, manim-sideview does have a similar workflow. It allows you to see the rendered output in realtime inside the VSCode window. The way it works is that, it is listening to vscode events and when the file is being saved or a custom shortcut is being stricken, the video is rendered and a webview is spawned in the editor. The underlying rendering command is the same command for rendering that we would usually do. |
Beta Was this translation helpful? Give feedback.
-
check out this new VSCode extension (it's specifically for 3b1b's manim version. Maybe it can be adapted to community?): extension's repo: https://github.com/bhoov/vscode-manim update: the repo was renamed to: https://github.com/bhoov/manim-notebook |
Beta Was this translation helpful? Give feedback.
-
I've just watched Grant's awesome How I animate 3Blue1Brown video and was fascinated by his effective workflows where he could run part of the code and immediately see the output in an interactive window. In the video, this is between 3:32 and 6:48, with the most important part starting at 5:29.
This workflow is described in his Readme here and relies on
checkpoint_paste()
method then looks for cached scene states (cached based on the comment) and renders the scene starting at that point. With the help of Sublime shortcuts, Grant is able to highlight code, press the key and immediately see the effects in an interactive window that even supports navigating the 3D scene. All of this kind of acts as a Python debugger breakpoint.When I first tried Manim community a few years ago, what annoyed me was that the turnaround time is too long in my opinion, especially when working with a bit more complex scenes than the examples. Always having to render out a video file is tedious. Looking at the Manim Getting Started guide again now, it still proposes to enter commands in the shell in order to render out video files to preview a scene.
That's why I'm asking if there is any more interactive workflow available with Manim Community? E.g. one like the presented in the video where an interactive 3D scene is always visible in a floating window. It would be really cool if this was even available in VSCode as I don't use Sublime. Maybe this would be something for
manim-sideview
@Rickaym if this kind of workflow doesn't already exist?How do you work efficiently with the Manim Community edition? Could you share some of your tips?
Beta Was this translation helpful? Give feedback.
All reactions