Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Running a cell producing a plot for a second time, and the plot fails to display

オープン
#519 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
jupyter-notebook, python
領域
frontend

調査の方向性

まず、ipympl を使用して JupyterLab で報告された %matplotlib widget セルの再実行を再現し、次にブラウザーのエラーコンソールと、1 回目および 2 回目の実行で表示される図を比較します。ソースファイルやテストは指定されていません。セルを再実行すると、plt.show() を必要とせず、色の異なる 2 つ目の図を作成することもなく、元の図が確実に表示されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Describe the issue

When using ipympl with the %matplotlib widget magic, I can successfully display a plot. Rerunning the cell with the plot however, fails to re-display the figure.

iRxF6Xmk1U

the following is visible in the error console

image

Note: that adding plt.show() to the cell and re-running does display a plot however the color of the line in the plot is different, suggesting that this is a new (second) matplotlib figure and not the original.

Versions


 3.8.10 | packaged by conda-forge | (default, May 10 2021, 22:58:09) 
[Clang 11.1.0 ]
ipympl version: 0.9.3
Selected Jupyter core packages...
IPython          : 8.10.0
ipykernel        : 6.21.2
ipywidgets       : 8.0.4
jupyter_client   : 8.0.3
jupyter_core     : 5.2.0
jupyter_server   : 2.3.0
jupyterlab       : 3.5.3
nbclient         : 0.7.2
nbconvert        : 7.2.9
nbformat         : 5.7.3
notebook         : 6.5.2
qtconsole        : not installed
traitlets        : 5.9.0
Known nbextensions:
  config dir: /Users/stevejpurves/.jupyter/nbconfig
    notebook section
      jupyter-js-widgets/extension  enabled 
      - Validating: OK
  config dir: /Users/stevejpurves/miniconda3/envs/em_recharge/etc/jupyter/nbconfig
    notebook section
      bqplot/extension  enabled 
      - Validating: OK
      ipyevents/extension  enabled 
      - Validating: OK
      ipysheet/extension  enabled 
      - Validating: OK
      ipytree/extension  enabled 
      - Validating: OK
      jupyter-leaflet/extension  enabled 
      - Validating: OK
      jupyter-matplotlib/extension  enabled 
      - Validating: OK
      jupyter-js-widgets/extension  enabled 
      - Validating: OK
JupyterLab v3.5.3
/Users/stevejpurves/miniconda3/envs/em_recharge/share/jupyter/labextensions
        ipytree v0.2.2 enabled OK
        jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
        bqplot v0.5.37 enabled OK (python, bqplot)
        jupyter-matplotlib v0.11.3 enabled OK
        jupyter-leaflet v0.17.2 enabled OK
        ipysheet v0.7.0 enabled OK (python, ipysheet)
        ipyevents v2.0.1 enabled OK
        @jupyter-widgets/jupyterlab-manager v5.0.5 enabled OK (python, jupyterlab_widgets)
主要言語
Jupyter Notebook
スター
1.7k
フォーク
234
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

matplotlib/ipympl のほかの issue

matplotlib/ipympl の issue をすべて見る

似ている issue

Web Dev の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。