Error displaying widget: model not found
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the notebook snippet and inspecting the JupyterLab extension list. Compare ipympl 0.8.8 with the jupyter-matplotlib v0.10.1 extension, especially the report that an older extension is overshadowing it; done means the widget displays without the model or unregistered-module errors.
Written by the indexing model from the issue text.
Description
Describe the issue
%matplotlib widget
import matplotlib.pyplot as plt
plt.plot([0,1],[0,1])
results in
Error displaying widget: model not found
The javascript console shows:
Could not instantiate widget
Error: Could not create a model.
Uncaught (in promise) Error: Module jupyter-matplotlib, semver range ^0.10.5 is not registered as a widget module
Versions
3.9.12 (main, Mar 26 2022, 15:44:31)
[Clang 13.1.6 (clang-1316.0.21.2)]
ipympl version: 0.8.8
Selected Jupyter core packages...
IPython : 8.2.0
ipykernel : 6.12.1
ipywidgets : 7.7.0
jupyter_client : 7.2.1
jupyter_core : 4.9.2
jupyter_server : 1.16.0
jupyterlab : 3.3.2
nbclient : 0.5.13
nbconvert : 6.4.5
nbformat : 5.3.0
notebook : 6.4.10
qtconsole : not installed
traitlets : 5.1.1
Known nbextensions:
config dir: /Users/remco/.jupyter/nbconfig
notebook section
toggle_all_line_numbers/main enabled
- Validating: OK
equation-numbering/main enabled
- Validating: OK
toc2/main enabled
- Validating: OK
collapsible_headings/main disabled
nbextensions_configurator/config_menu/main enabled
- Validating: problems found:
- require? X nbextensions_configurator/config_menu/main
scroll_down/main enabled
- Validating: OK
jupyter-js-widgets/extension enabled
- Validating: OK
contrib_nbextensions_help_item/main enabled
- Validating: OK
tree section
nbextensions_configurator/tree_tab/main enabled
- Validating: problems found:
- require? X nbextensions_configurator/tree_tab/main
config dir: /usr/local/etc/jupyter/nbconfig
notebook section
jupyter-matplotlib/extension enabled
- Validating: OK
jupyter-js-widgets/extension enabled
- Validating: OK
JupyterLab v3.3.2
/usr/local/share/jupyter/labextensions
jupyter-matplotlib v0.10.1 enabled OK
@jupyter-widgets/jupyterlab-manager v3.0.1 enabled OK (python, jupyterlab_widgets)
Other labextensions (built into JupyterLab)
app dir: /opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/share/jupyter/lab
The following source extensions are overshadowed by older prebuilt extensions:
jupyter-matplotlib
- Dominant language
- Jupyter Notebook
- Stars
- 1.7k
- Forks
- 234
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from matplotlib/ipympl
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
matplotlib/ipympl#623 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
matplotlib/ipympl#622 · 13 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
matplotlib/ipympl#612 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
matplotlib/ipympl#611 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
matplotlib/ipympl#609 · 6 comments ·
All issues in matplotlib/ipympl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
use-agent-os/agent-os#3314 ·
-
documentation low-priority templates
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
jesseray718/openroot#87 ·
-
factory-active factory-automatic task-bug-reproduction-cannot-reproduce task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·
-
in-progress proposal
Difficulty 1/5 Under an hour Newbie friendliness 88/100
uibcdf/molsyssuite#36 ·