Skip to content
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

[ENH] - Watch exceptions for ImportError and suggest to open conda-store UI #50

Open
krassowski opened this issue May 17, 2024 · 0 comments

Comments

@krassowski
Copy link
Contributor

Feature description

A number of libraries in pydata ecosystem has optional dependencies. When developing it would be useful if we could watch notebook outputs and detect if there is an ImportError and then add a button to open conda-store, with edit UI of relevant environment open.

Example error:

ImportError: Missing optional dependency 'openpyxl'.  Use pip or conda to install openpyxl.

Currently the need to click though menu to open conda-store, potentially click login, find the right environment, select add, paste the name of dependency, is really a chore. It should be two-click action. When not using conda-store I can just execute %pip install openpyxl which is so much faster.

Technically, we could make ipython return a special MIME type with JSON metadata about the required dependency, this would require working with pydata ecosystem.

Value and/or benefit

This would make the user experience so much nicer and feedback loop tighter.

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants