matplotlib / matplotlib/ipympl
rendering issues when exception is raised before cell execution completes
まだ誰も着手していません。
- 主要言語
- Jupyter Notebook
- スター
- 1.7k
- フォーク
- 234
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Reposting from jupyter/notebook issue. The code cell as appears in the screen shot is:
import ipympl
import matplotlib.pyplot as plt
def plot_something():
plt.figure()
plt.plot([0,2],[0,2],'-')
plt.show()
plot_something()
raise Exception
The behavior I am seeing is different for the first time I run the cell and the next times. It is also different for different level of browser zoom levels (I am using Chrome 56.0.2924.87 on Windows 8.1)-
First time that the cell is run -
The figure appears but is not fully rendered (see image)-

If I then resize the figure using the GUI (bottom right corner), the behavior changes based on browser zoom level-
- When using 100% zoom level (default), the figure is rendered too small. When in this state the zoom rectangle is drawn offset from the mouse pointer. The zooming is determined by the mouse pointer, it is just the drawing of the rectangle that is off.
- When using 90% zoom level (ctrl^- once), the figure is rendered to size and the zoom rectangle is working fine.
When I rerun the cell the figure is re-rendered properly without need for resizing and independent of zoom level.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
報告された Chrome 環境で、提供された Python セルを ipympl のノートブック統合で再現します。初回実行、発生した例外、Figure のリサイズ、ブラウザーのズームレベルを含めます。初期レンダリングと後続の実行を比較します。例外の後も、リサイズや再実行を必要とせずに Figure が正しいサイズでレンダリングされ、ズーム矩形の位置が揃ったままになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- jupyter-notebook, matplotlib, python
- 領域
- data-visualization, frontend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100