Using the recent ipykernel 7.x causes plots to not show up from ipympl widgets.

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
jupyter, matplotlib, python

調査の方向性

リンクされている ipympl の issue 609 から始め、レポートで言及されている ipykernel 7 の matplotlib 関連の変更を確認してください。報告されたプラットフォームで、jupyterlab、ipympl、ipykernel の新しいバージョンを使って動作を再現し、ipykernel 6.3.1 と比較して、明示的な plt.show() なしで ipympl のプロットが表示されることを確認してください。

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

説明

After upgrading to recent versions of jupyterlab, ipympl and ipykernel I observed on different systems, either Windows 11 or Linux, that ipympl figures would not show up sometimes without an explicit plt.show() at the end of the cell.

While this looked to me at first glance like an ipympl bug because it does not appear using inline figures it turns out that downgrading ipykernel to 6.3.1 completely solves the issue.

Here is the the original report with more details: https://github.com/matplotlib/ipympl/issues/609

I saw that ipykernel>=7 has quite a few changes regarding matplotlib, so I assume this is a unwanted side-effect of these changes.

主要言語
Python
スター
734
フォーク
411
平均マージ
1日 2時間
マージ済み PR(30日)
9

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

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

はじめの一歩

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

ipython/ipykernel のほかの issue

ipython/ipykernel の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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