Matplotlib interactive mode doesn't work
Check gui availability with environment variable on Linux
@@ -96,7 +96,7 @@ USE_LIB_COPY = SUPPORT_GEVENT and \
(IS_PY3K and sys.version_info[1] >= 3))
-INTERACTIVE_MODE_AVAILABLE = os.getenv('DISPLAY') is not None
+INTERACTIVE_MODE_AVAILABLE = sys.platform in ('darwin', 'win32') or os.getenv('DISPLAY') is not None
def protect_libraries_from_patching():
