Skip to content

Instantly share code, notes, and snippets.

@WeatherGod
Created July 2, 2014 14:40
Show Gist options
  • Save WeatherGod/bde48370cb40aa8fb567 to your computer and use it in GitHub Desktop.
Save WeatherGod/bde48370cb40aa8fb567 to your computer and use it in GitHub Desktop.
Installation verification script for Anatomy of Matplotlib for SciPy 2014
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