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

Installing ipympl without matplotlib ? #560

Open
mboisson opened this issue Jul 25, 2024 · 1 comment
Open

Installing ipympl without matplotlib ? #560

mboisson opened this issue Jul 25, 2024 · 1 comment

Comments

@mboisson
Copy link

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

@martinRenou
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants