Skip to content

Instantly share code, notes, and snippets.

@jdfreder
Created June 29, 2014 23:30
Show Gist options
  • Save jdfreder/726c8e8f5a571570bcc9 to your computer and use it in GitHub Desktop.
Save jdfreder/726c8e8f5a571570bcc9 to your computer and use it in GitHub Desktop.
Script used to verify that the requirements for the IPython Rich Output / Widget tutorial are met.
from __future__ import print_function
try:
import IPython
version = IPython.__version__
except:
print("IPython was not found. Please make sure IPython is installed into this Python distribution. See http://ipython.org/ for installation instructions.")
try:
from IPython.html import widgets
if widgets is not None:
print("Your machine has IPython %s installed on it. This version is compatable with the SciPy widget tutorial." % version)
except:
print("IPython version %s does not include widgets. Please upgrade your IPython installation to 2.0 or later." % version)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment