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

Failed to load model class 'MPLCanvasModel' from module 'jupyter-matplotlib' Error: No version of module jupyter-matplotlib is registered. #538

Closed
ashixu opened this issue Dec 7, 2023 · 6 comments

Comments

@ashixu
Copy link

ashixu commented Dec 7, 2023

Describe the issue

when i am plotting in the jupyterlab, it seems something wrong...
(Google Chrome)
cf93bc314d50fd1238969d5f89b5a15

Versions

C:\Users\10158>python -c "import sys; print('\n',sys.version); import ipympl; print('ipympl version:', ipympl.__version__)" && jupyter --version && jupyter nbextension list && jupyter labextension list

 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:26:23) [MSC v.1916 64 bit (AMD64)]
ipympl version: 0.9.3
Selected Jupyter core packages...
IPython          : 8.15.0
ipykernel        : 6.25.0
ipywidgets       : 8.0.4
jupyter_client   : 7.4.9
jupyter_core     : 5.3.0
jupyter_server   : 1.23.4
jupyterlab       : 3.6.3
nbclient         : 0.5.13
nbconvert        : 6.5.4
nbformat         : 5.9.2
notebook         : 6.5.4
qtconsole        : 5.4.2
traitlets        : 5.7.1
Known nbextensions:
  config dir: D:\anaconda\etc\jupyter\nbconfig
    notebook section
      jupyter-matplotlib/extension enabled
      - Validating: ok
      jupyterlab-plotly/extension enabled
      - Validating: ok
      jupyter-js-widgets/extension enabled
      - Validating: ok
JupyterLab v3.6.3
D:\anaconda\share\jupyter\labextensions
        jupyter-matplotlib v0.11.3 enabled ok
        jupyterlab-plotly v5.9.0 enabled ok
        @jupyter-widgets/jupyterlab-manager v5.0.9 enabled ok (python, jupyterlab_widgets)
        @pyviz/jupyterlab_pyviz v2.3.0 enabled ok (python, pyviz_comms)

Other labextensions (built into JupyterLab)
   app dir: D:\anaconda\share\jupyter\lab
        @krassowski/jupyterlab-lsp v3.10.2 enabled ok
@heydaridlm
Copy link

Ditto, I am also having this issue.

@matteobachetti
Copy link

Same here

@martinRenou
Copy link
Member

Can you try from a clean environment without jupyterlab-plotly and @pyviz/jupyterlab_pyviz ?

@matteobachetti
Copy link

@martinRenou so, it worked after I uninstalled both jupyter and ipympl, and reinstalled from pip. For reference, I'm using notebook 7, not jupyterlab.

@martinRenou
Copy link
Member

Thanks for confirming.

Can you try from a clean environment without jupyterlab-plotly and @pyviz/jupyterlab_pyviz ?

I'm asking about this because some extensions that are not updated to support ipywidgets 8 may break ipympl, I've seen this before.

Reinstalling can sometimes help.

@martinRenou
Copy link
Member

Closing for triaging. If you see this issue, please open your own issue providing your installation information, it's always helpful.

Thank you!

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

4 participants