##// END OF EJS Templates
Fixed order of notebook loading and kernel starting....
Fixed order of notebook loading and kernel starting. For security reasons, the kernel should not be started until after the notebook content is completely loaded and on the page. This prevents people from creating notebooks that run nasty code on the users machine at load time. In order to implement this, we had to create a CodeCell.set_kernel method that allows the kernel attribute of a CodeCell to be set at a later time. This also fixes some error messages we were seeing related to the kernel's channels not being setup properly when a send was attempted.

File last commit:

r2492:7d1b5074
r7197:ec9293e0
Show More
iptest
24 lines | 588 B | text/plain | TextLexer
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""IPython Test Suite Runner.
"""
# The tests can't even run if nose isn't available, so might as well give the
# user a civilized error message in that case.
try:
import nose
except ImportError:
error = """\
ERROR: The IPython test suite requires nose to run.
Please install nose on your system first and try again.
For information on installing nose, see:
http://somethingaboutorange.com/mrl/projects/nose
Exiting."""
import sys
print >> sys.stderr, error
else:
from IPython.testing import iptest
iptest.main()