8000
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 87aa310 commit f14f241Copy full SHA for f14f241
lib/matplotlib/backends/__init__.py
@@ -47,12 +47,7 @@ def _get_running_interactive_framework():
47
if frame.f_code == tkinter.mainloop.__code__:
48
return "tk"
49
frame = frame.f_back
50
- try:
51
- from matplotlib.backends import _macosx
52
- except ImportError:
53
- pass
54
- else:
55
- if _macosx.event_loop_is_running():
+ if ('_macosx' in sys.modules) and (_macosx.event_loop_is_running()):
56
return "macosx"
57
if sys.platform.startswith("linux") and not os.environ.get("DISPLAY"):
58
return "headless"
0 commit comments