__init__.py
20 lines
| 554 B
| text/x-python
|
PythonLexer
MinRK
|
r4856 | """The IPython HTML Notebook""" | ||
# check for tornado 2.1.0 | ||||
msg = "The IPython Notebook requires tornado >= 2.1.0" | ||||
try: | ||||
import tornado | ||||
except ImportError: | ||||
raise ImportError(msg) | ||||
Matthew Brett
|
r6132 | try: | ||
version_info = tornado.version_info | ||||
except AttributeError: | ||||
raise ImportError(msg + ", but you have < 1.1.0") | ||||
if version_info < (2,1,0): | ||||
raise ImportError(msg + ", but you have %s" % tornado.version) | ||||
MinRK
|
r4856 | del msg | ||
MinRK
|
r6630 | |||
# check for pyzmq 2.1.4 | ||||
MinRK
|
r9372 | from IPython.kernel.zmq import check_for_zmq | ||
MinRK
|
r6630 | check_for_zmq('2.1.4', 'IPython.frontend.html.notebook') | ||
del check_for_zmq | ||||