back to Index
2014-07-19
In [1]:
# Cross-notebook include shim
with open("nbinclude.ipynb") as nbinclude_f: # don't rename nbinclude_f
import IPython.nbformat.current
get_ipython().run_cell(IPython.nbformat.current.read(nbinclude_f, 'json').worksheets[0].cells[0].input)
In [2]:
%%px help
In [5]:
from IPython import parallel
In [6]:
%%px help
In [7]:
%lsmagic
Out[7]:
In [12]:
clients = parallel.Client()
In [14]:
clients.ids
Out[14]:
In [31]:
%%px?
In [36]:
%%px -t 0,1 --verbose --noblock
import time
print 'hello, world'
for i in range(5):
print i
time.sleep(.1)
Out[36]:
In [39]:
_36.display_outputs()
In [ ]:
This looks promising.