Skip to content

Running in debug mode in PyCharm #2498

Answered by behackl
trax72 asked this question in Q&A
Discussion options

You must be logged in to vote

I find it easiest to debug animations by running them as pure Python files. That is, I have a file like

from manim import *

class SquareToCircle(Scene):
    def construct(self):
        s = Square()
        c = Circle()
        self.add(s)
        self.play(Transform(s, c))


with tempconfig({"quality": "medium_quality"}):
    scene = SquareToCircle()
    scene.render()

and then I use the default Python debugger on it. Make sure the directory containing your code does not contain a directory "manim", otherwise things will break. Personally, I put my files in the example_scenes directory before running them.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@trax72
Comment options

Answer selected by trax72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants