##// END OF EJS Templates
The ipcluster command is now able to reuse FURL files....
The ipcluster command is now able to reuse FURL files. This is done by passing the -r, --client-port and --engine-port options onto ipcontroller. Docs are also updated to indicated this new feature.

File last commit:

r1396:ee81bbeb
r1883:3bdd6d9e
Show More
helloworld.py
14 lines | 532 B | text/x-python | PythonLexer
"""
A Distributed Hello world
Ken Kinder <ken@kenkinder.com>
"""
from IPython.kernel import client
tc = client.TaskClient()
mec = client.MultiEngineClient()
mec.execute('import time')
hello_taskid = tc.run(client.StringTask('time.sleep(3) ; word = "Hello,"', pull=('word')))
world_taskid = tc.run(client.StringTask('time.sleep(3) ; word = "World!"', pull=('word')))
print "Submitted tasks:", hello_taskid, world_taskid
print tc.get_task_result(hello_taskid,block=True).ns.word, tc.get_task_result(world_taskid,block=True).ns.word