A fall-back worker pool that uses a single core of a single machine.
Apply a function to a list using a single local core.
A worker pool that uses multiple cores on a single machine.
Apply a function to a list using multiple local cores.
Return a new instance of the given worker pool.
Parameters: |
|
---|
Valid entries for name include:
If name is unset, the default is read from the GLIMPSE_POOL environment variable, or else the DEFAULT_POOL_TYPE global variable.
See also
GetClusterPackage() for information about on cluster_type argument.
Choose a cluster package by name.
Parameters: | cluster_type (str) – Type of cluster to create (e.g., ipython). The default is read from the GLIMPSE_CLUSTER environment variable, or the DEFAULT_CLUSTER_TYPE if unset. |
---|
If cluster_type is “ipython”, for example, then this method returns glimpse.pools.ipythoncluster. The returned module is guaranteed to contain a MakePool() function.