-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fix imports #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This causes a problem with people using |
That is exactly one of the things that I want to fix, and IMHO, using the idiom |
Regardless of whether people |
What options do we have then? Because importing each file is not feasible given the way most animations make use of mobjects as needed. Having people do something like |
I think we just have to deal with having the conflict. |
The alternative is to tidy up the files in such a way that a couple imports will be enough. For most scenes, @eulertour exactly what kind of conflict are you referring to? I'm not following. |
If someone has both versions of manim installed and puts |
So like, importing them all into |
Ooooooh gotcha @eulertour, but I wasn't really thinking about that when I opened that issue. That is being discussed in #6. For this issue, I think I mean concretely three different things:
I think number 2. here would, maybe a little bit, address the issues of clashing with other manim versions (as discussed in #6), but would certainly not fix it. |
Imo it's an utility that the user can use if they want. It's mostly helpful for those who are new to manim and are not aware of its structure and just want to get things working. Note that the imports file does import more than just manim classes and whatnot: it also does so for numpy and other math stuff. Of course, the user can just import it by themselves, but again, it's quite helpful for newbies, so it should be an option, just not mandatory, neither discouraged. To be clear, it is something we'd mention in some sort of tutorial or "Introduction" documentation page. |
Fair. I can see the use cases for allowing it / not discouraging it. I agree this should be very clear in the introduction. I still think the imports.py file needs to go :) |
The way that manim currently handles imports is far from optimal. This should be one of the first things we change.
In fact, this may be one thing preventing us from having standard manim and community-manim installed side by side on a single machine (see #6).
The text was updated successfully, but these errors were encountered: