matplotlib / matplotlib/ipympl

matplotlib widgets fail to load

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

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

主要言語
Jupyter Notebook
スター
1.7k
フォーク
234
PR マージ指標
30日以内にマージされた PR はありません

説明

Describe the issue

Get a line like [<matplotlib.lines.Line2D at 0x7f610447e140>] when trying to plot, and an 'empty' plot which seems to have a toolbar of button, but no content.

developer tools console has:

Failed to fetch ipywidgets through the "jupyter.widget.control" comm channel, fallback to fetching individual model state. Reason: Control comm was closed too early
_loadFromKernel @ manager-base.js:291

Versions

 3.10.8 (main, Nov 30 2022, 11:24:29) [GCC 10.2.1 20210110]
ipympl version: 0.9.2
Selected Jupyter core packages...
IPython          : 8.7.0
ipykernel        : 6.18.3
ipywidgets       : 8.0.2
jupyter_client   : 7.4.7
jupyter_core     : 5.1.0
jupyter_server   : 1.23.3
jupyterlab       : 3.5.1
nbclient         : 0.7.2
nbconvert        : 7.2.5
nbformat         : 5.7.0
notebook         : 6.5.2
qtconsole        : not installed
traitlets        : 5.6.0
Known nbextensions:
  config dir: /home/zlobko/.pyenv/versions/3.10.8/etc/jupyter/nbconfig
    notebook section
      jupyter-matplotlib/extension  enabled
      - Validating: OK
      jupyter-js-widgets/extension  enabled
      - Validating: OK
JupyterLab v3.5.1
/home/zlobko/.pyenv/versions/3.10.8/share/jupyter/labextensions
        jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
        jupyter-matplotlib v0.11.2 enabled OK
        @jupyter-widgets/jupyterlab-manager v5.0.3 enabled OK (python, jupyterlab_widgets)

Other labextensions (built into JupyterLab)
   app dir: /home/zlobko/.pyenv/versions/3.10.8/share/jupyter/lab


The following source extensions are overshadowed by older prebuilt extensions:
    @jupyter-widgets/jupyterlab-manager

FWIW: This is on debian/WSL2 (which was converted from WSL1).

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

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

はじめの一歩

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

調査の方向性

報告された Python、ipympl、JupyterLab、ipywidgets のバージョンで空のプロットを再現し、その後、manager-base.js:291 でのウィジェット読み込み失敗と、有効になっている jupyter-matplotlib 拡張機能から調査を開始してください。JupyterLab で matplotlib ウィジェットが読み込まれ、報告された通信チャネルエラーなしにプロットの内容とツールバーが表示されれば完了です。

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

評価

技術スタック
jupyter-notebook, python
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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