You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhancement (of new feature): JupyterLab docker image and documentation for manim and IPython (#977)
* fix import: move setting __version__ to top of __init__
* add simple Dockerfile for a manim-jupyterlab container
* add section on jupyterlab in docker/readme.md
* improve Dockerfile: separate user, install manim with all extras, upgrade to python 3.8
* remove separate jupyterlab docker image, adapt readme
* add missing latex package
* include link to interactive worksheet in documentation
* Update README.md
Co-authored-by: kolibril13 <[email protected]>
@@ -34,7 +35,12 @@ Manim is an animation engine for explanatory math videos. It's used to create pr
34
35
35
36
## Installation
36
37
37
-
Manim requires a few dependencies that must be installed prior to using it. Please visit the [Documentation](https://docs.manim.community/en/latest/installation.html) and follow the appropriate instructions for your operating system.
38
+
Manim requires a few dependencies that must be installed prior to using it. If you
39
+
want to try it out first before installing it locally, you can do so
For the local installation, please visit the [Documentation](https://docs.manim.community/en/latest/installation.html)
43
+
and follow the appropriate instructions for your operating system.
38
44
39
45
Once the dependencies have been installed, run the following in a terminal window:
40
46
@@ -73,7 +79,8 @@ You should see your native video player program pop up and play a simple scene i
73
79
[GitHub repository](master/example_scenes). You can also visit the [official gallery](https://docs.manim.community/en/latest/examples.html) for more advanced examples.
74
80
75
81
Manim also ships with a `%%manim` IPython magic which allows to use it conveniently in JupyterLab (as well as classic Jupyter) notebooks. See the
76
-
[corresponding documentation](https://docs.manim.community/en/latest/reference/manim.utils.ipython_magic.ManimMagic.html) for some guidance.
82
+
[corresponding documentation](https://docs.manim.community/en/latest/reference/manim.utils.ipython_magic.ManimMagic.html) for some guidance and
83
+
[try it out online](https://mybinder.org/v2/gist/behackl/725d956ec80969226b7bf9b4aef40b78/HEAD?filepath=basic%20example%20scenes.ipynb).
Another alternative is to use the docker image to spin up a local webserver running
40
+
JupyterLab in whose Python kernel manim is installed and can be accessed via the `%%manim` cell magic.
41
+
To use JupyterLab, run
42
+
```
43
+
$ docker run -it -p 8888:8888 manimcommunity/manim jupyter lab --ip=0.0.0.0
44
+
```
45
+
and then follow the instructions in the terminal.
46
+
38
47
# Important notes
39
48
When executing `manim` within a Docker container, several command line flags (in particular `-p` (preview file) and `-f` (show output file in the file browser)) are not supported.
0 commit comments