Thanks to visit codestin.com Credit goes to github.com
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 4cde730 commit d66a760Copy full SHA for d66a760
1 file changed
lib/matplotlib/backend_bases.py
@@ -1669,7 +1669,12 @@ def _fix_ipython_backend2gui(cls):
1669
if _is_non_interactive_terminal_ipython(ip):
1670
pass
1671
else:
1672
- ip.enable_matplotlib()
+ was_interacive = mpl.is_interactive()
1673
+ try:
1674
+ ip.enable_matplotlib()
1675
+ finally:
1676
+ mpl.interactive(was_interacive)
1677
+
1678
finally:
1679
mpl.rcParamsOrig["backend"] = orig_origbackend
1680
0 commit comments