Skip to content

plotly.express import raises ModuleNotFound in environment without pandas. #2125

Closed
@CarlAndersson

Description

@CarlAndersson

Importing plotly.express when pandas is not available raises ModuleNotFoundError: No module named 'pandas', instead of the intended ImportError: Plotly express requires pandas to be installed.
This happens on from ._imshow import imshow.
Perhaps this import should be moved below the code that will output a more helpful message?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions