Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't enable "interactive mode" if not at the console #2286

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/matplotlib/__init__.py
Expand Up @@ -1169,7 +1169,7 @@ def interactive(b):

def is_interactive():
'Return true if plot mode is interactive'
b = rcParams['interactive']
b = rcParams['interactive'] and hasattr(sys, 'ps1')
return b

def tk_window_focus():
Expand Down Expand Up @@ -1276,6 +1276,6 @@ def test(verbosity=1):

verbose.report('matplotlib version %s'%__version__)
verbose.report('verbose.level %s'%verbose.level)
verbose.report('interactive is %s'%rcParams['interactive'])
verbose.report('interactive is %s'%is_interactive())
verbose.report('platform is %s'%sys.platform)
verbose.report('loaded modules: %s'%sys.modules.iterkeys(), 'debug')