##// END OF EJS Templates
protect kernelapp/qtconsole from invalid connection files...
protect kernelapp/qtconsole from invalid connection files (clean error/exit, rather than crash) also use stdlib json to load connection file, not zmq.jsonapi, which can be jsonlib2, which will return Longs, causing TraitError.

File last commit:

r4856:d3ee41f9
r4986:64e90b1e
Show More
__init__.py
12 lines | 305 B | text/x-python | PythonLexer
"""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)
else:
if tornado.version_info < (2,1,0):
raise ImportError(msg+", but you have %s"%tornado.version)
del msg