matplotlib / matplotlib/ipympl

Still getting "Model not found" error instead of static figure when saving and re-opening the notebook

Open
#473 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
1.7k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

Hi, unfortunately, I am still seeing this error after re-opening the notebook.
![Screenshot at 2022-06-29 16-31-42](https://user-images.githubusercontent.com/39047984/176463311-a53c8e73-6115-4f30-9586-7cbcece4e514.png)

The console log from Chrome:
![Screenshot at 2022-06-29 16-33-54](https://user-images.githubusercontent.com/39047984/176463431-587ac677-f8aa-4e2e-8ef6-f0b4d5b92c99.png)

Versions:
```
jupyter_client 7.3.1 pyhd8ed1ab_0 conda-forge
jupyter_core 4.10.0 py39hf3d152e_0 conda-forge
jupyter_server 1.17.0 pyhd8ed1ab_0 conda-forge
jupyterlab 3.4.2 pyhd8ed1ab_0 conda-forge
jupyterlab_pygments 0.2.2 pyhd8ed1ab_0 conda-forge
jupyterlab_server 2.14.0 pyhd8ed1ab_0 conda-forge
jupyterlab_widgets 1.1.0 pyhd8ed1ab_0 conda-forge

matplotlib 3.5.2 py39hf3d152e_0 conda-forge
matplotlib-base 3.5.2 py39h700656a_0 conda-forge
matplotlib-inline 0.1.3 pyhd8ed1ab_0 conda-forge

ipydatawidgets 4.3.1.post1 pyhc268e32_0 conda-forge
ipykernel 6.13.0 py39hef51801_0 conda-forge
ipympl 0.9.1 pyhd8ed1ab_0 conda-forge
ipython 8.4.0 py39hf3d152e_0 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
ipywidgets 7.7.0 pyhd8ed1ab_0 conda-forge
```

Thanks for any help!

_Originally posted by @nvaytet in https://github.com/matplotlib/ipympl/issues/343#issuecomment-1170066433_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the save-and-reopen workflow in JupyterLab with the versions listed in the issue, then inspect the Chrome console output shown in the report. The issue is resolved when reopening the notebook renders the figure without the “Model not found” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, matplotlib
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.