##// END OF EJS Templates
Fix sympy profile to work with sympy 0.7....
Fix sympy profile to work with sympy 0.7. Sympy 0.7 no longer supports x,y,z = symbols('xyz'). symbols ('xyz') is now a single symbol 'xyz'. Change the sympy profile to symbols(x,y,z).

File last commit:

r3666:a6a0636a
r4123:606e9731
Show More
job_wrapper.py
25 lines | 542 B | text/x-python | PythonLexer
#!/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
from IPython.parallel.engine import EngineFactory
from IPython.parallel.ipengineapp import launch_new_instance
ns = {}
# job
exec sys.argv[1] in ns
# this should really use Config:
EngineFactory.user_ns = ns
# start engine with job namespace
launch_new_instance()