Skip to content

Installing ipympl without matplotlib ? #560

Open

Description

@mboisson

Hi,
Apparently, to use ipympl with Jupyter, one needs to install it in the kernel that runs the jupyterhub:
#547

but that also installs matplotlib, which is a no go.

Can we install ipympl without installing matplotlib, so that our users can install whatever matplotlib they want ?

Thanks

Activity

  1. martinRenou commented on Jul 26, 2024

    @martinRenou
    Member

    Hi,

    Your users can always pip install the matplotlib version they want in the kernel from the notebook with the %pip magic. Though keep in mind ipympl does not work with all the matplotlib versions available.

    You can also install ipympl with pip and the --no-deps option to not pull matplotlib, but you'd need to install other dependency manually.

    Ideally we would split the front-end components from the Python library in ipympl, as we've done elsewhere for widgets. That way you could just install the front-end component and your users would be responsible for installing ipympl in the kernel if they want to use it

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions