ipyparallel9.0.2
ipyparallel9.0.2
Published
Interactive Parallel Computing with IPython
pip install ipyparallel
Package Downloads
Authors
Project URLs
Requires Python
>=3.8
Dependencies
- decorator
- importlib-metadata
>=3.6; python_version < "3.10" - ipykernel
>=6.9.1 - ipython
>=5 - jupyter-client
>=7 - psutil
- python-dateutil
>=2.1 - pyzmq
>=25 - tornado
>=6.1 - tqdm
- traitlets
>=5 - asv
; extra == "benchmark" - jupyter-server
; extra == "labextension" - jupyterlab
>=3; extra == "labextension" - jupyter-server
; extra == "nbext" - notebook
; extra == "nbext" - jupyter-server
; extra == "retroextension" - retrolab
; extra == "retroextension" - jupyter-server
; extra == "serverextension" - ipython
[test]; extra == "test" - pytest
; extra == "test" - pytest-asyncio
; extra == "test" - pytest-cov
; extra == "test" - testpath
; extra == "test"
Interactive Parallel Computing with IPython
IPython Parallel (ipyparallel) is a Python package and collection of CLI scripts for controlling clusters of IPython processes, built on the Jupyter protocol.
IPython Parallel provides the following commands:
- ipcluster - start/stop/list clusters
- ipcontroller - start a controller
- ipengine - start an engine
Install
Install IPython Parallel:
pip install ipyparallel
This will install and enable the IPython Parallel extensions for Jupyter Notebook and (as of 7.0) Jupyter Lab 3.0.
Run
Start a cluster:
ipcluster start
Use it from Python:
import os
import ipyparallel as ipp
cluster = ipp.Cluster(n=4)
with cluster as rc:
ar = rc[:].apply_async(os.getpid)
pid_map = ar.get_dict()
See the docs for more info.