##// END OF EJS Templates
Ported the IPython Sphinx directive to 0.11....
Ported the IPython Sphinx directive to 0.11. This was originally written by John Hunter for the 0.10 API, now it works with 0.11. We still need to automate its test suite, but at least now it runs and the script itself can be executed as a test that produces screen output and figures in a subdir.

File last commit:

r1396:ee81bbeb
r2439:858c6e09
Show More
task1.py
17 lines | 359 B | text/x-python | PythonLexer
Brian E Granger
Fixed most of the examples. A few still don't work, but this is a start.
r1338 from IPython.kernel import client
Brian E Granger
Adding examples from ipython1-dev to docs/examples/kernel. These ...
r1337
tc = client.TaskClient()
rc = client.MultiEngineClient()
rc.push(dict(d=30))
cmd1 = """\
a = 5
b = 10*d
c = a*b*d
"""
Brian E Granger
The refactoring of the Task system is nearly complete. Now there are...
r1395 t1 = client.StringTask(cmd1, clear_before=False, clear_after=True, pull=['a','b','c'])
Brian E Granger
Adding examples from ipython1-dev to docs/examples/kernel. These ...
r1337 tid1 = tc.run(t1)
tr1 = tc.get_task_result(tid1,block=True)
Brian E Granger
Fixing more tests and examples after the task, map and @parallel work.
r1396 tr1.raise_exception()
Brian E Granger
Adding examples from ipython1-dev to docs/examples/kernel. These ...
r1337 print "a, b: ", tr1.ns.a, tr1.ns.b