krassowski / jupyter-manim

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

%%manim not found #2

Closed bwanaaa closed 5 years ago

bwanaaa commented 5 years ago

I properly installed manim and can get the example_scenes.py to render. I properly installed jupyter manim and conda list shows it: jupyter-manim 0.11 pypi_0 pypi

I started jupyter notebook from a terminal initiated from within the manim folder I entered this in the first cell:

%%manim Shapes
from manimlib.scene.scene import Scene
from manimlib.mobject.geometry import Circle
from manimlib.animation.creation import ShowCreation

class Shapes(Scene):

    def construct(self):
        circle = Circle()
        self.play(ShowCreation(circle))

and got UsageError: Cell magic %%manim not found.

krassowski commented 5 years ago

Did you import jupyter_manim in a cell before?

bwanaaa commented 5 years ago

shakes head I feel sooo stupid...

krassowski commented 5 years ago

Happy to help! Thanks for letting me know, I missed this in the description. I changed the usage section in README to make it more obvious.

qo4on commented 4 years ago

I can't hit play: image

krassowski commented 4 years ago

For Colab you need --base64, please read the README file.

krassowski commented 4 years ago

Specifically, you would need to replace %%manim Shapes with %%manim Shapes --base64.