##// END OF EJS Templates
Override makeTest to correctly support path/to/test.py:test_function syntax....
Override makeTest to correctly support path/to/test.py:test_function syntax. If we don't explicitly override this, the checker used isn't IPython-aware and we don't get full support for things like #random markers, when using the syntax:: iptest tests/test_magic.py:doctest_clear_array

File last commit:

r1395:1feaf0a3
r1763:a26f8e3c
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