Created
June 29, 2014 23:30
-
-
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.
This file contains hidden or 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 | |
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