| Home | Trees | Indices | Help |
|
|---|
|
|
shell
Load an interactive IPython shell configured for starcluster development
The following objects are automatically available at the prompt:
cfg - starcluster.config.StarClusterConfig instance
cm - starcluster.cluster.ClusterManager instance
ec2 - starcluster.awsutils.EasyEC2 instance
s3 - starcluster.awsutils.EasyS3 instance
All StarCluster modules are automatically imported in the IPython session
along with all StarCluster dependencies (e.g. boto, paramiko, etc.)
If the --ipcluster=CLUSTER (-p) is passed, the IPython session will be
automatically be configured to connect to the remote CLUSTER using
IPython's parallel interface (requires IPython 0.11+). In this mode you
will have the following additional objects available at the prompt:
ipcluster - starcluster.cluster.Cluster instance for the cluster
ipclient - IPython.parallel.Client instance for the cluster
ipview - IPython.parallel.client.view.DirectView for the cluster
Here's an example of how to run a parallel map across all nodes in the
cluster:
[~]> ipclient.ids
[0, 1, 2, 3]
[~]> res = ipview.map_async(lambda x: x**30, range(8))
[~]> print res.get()
[0,
1,
1073741824,
205891132094649L,
1152921504606846976L,
931322574615478515625L,
221073919720733357899776L,
22539340290692258087863249L]
See IPython parallel docs for more details
(http://ipython.org/ipython-doc/stable/parallel)
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
names =
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Jan 3 23:11:38 2012 | http://epydoc.sourceforge.net |