September 2014
Intermediate to advanced
512 pages
12h 39m
English
In this recipe, we will show how to interact with asynchronous tasks running in parallel with IPython.
You need to start the IPython engines (see the previous recipe). The simplest option is to launch them from the Clusters tab in the notebook dashboard. In this recipe, we use four engines.
In [1]: import time
import sys
from IPython import parallel
from IPython.display import clear_output, display
from IPython.html import widgetsClient:In [2]: rc = parallel.Client()
In [3]: view = rc.load_balanced_view()
In [4]: def f(x): ...
Read now
Unlock full access