summaryrefslogtreecommitdiff
path: root/training/mira
diff options
context:
space:
mode:
Diffstat (limited to 'training/mira')
-rwxr-xr-xtraining/mira/mira.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/training/mira/mira.py b/training/mira/mira.py
index 7b2d06a3..d5a1d9f8 100755
--- a/training/mira/mira.py
+++ b/training/mira/mira.py
@@ -12,6 +12,8 @@ except ImportError:
sys.exit(1)
have_mpl = True
try:
+ import matplotlib
+ matplotlib.use('Agg')
import matplotlib.pyplot as plt
except ImportError:
have_mpl = False