##// END OF EJS Templates
Merge pull request #2179 from dopplershift/pylab-switch...
Merge pull request #2179 from dopplershift/pylab-switch Enable switching %pylab mode between inline and a single gui mode in a single notebook. With this merge, `%pylab` can be called interactively to toggle inline/GUI (matplotlib floating windows) mode. After initializing `%pylab inline`, now one can call `%pylab` without arguments to activate the default GUI or ask for a specific one as usual. IPython will detect if a different GUI is requested if one was already activated and will refuse to do so (to prevent multiple event loops from running concurrently, which often leads to problems).

File last commit:

r4910:0dc49390
r8027:6dac6929 merge
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()