-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Optional dependency on matplotlib? #4
Comments
It's for convenience. IPython has a direct dependency on the matplotlib-inline backend so that the inline backend is always useable inside IPython. But we don't want IPython to have a dependency on Matplotlib, it's something that the user will need to install manually. |
I don't really understand. From what I've tried, attempting to use it results in an ImportError anyway:
|
As I said, you need to install Matplotlib manually. IPython should not depend on Matplotlib. |
Sure but I don't understand what's the point of installing matplotlib-inline automatically if it doesn't work. |
It's for convenience, the inline backend is part of the IPython goodies, it's IPython that provides the |
I don't think it is convenient, cause now the user has to do the task of the dependency resolver to figure out compatible versions. If you specify the dependency, you can specify compat bounds. If you don't want to make it a required dep, then at least make it an optional dependency.
|
AFAIK there hasn't be known incompatible versions yet so this issue has not come. But it's true it may come at some point. Unfortunately there isn't a common way between pip and conda to make optional dependency constraints (also commented here) |
Maybe @Carreau would have an opinion on this approach? |
I'm packaging for spack where you can, but then again, we can just manually define the optional dep whether it's specified or not. |
Su re I can add a |
Just find it a bit weird that mpl isn't listed in
install_requires
.The text was updated successfully, but these errors were encountered: