pymor.parallel.ipython¶
Classes
|
|
Create a new IPython parallel cluster and connect to it. |
- class pymor.parallel.ipython.IPythonPool(num_engines=None, **kwargs)[source]¶
Bases:
WorkerPoolBaseWorkerPoolbased on the IPython parallel computing features.- Parameters:
num_engines – Number of IPython engines to use. If
None, all available engines are used.kwargs – Keyword arguments used to instantiate the IPython cluster client.
Methods
apply,apply_only,map,pushAttributes
- class pymor.parallel.ipython.new_ipcluster_pool(profile=None, cluster_id=None, num_engines=None, ipython_dir=None, min_wait=1, timeout=60)[source]¶
Bases:
BasicObjectCreate a new IPython parallel cluster and connect to it.
This context manager can be used to create an
IPythonPoolWorkerPool. When entering the context a new IPython cluster is created using theipclusterscript and anIPythonPoolis instantiated for the newly created cluster. When leaving the context the cluster is shut down.- Parameters:
profile – Passed as
--profileparameter to theipclusterscript.cluster_id – Passed as
--cluster-idparameter to theipclusterscript.nun_engines – Passed as
--nparameter to theipclusterscript.ipython_dir – Passed as
--ipython-dirparameter to theipclusterscript.min_wait – Wait at least this many seconds before trying to connect to the new cluster.
timeout – Wait at most this many seconds for all Ipython cluster engines to become available.
Methods
Attributes