January 2018
Beginner to intermediate
548 pages
12h 11m
English
In this recipe, we will show how to interact with asynchronous tasks running in parallel with ipyparallel.
You need to start the IPython engines (see the previous recipe). The simplest option is to launch them from the IPython Clusters tab in the Notebook dashboard. In this recipe, we use four engines.
>>> import sys
import time
import ipyparallel
import ipywidgets
from IPython.display import clear_output, display>>> rc = ipyparallel.Client()
>>> view = rc.load_balanced_view()
>>> def f(x): import time time.sleep(.1) ...
Read now
Unlock full access