##// END OF EJS Templates
Merging -r 1177 from lp:ipython with fixes and resolutions....
Merging -r 1177 from lp:ipython with fixes and resolutions. The main conflicts I had to fix were in ultratb. I have removed the ultraTB.py in IPython/kernel/core. Now IPython/core/ultratb.py is being used everywhere. Also I have protected the calls to ipapi.get to see if None is returned. This happens when trial IPython.kernel is run.

File last commit:

r1396:ee81bbeb
r2124:4a54d9d3 merge
Show More
task1.py
17 lines | 359 B | text/x-python | PythonLexer
from IPython.kernel import client
tc = client.TaskClient()
rc = client.MultiEngineClient()
rc.push(dict(d=30))
cmd1 = """\
a = 5
b = 10*d
c = a*b*d
"""
t1 = client.StringTask(cmd1, clear_before=False, clear_after=True, pull=['a','b','c'])
tid1 = tc.run(t1)
tr1 = tc.get_task_result(tid1,block=True)
tr1.raise_exception()
print "a, b: ", tr1.ns.a, tr1.ns.b