##// END OF EJS Templates
support notebooks in %run...
support notebooks in %run Simple enough - just generalized safe_exec_ipy a bit to support a sequence of cells rather than just one cell (the .ipy behavior). I think we have an issue open for this, but I can't seem to find it.

File last commit:

r12797:d1ebf45a
r13644:2a11e86f
Show More
ipython_config.py
13 lines | 287 B | text/x-python | PythonLexer
c = get_config()
app = c.InteractiveShellApp
# This can be used at any point in a config file to load a sub config
# and merge it into the current one.
load_subconfig('ipython_config.py', profile='default')
lines = """
import cmath
from math import *
"""
app.exec_lines.append(lines)