Run a video scene with manimgl
masterTo run a specific scene from a Python file, use the manimgl command.
If you are running a file from a subdirectory and do not want to modify your system path, you may need to append the parent directories to sys.path at the top of your Python file:
import sys
sys.path.append(".")
sys.path.append("..")
sys.path.append("../../")Then, execute the file using one of the following commands:
- To run the default scene in the file:
manimgl <file_name>.py - To run a specific scene class within the file:
manimgl <file_name>.py <SceneName>
manimgl e_field.py
# OR
manimgl e_field.py WavesIn3D