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
manim_imports_ext is a Python file located in the root directory of this repository (link).
ManimGL always executes the universal_import_line at the beginning of any run. By default, this line is from manimlib import *.
However, the configuration can be modified using custom_config.py (typically located in the directory where you are running ManimGL). Grant has changed the universal_import_line to from manim_imports_ext import * (link). This modification requires Python to locate manim_imports_ext.py. If the PYTHONPATH environment variable is not set to the repository's root directory, an error will occur (other methods might work, but this is the one I am familiar with).
In summary, before running ManimGL, ensure the PYTHONPATH is set to the repository's root directory. You can do this by prepending PYTHONPATH=. to the manimgl command (e.g., PYTHONPATH=. manimgl).
Finally, note that, to the best of my knowledge, this setup is integral to how the entire repository functions. Simply commenting out the import line in the configuration file may not work, as other parts of the code also assume the PYTHONPATH points to the project's root directory.
How to run code with
manim_imports_ext
?The text was updated successfully, but these errors were encountered: