Skip to content

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

@krassowski

Description

@krassowski

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions