diff options
author | Chris Dyer <redpony@gmail.com> | 2013-11-11 10:03:11 -0800 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2013-11-11 10:03:11 -0800 |
commit | 5b3f31d49b22b9503a4524b74722e1eb2c65f87d (patch) | |
tree | a7e4520a409d4dc12cda490fcc689525f4c22bd0 /training/mira | |
parent | 23f3d8e92b9e4b53ea884bb33440885b61d15e02 (diff) | |
parent | e7b5356fb19d71d6ef1ad2f1d9a11d92bfe7f7b3 (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/mira')
-rwxr-xr-x | training/mira/mira.py | 2 |
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 |