##// END OF EJS Templates
protect flush_figures post-exec function from user error...
protect flush_figures post-exec function from user error Invalid matplotlib data may raise inside print_figure. flush_figures() is a post-exec function, so user errors should not raise. Instead, call get_ipython().showtraceback() if called from IPython, raising as before otherwise.

File last commit:

r4856:d3ee41f9
r5735:c98183ce
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