krassowski / jupyter-manim

manim cell magic for IPython/Jupyter to show the output video
MIT License
194 stars 11 forks source link

Problems with \sum #16

Closed ghostiek closed 4 years ago

ghostiek commented 4 years ago

When I run this piece of code, I get an unexpected result. It should be writing out \sum_{j=0}^\infty x_j fully then after two seconds adding brackets around it, but it draws half of the left one first and then completes it. In fact, the subscript of x doesn't get written out initially.

%%manim clttest --low_quality

class clttest(Scene):
    def construct(self):
        xj = TexMobject(
        r"""\left[""",
        r"""\sum_{j=0}^\infty x_j""",
        r"""\right]"""
        )
        self.play(Write(xj[1]))
        self.wait(2)
        self.play(Write(xj[0]),
                  Write(xj[2]))

KFITQW5BmB

The problem lies with \sum I assume because running this works just fine

%%manim clttest --low_quality

class clttest(Scene):
    def construct(self):
        xj = TexMobject(
        r"""\left[""",
        r"""x_j""",
        r"""\right]"""
        )
        self.play(Write(xj[1]))
        self.wait(2)
        self.play(Write(xj[0]),
                  Write(xj[2]))

HQMU5rPIyZ

ghostiek commented 4 years ago

Re-tested it on the main version of manim and the problem originated there. So I opened the issue there. I'll close this then I guess since I opened another issue