Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@
from matplotlib.rcsetup import cycler # noqa: F401
from matplotlib.rcsetup import validate_backend

_mplbackend = os.environ.get('MPLBACKEND')


_log = logging.getLogger(__name__)

Expand Down
3 changes: 2 additions & 1 deletion lib/matplotlib/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
from matplotlib.colors import _color_sequences, Colormap

import numpy as np
import matplotlib.backends

if TYPE_CHECKING:
from collections.abc import Callable, Hashable, Iterable, Sequence
Expand Down Expand Up @@ -617,7 +618,7 @@ def isinteractive() -> bool:
show : Show all figures (and maybe block).
pause : Show all figures, and block for a time.
"""
return matplotlib.is_interactive()
return rcParams['interactive']


# Note: The return type of ioff being AbstractContextManager
Expand Down