##// END OF EJS Templates
Initial version of working refactored ipcluster....
Initial version of working refactored ipcluster. This new version uses Twisted's cross platform process management API and provides: * New command line parsing using argparse. This allows for different subcommands (ipcluster local, ipcluster pbs, ipcluster mpirun, etc). * Currently working local and mpirun stating of clusters. * Almost working pbs starting. This has no docs and no tests as of yet and should be considered a tech preview.

File last commit:

r1395:1feaf0a3
r1770:49f63bba
Show More
multienginemap.py
17 lines | 414 B | text/x-python | PythonLexer
from IPython.kernel import client
mec = client.MultiEngineClient()
result = mec.map(lambda x: 2*x, range(10))
print "Simple, default map: ", result
m = mec.mapper(block=False)
pr = m.map(lambda x: 2*x, range(10))
print "Submitted map, got PendingResult: ", pr
result = pr.r
print "Using a mapper: ", result
@mec.parallel()
def f(x): return 2*x
result = f(range(10))
print "Using a parallel function: ", result