Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`plt.ioff()` not preventing automatic figure generation in jupyter

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
jupyter, jupyter-notebook, python
領域
backend

調査の方向性

まず、Jupyter Lab とクラシックノートブックの両方で plt.ioff() または plt.interactive(False) を使って例を再現し、その後 %matplotlib inline を明示的に実行した場合と比較します。自動的な Figure 表示に関する inline バックエンドの動作を追跡します。magic コマンドを必要とせずに Figure が自動表示されなければ完了です。

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

説明

Using plt.interactive(False) or plt.ioff() in Jupyter (Lab and classic notebook) does not seem to prevent automatic figure generation, unless the magic %matplotlib inline in run first, even though the inline backend is the default.

Example
import matplotlib.pyplot as plt

plt.ioff()

fig, ax = plt.subplots()
a = 0

The figure still appears automatically under the cell.
Screenshot at 2022-08-29 14-25-08

Note that

Explicitly running %matplotlib inline blocks figure creation (even though inline is the default activated backend in Jupyter):
Screenshot at 2022-08-29 14-26-48

Originally posted in https://github.com/matplotlib/matplotlib/issues/23766

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

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

ipython/matplotlib-inline のほかの issue

ipython/matplotlib-inline の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

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

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