Here we discuss how to use ipyparallel to perform some simple parallel computing tasks.
Installation¶
-
I will be using this from a Jupyter notebook. First make sure you install Jupyter and ipyparallel on your system (I recommend using conda).
conda install jupyter notebook ipyparallel
-
Next enable the
IPython Clusterstab inJupyter Notebook:ipcluster nbextension enable jupyter nbextension install --py ipyparallel jupyter nbextension enable --py ipyparallel jupyter serverextension enable --py ipyparallel
-
You will need to restart any Jupyter servers to see the effects of this, but you should now be able to navigate to the
IPython Clusterstab and see at least thedefaultprofile.
Configuration¶
The next step is to configure a cluster.
ipython profile create --parallel --profile=local_cluster