skip to navigation
skip to content

ipython-cluster-helper 0.1.15

Simplify IPython cluster start up and use for multiple schedulers.

Latest Version: 0.6.1

Quickly and easily parallelize Python functions using IPython on a cluster, supporting multiple schedulers. Optimizes IPython defaults to handle larger clusters and simultaneous processes.


Lets say you wrote a program that takes several files in as arguments and performs some kind of long running computation on them. Your original implementation used a loop but it was way too slow:

from yourmodule import long_running_function
import sys

if __name__ == "__main__":
    for f in sys.argv[1:]:

If you have access to one of the supported schedulers you can easily parallelize your program across 5 nodes with ipython-cluster-helper:

from cluster_helper.cluster import cluster_view
from yourmodule import long_running_function
import sys

if __name__ == "__main__":
    with cluster_view(scheduler="lsf", queue="hsph", num_jobs=5) as view:, sys.argv[1:])

That’s it! No setup required.

How it works

ipython-cluster-helper creates a throwaway parallel IPython profile, launches a cluster and returns a view. On program exit it shuts the cluster down and deletes the throwaway profile.

Supported schedulers

Platform LSF (“lsf”), Sun Grid Engine (“sge”), Torque (“torque”) and SLURM (“slurm”).

More to come?


The cool parts of this were ripped from bcbio-nextgen.


  • Brad Chapman (@bchapman)
  • @mariogiov
  • Valentine Svensson (@vals)
  • Roman Valls (@brainstorm)
  • Rory Kirchner (@roryk)
File Type Py Version Uploaded on Size
ipython-cluster-helper-0.1.15.tar.gz (md5) Source 2013-10-03 7KB