##// END OF EJS Templates
Merge pull request #1158 from takluyver/nbpy-encoding-declaration...
Merge pull request #1158 from takluyver/nbpy-encoding-declaration Add coding header when notebook exported to .py file. Closes gh-1156, also strips the encoding declaration out when we load a .py file.

File last commit:

r4856:d3ee41f9
r5746:688cc09e merge
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