matplotlib.pyplot.figure.show method displays figure two times

Open
#482 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reproducing the duplicate display in JupyterLab 3.4.4 with Python 3.10.4, ipympl 0.8.7, and the listed Jupyter packages, using matplotlib.pyplot.figure.show. Done means the same figure appears only once; the issue names no source file or test, so locating the relevant implementation and regression coverage is part of the work.

Written by the indexing model from the issue text.

Description

Describe the issue

matplotlib.pyplot.figure.show method displays figure two times.
image

Versions

 3.10.4 (main, Mar 31 2022, 08:41:55) [GCC 7.5.0]
ipympl version: 0.8.7
Selected Jupyter core packages...
IPython          : 8.4.0
ipykernel        : 6.9.1
ipywidgets       : 7.6.5
jupyter_client   : 7.2.2
jupyter_core     : 4.10.0
jupyter_server   : 1.18.1
jupyterlab       : 3.4.4
nbclient         : 0.5.13
nbconvert        : 6.4.4
nbformat         : 5.3.0
notebook         : 6.4.12
qtconsole        : not installed
traitlets        : 5.1.1
Known nbextensions:
  config dir: /home/honek/.jupyter/nbconfig
    notebook section
      [--sys-prefix  enabled 
      - Validating: problems found:
        - require?  X [--sys-prefix
      jupyter-threejs/extension  enabled 
      - Validating: problems found:
        - require?  X jupyter-threejs/extension
  config dir: /home/honek/anaconda3/envs/ipympl_test/etc/jupyter/nbconfig
    notebook section
      jupyter-matplotlib/extension  enabled 
      - Validating: OK
      jupyter-js-widgets/extension  enabled 
      - Validating: OK
JupyterLab v3.4.4
/home/honek/anaconda3/envs/ipympl_test/share/jupyter/labextensions
        jupyter-matplotlib v0.10.5 enabled OK
        @jupyter-widgets/jupyterlab-manager v3.0.0 enabled OK (python, jupyterlab_widgets)

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

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.

More from matplotlib/ipympl

All issues in matplotlib/ipympl

Similar issues

More Data Visualization issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.