from IPython import parallel
rc = parallel.Client()
dv = rc[:]
dv
<DirectView [0, 1, 2, 3]>
Tell every engine to also bind, becoming available to direct frontends such as the Qt Console.
%%px
from IPython import parallel
parallel.bind_kernel()
dv.scatter('rank', rc.ids, flatten=True)
<AsyncResult: scatter>
Now tell engine 0 to start a Qt Console
rc[0].execute("%qtconsole")
<AsyncResult: execute>
Now I have a QtConsole on engine 0, which I can use to %debug
, etc.
from IPython.display import Image
Image("/Users/minrk/Pictures/screenshots/Screen Shot 2013-05-29 at 11.06.33 .PNG")