##// END OF EJS Templates
updated references to configuration file options to specify the class as well as the option itself
updated references to configuration file options to specify the class as well as the option itself

File last commit:

r3666:a6a0636a
r4468:25f147e5
Show More
job_wrapper.py
25 lines | 542 B | text/x-python | PythonLexer
Fernando Perez
Add little soma workflow example
r3608 #!/usr/bin/env python
"""Python wrapper around a submitted workflow job.
In reality this would be a more sophisticated script, here we only illustrate
the basic idea by considering that a submitted 'job' is a Python string to be
executed.
"""
import sys
argv = sys.argv
MinRK
move IPython.zmq.parallel to IPython.parallel
r3666 from IPython.parallel.engine import EngineFactory
from IPython.parallel.ipengineapp import launch_new_instance
Fernando Perez
Add little soma workflow example
r3608
ns = {}
# job
exec sys.argv[1] in ns
MinRK
updated newparallel examples, moved into docs
r3609 # this should really use Config:
EngineFactory.user_ns = ns
Fernando Perez
Add little soma workflow example
r3608 # start engine with job namespace
MinRK
updated newparallel examples, moved into docs
r3609 launch_new_instance()