Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#482 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
jupyter, jupyter-notebook, python

调研方向

首先,使用 matplotlib.pyplot.figure.show,在 Python 3.10.4、ipympl 0.8.7 和列出的 Jupyter 软件包下,于 JupyterLab 3.4.4 中复现重复显示问题。当同一个图形只出现一次时,即可视为完成;该 issue 没有指定源文件或测试,因此定位相关实现和回归覆盖也是工作的一部分。

由索引模型根据 Issue 内容生成。

描述

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)

主要语言
Jupyter Notebook
星标
1.7k
派生
234
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

matplotlib/ipympl 的其他 Issue

查看 matplotlib/ipympl 的全部 Issue

相似的 Issue

更多 Data Visualization Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。