Comments (4)
There appears to be some weird interaction between pygments
(which manim uses in order to highlight code visualized via the Code
mobject) and voltron
, a package that we do not depend on in any way (your pip list
output is gigantic!). The immediate workaround on your end would be to create a separate virtual environment and use manim from there:
$ python3.11 -m venv py-manim
$ source py-manim/bin/activate
$ pip install manim
$ manim -pql ...
However, I do see an issue with manim itself here too: we should probably avoid running pygments.styles.get_all_styles()
on import manim
, as this forces pygments to run a bunch of code that could probably be delayed to the point where Code
is actually instantiated.
from manim.
There appears to be some weird interaction between
pygments
(which manim uses in order to highlight code visualized via theCode
mobject) andvoltron
, a package that we do not depend on in any way (yourpip list
output is gigantic!). The immediate workaround on your end would be to create a separate virtual environment and use manim from there:$ python3.11 -m venv py-manim $ source py-manim/bin/activate $ pip install manim $ manim -pql ...However, I do see an issue with manim itself here too: we should probably avoid running
pygments.styles.get_all_styles()
onimport manim
, as this forces pygments to run a bunch of code that could probably be delayed to the point whereCode
is actually instantiated.
Thanks. Creating a separate environment works for me.
I'm not going to close this issue because there's still an issue with manim itself. If it is required please feel free to help me close this issue.
from manim.
No, this issue should be left open; I've just updated title and description with more explicit tasks -- this is actually also a good issue for a first contribution to the library.
from manim.
Regarding the attribute removal, would it be a good idea, instead, to add a class method (say get_styles_list
or something similar) that more or less accomplishes the same thing, but has the added benefit that it won't run during import. The reason being, it's a bit odd to specifically point someone to another library for a list of available code styles, especially if it's not as widely known as some. This class method would really just be a wrapper, but it might be a bit more cohesive.
from manim.
Related Issues (20)
- pwntools compatibility issue due to gdb related problems HOT 1
- V0.18.1 NumberLine's number_to_point() is broken when using `add_tip` HOT 1
- Google Colab: Video data is no longer automatically embedded in the notebook HOT 1
- Manim stuck in python 3.12.3 on arch linux, and keeps allocating memory until no memory available. HOT 3
- Underline markup tag for MarkupText should be documented as <u></u> not <ul></ul>. HOT 1
- Latex error HOT 6
- FadeOut on DiGraph does not work smoothly HOT 1
- Autoaliasattr: `TypeVar`
- Error with Graph Tree Layout example in the graph.py HOT 3
- `VGroup` cannot have a `Mobject` as a child, but `VMobject` can
- I want to know there is a threeD table in Mainm? HOT 2
- always_redraw works in 0.18.0 but not in 0.18.1 (single ValueTracker) HOT 5
- cmanimpango fatal error: Python.h HOT 3
- Support Python 3.12 `TypeAlias` syntax
- Can not use \textcolor , always render as white color HOT 2
- Is it possible to use cli to read python content from stdin without creating a python file? HOT 1
- Use stdin as input will generate the output video in a "-" folder. Can I modify it ? HOT 1
- StreamLines Does not Work with OpenGL
- Transforming Tex with opengl renderer results in "Exception: Could not find a ring to attach" HOT 2
- Clean Up Manim's API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manim.