"First steps with Manim" doesn't work in manim docker image's Jupyter Lab
Preliminaries
- [X] I have followed the latest version of the installation instructions.
- [X] I have checked the installation FAQ and my problem is either not mentioned there, or the solution given there does not help.
Description of error
- Use
manimcommunity/manimdocker image - Bind directory with
First Steps with Manim.ipynbfile - Run the file with jupyter lab
Installation logs
Terminal output
https://pastebin.com/KdXaqUKb
System specifications
System Details
- OS - Windows 10 (19045.5011) + WSL (10.0.19041.4522 (WinBuild.160101.0800)) + Docker Desktop (4.11.1)
- RAM: 32G
- Python version (`python/py/python3 --version`): from manim docker image
- Installed modules (provide output from `pip list`): from manim docker image
Additional comments
Cell 1 gives a warning:
/usr/local/lib/python3.11/site-packages/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
Cell 2 renders.
Cell 3 gives an error: https://pastebin.com/KHejrpJ1
Does removing the quality options (-qm) from the magic command resolve the issue? You can alternatively set the render quality preset via config.quality = "medium_quality".
I get exactly the same Couldn't find ffmpeg or avconv message when trying to follow the quickstart in which we just create a scene.py file (and don't attempt to use Jupyter).
So that part of this issue seems to be independent of whether you use Jupyter.
I tried explicitly specifying the stable tag. The manim docker instructions say to use manimcommunity/manim which produced this warning, but when I tried manimcommunity/manim:stable, I no longer saw that Couldn't find ffmpeg or avconv warning.
So you could try that.
The latest image does not need ffmpeg/avconf any longer: while the warning is printed, it should be inconsequential.
The issue here is mainly about the error in step 3.