matplotlib / matplotlib/ipympl
PolygonSelector does not work in JupyterLab
まだ誰も着手していません。
- 主要言語
- Jupyter Notebook
- スター
- 1.7k
- フォーク
- 234
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Describe the issue
The PolygonSelector example from the mpl docs works very well in the default Qt backend.

However, using ipympl in a notebook, nothing happens. No gray point follows the mouse cursor, nothing is drawn when I click. Just the initial figure with the blue dots.
I checked the jupyterlab log console on debug level but there are no errors.
I was wondering if it was related to https://github.com/matplotlib/matplotlib/issues/15852, and tried adding useblit=False where the PolygonSelector is created, but this did not help.
Versions
- jupyterlab = 3.4.2
- ipympl = 0.9.1
- matplotlib = 3.5.2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
MatplotlibのドキュメントにリンクされているPolygonSelectorの例から始め、JupyterLab 3.4.2でipymplを使って再現します。動作するQtバックエンドとノートブックでの挙動を比較し、useblit=False設定の使用も試みます。ノートブック上で灰色のカーソルポイントとポリゴンの描画がマウス操作に反応すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- jupyter, jupyter-notebook
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100