Created
July 2, 2014 14:40
-
-
Save WeatherGod/bde48370cb40aa8fb567 to your computer and use it in GitHub Desktop.
Installation verification script for Anatomy of Matplotlib for SciPy 2014
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import os | |
# make sure packages are available | |
import matplotlib | |
import numpy | |
if matplotlib.__version__ < "1.2.1": | |
print("Warning: mpl v1.2.1 or greater is desired." | |
" You have {0}".format(matplotlib.__version__)) | |
code = os.system("ipython notebook") | |
if code == 0: | |
print("Yay, you can start up an ipython notebook session!") | |
else: | |
print("ERROR: You can't seem to start up a notebook") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment