manim_notebook
aims to integrate manim with jupyter notebook.
System requirements are cairo, ffmpeg, sox and latex.
You can directly install manim_notebook
from PyPI via pip:
pip install manim_notebook
Make sure you installed the correct version of manim_notebook
by running this command
pip show manim_notebook
If your version is not 1.0.1
then reinstall manim_notebook
.
pip uninstall manim_notebook
pip install manim_notebook==1.0.1
or
You can also install and configure things manually by cloning this repository,
git clone https://github.com/AkashKarnatak/manim_notebook.git
and then installing the necessary packages.
pip install -r requirements.txt
To use manim_notebook
on google colab, first you need to install system requirements specified above. You can install them with this command,
!wget https://raw.githubusercontent.com/AkashKarnatak/AkashKarnatak.github.io/master/install_manim_dependencies_on_colab.sh -O - | sh
Now you can install manim_notebook
via,
pip install manim_notebook
Spliting of output and input cell is not yet supported on google colab.
manim_notebook
makes use of IPython's cell magic commands to integrate manim in jupyter notebook. Cell magic takes a form like %%magic
and are placed on top of each cell in jupyter notebook.
Learn basic usage of manim_notebook
here.