summaryrefslogtreecommitdiff
path: root/training
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2013-11-11 10:03:11 -0800
committerChris Dyer <redpony@gmail.com>2013-11-11 10:03:11 -0800
commit9ca01c6c3baf480424e6c6a573f18afc086736aa (patch)
tree038bfdd31ccc7ab06b566506c96569244c576e94 /training
parentadbe2a9683b9012e280318f5569a072ce45eba25 (diff)
parent672c5cb8566c4484f54e012af46a78dfa7c8c89d (diff)
Merge pull request #26 from wammar/fix_mira_for_noninteractive_machines
mira breaks on noninteractive machines when matplotlib is installed, com...
Diffstat (limited to 'training')
-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