##// END OF EJS Templates
Merge pull request #1621 from ivanov/clear-input-prompt-on-clear-all-output...
Merge pull request #1621 from ivanov/clear-input-prompt-on-clear-all-output clear In[] prompt numbers on "Clear All Output" For more version-control-friendly `.ipynb` files, this strips the `In[]` prompt numbers when doing a "Clear all output". This reduces the amount of noise in commit-to-commit diffs that would otherwise show the (highly variable) prompt number changes.

File last commit:

r6132:2959fa0a
r6575:187d0090 merge
Show More
__init__.py
15 lines | 409 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)
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)
del msg