##// END OF EJS Templates
use App.instance() in launch_new_instance (parallel apps)...
use App.instance() in launch_new_instance (parallel apps) This way later calls to App.instance() will return the running application, whereas calling App() would create an isolated Application object.

File last commit:

r3690:aafdf2be
r3999:2491bfa9
Show More
task1.py
12 lines | 188 B | text/x-python | PythonLexer
from IPython.parallel import Client
rc = Client()
v = rc.load_balanced_view()
rc[:]['d'] = 30
def task(a):
return a, 10*d, a*10*d
ar = v.apply(task, 5)
print "a, b, c: ", ar.get()