We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 705fae3 commit 9fbd29fCopy full SHA for 9fbd29f
lib/matplotlib/__init__.py
@@ -1170,7 +1170,7 @@ def interactive(b):
1170
1171
def is_interactive():
1172
'Return true if plot mode is interactive'
1173
- b = rcParams['interactive']
+ b = rcParams['interactive'] and hasattr(sys, 'ps1')
1174
return b
1175
1176
def tk_window_focus():
@@ -1277,6 +1277,6 @@ def test(verbosity=1):
1277
1278
verbose.report('matplotlib version %s'%__version__)
1279
verbose.report('verbose.level %s'%verbose.level)
1280
-verbose.report('interactive is %s'%rcParams['interactive'])
+verbose.report('interactive is %s'%is_interactive())
1281
verbose.report('platform is %s'%sys.platform)
1282
verbose.report('loaded modules: %s'%six.iterkeys(sys.modules), 'debug')
0 commit comments