melizalab / comp-neurosci

Problem sets and materials for systems and computational neuroscience course
15 stars 11 forks source link

"Failed to load model class 'MPLCanvasModel' from module 'jupyter-matplotlib'" #7

Open dmeliza opened 5 months ago

dmeliza commented 5 months ago

Students are encountering this error in notebook 1:

image

It appears to be related to a missing package, but reports are that a pip install of jupyter-matplotlib doesn't fix it.

dmeliza commented 5 months ago

Waiting for students to send me their configurations, as I am unable to replicate the error. Here is my configuration:

(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.4 | packaged by conda-forge | (main, Jun 10 2023, 18:08:17) [GCC 12.2.0]
ipympl version: 0.9.3
Selected Jupyter core packages...
IPython          : 8.12.0
ipykernel        : 6.22.0
ipywidgets       : 8.0.6
jupyter_client   : 8.3.0
jupyter_core     : 5.3.1
jupyter_server   : 2.7.1
jupyterlab       : 3.6.3
nbclient         : 0.7.4
nbconvert        : 7.3.1
nbformat         : 5.9.2
notebook         : 6.5.4
qtconsole        : not installed
traitlets        : 5.9.0
Known nbextensions:
  config dir: /sfs/qumulo/qhome/cdm8j/.jupyter/nbconfig
    notebook section
      jupyter-js-widgets/extension  enabled 
      - Validating: OK
  config dir: /apps/software/standard/core/jupyterlab/3.6.3-py3.11/etc/jupyter/nbconfig
    notebook section
      dash/main  enabled 
      - Validating: OK
      jupyter_resource_usage/main  enabled 
      - Validating: OK
      jupyterlab-plotly/extension  enabled 
      - Validating: OK
      voila/extension  enabled 
      - Validating: problems found:
        - require?  X voila/extension
      jupyter-js-widgets/extension  enabled 
      - Validating: OK
    tree section
      jupyter_server_proxy/tree  enabled 
      - Validating: OK
JupyterLab v3.6.3
/apps/software/standard/core/jupyterlab/3.6.3-py3.11/share/jupyter/labextensions
        jupyterlab-topbar-extension v0.6.1 enabled OK (python, jupyterlab-topbar)
        jupyterlab-system-monitor v0.8.0 enabled OK (python, jupyterlab-system-monitor)
        jupyterlab-plotly v5.16.1 enabled OK
        jupyterlab-nvdashboard v0.9.0 enabled OK (python, jupyterlab_nvdashboard)
        jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
        @voila-dashboards/jupyterlab-preview v2.3.1 enabled  X (python, voila)
        @jupyterhub/jupyter-server-proxy v4.0.0 enabled OK
        @jupyter-server/resource-usage v0.7.2 enabled OK (python, jupyter-resource-usage)
        @jupyter-widgets/jupyterlab-manager v5.0.8 enabled OK (python, jupyterlab_widgets)

"@voila-dashboards/jupyterlab-preview@2.3.1" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab                  Extension        Package
>=3.6.3 <3.7.0              >=4.0.0 <5.0.0   @jupyterlab/application
>=3.6.3 <3.7.0              >=4.0.0 <5.0.0   @jupyterlab/apputils
>=5.6.3 <5.7.0              >=6.0.0 <7.0.0   @jupyterlab/coreutils
>=3.6.3 <3.7.0              >=4.0.0 <5.0.0   @jupyterlab/fileeditor
>=3.6.3 <3.7.0              >=4.0.0 <5.0.0   @jupyterlab/mainmenu
>=3.6.3 <3.7.0              >=4.0.0 <5.0.0   @jupyterlab/notebook
>=3.6.3 <3.7.0              >=4.0.0 <5.0.0   @jupyterlab/settingregistry
>=3.6.3 <3.7.0              >=4.0.0 <5.0.0   @jupyterlab/ui-components
>=1.11.0 <2.0.0             >=2.0.0 <3.0.0   @lumino/coreutils
>=1.10.0 <2.0.0             >=2.0.0 <3.0.0   @lumino/signaling
>=17.0.1 <18.0.0            >=18.2.0 <19.0.0 react
>=17.0.1 <18.0.0            >=18.2.0 <19.0.0 react-dom

Other labextensions (built into JupyterLab)
   app dir: /sfs/applications/202312/software/standard/core/jupyterlab/3.6.3-py3.11/share/jupyter/lab
        @plotly/dash-jupyterlab v0.4.3 enabled OK