matplotlib / matplotlib/ipympl
Resize callback not working
オープン
まだ誰も着手していません。
bug
- 主要言語
- Jupyter Notebook
- スター
- 1.7k
- フォーク
- 234
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Describe the issue
I am having an issue specifically with the Resize callback. The other callback options appear to work as expected. For example replacing 'resize_event' with 'draw_event' in the code block below gives no issues.
import matplotlib.pyplot as plt
import numpy as np
from ipywidgets import Output
%matplotlib widget
output = Output()
@output.capture()
def key_event(event):
print('action')
fig, ax = plt.subplots()
ax.plot(np.random.rand(10))
fig.canvas.mpl_connect('resize_event', key_event)
display(output)
Versions
3.6.8 (default, Jan 14 2019, 11:02:34)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]
ipympl version: 0.7.0
jupyter core : 4.5.0
jupyter-notebook : 6.0.1
qtconsole : not installed
ipython : 7.7.0
ipykernel : 5.1.2
jupyter client : 5.3.1
jupyter lab : 1.0.9
nbconvert : 5.6.0
ipywidgets : 7.6.3
nbformat : 4.4.0
traitlets : 4.3.2
Known nbextensions:
config dir: /usr/local/etc/jupyter/nbconfig
notebook section
ipyvolume/extension enabled
- Validating: OK
jupyter-datawidgets/extension enabled
- Validating: OK
jupyter-matplotlib/extension enabled
- Validating: OK
jupyter-threejs/extension enabled
- Validating: OK
jupyter-webrtc/extension enabled
- Validating: OK
jupyter-js-widgets/extension enabled
- Validating: OK
tree section
ipyparallel/main enabled
- Validating: OK
JupyterLab v1.0.9
Known labextensions:
app dir: /usr/local/share/jupyter/lab
jupyter-threejs v2.3.0 enabled OK
jupyterlab-datawidgets v7.0.0 enabled OK
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提供されている Jupyter Notebook の例を ipympl 0.7.0 で実行し、resize_event コールバックと draw_event を比較します。Notebook 統合を通じてエントリポイント fig.canvas.mpl_connect を追跡し、なぜリサイズがコールバックに到達しないのかを特定します。図のサイズ変更時に例が action を出力し、既存のコールバック動作が維持されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- jupyter, jupyter-notebook, python
- 領域
- data-visualization, frontend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100