matplotlib / ipympl

Matplotlib Jupyter Integration
https://matplotlib.org/ipympl/
BSD 3-Clause "New" or "Revised" License
1.59k stars 225 forks source link

"ipympl" module can't be found in JupyterLab Desktop application #388

Closed PkRPintu closed 3 years ago

PkRPintu commented 3 years ago

First of all, thanks for creating the "ipympl" module. I have been using it extensively in JupyterLab. However, with the recent launch of the standalone JupyterLab Desktop application, I wanted to switch from the web-based JupyterLab to JupyterLab Desktop.

However, in the JupyterLab Desktop application, I can't import the "ipympl" module. (ModuleNotFoundError: No module named 'ipympl')

Could anyone please let me know how it can be done?

Thanks a lot.

Cheers Pradeep

https://github.com/jupyterlab/jupyterlab-desktop

ianhi commented 3 years ago

I think this is because jupyterlab desktop has it's own environment. See https://github.com/jupyterlab/jupyterlab-desktop/blob/master/user-guide.md#Customizing-the-Bundled-Python-Environment

Can you try running !pip install ipympl from within a notebook?

ianhi commented 3 years ago

I opened a PR on jlab-desktop adding ipympl to the default environment we'll see where that goes.

PkRPintu commented 3 years ago

Dear ianhi,

Thanks a lot. !pip install ipympl does the job.

Best wishes Pradeep