### Navigation

- index
- modules |
- next |
- previous |
- IPython v0.10.1 documentation »
- The IPython API »

# kernel.scripts.ipcluster

## Module: `kernel.scripts.ipcluster`

Inheritance diagram for `IPython.kernel.scripts.ipcluster`:

Start an IPython cluster = (controller + engines).

## Classes

### `BatchEngineSet`

class `IPython.kernel.scripts.ipcluster.``BatchEngineSet`(template_file, queue, **kwargs)

  Bases: `object`

  `__init__`()
  `handle_error`()
  `kill`()
  `parse_job_id`()
  `start`()

### `ControllerLauncher`

class `IPython.kernel.scripts.ipcluster.``ControllerLauncher`(extra_args=None)

  Bases: `IPython.kernel.scripts.ipcluster.ProcessLauncher`

  `__init__`()

### `EngineLauncher`

class `IPython.kernel.scripts.ipcluster.``EngineLauncher`(extra_args=None)

  Bases: `IPython.kernel.scripts.ipcluster.ProcessLauncher`

  `__init__`()

### `LSFEngineSet`

class `IPython.kernel.scripts.ipcluster.``LSFEngineSet`(template_file, queue, **kwargs)

  Bases: `IPython.kernel.scripts.ipcluster.PBSEngineSet`

  `__init__`()

### `LauncherProcessProtocol`

class `IPython.kernel.scripts.ipcluster.``LauncherProcessProtocol`(process_launcher)

  Bases: `twisted.internet.protocol.ProcessProtocol`

  A ProcessProtocol to go with the ProcessLauncher.

  `__init__`()
  `connectionMade`()
  `errReceived`()
  `outReceived`()
  `processEnded`()

### `LocalEngineSet`

class `IPython.kernel.scripts.ipcluster.``LocalEngineSet`(extra_args=None)

  Bases: `object`

  `__init__`()
  `interrupt_then_kill`()
  `signal`()
  `start`()

### `PBSEngineSet`

class `IPython.kernel.scripts.ipcluster.``PBSEngineSet`(template_file, queue, **kwargs)

  Bases: `IPython.kernel.scripts.ipcluster.BatchEngineSet`

  `__init__`()

### `ProcessLauncher`

class `IPython.kernel.scripts.ipcluster.``ProcessLauncher`(cmd_and_args)

  Bases: `object`

  Start and stop an external process in an asynchronous manner.

  Currently this uses deferreds to notify other parties of process state changes. This is an awkward design and should be moved to using a formal NotificationCenter.

  `__init__`()
  `fire_start_deferred`()
  `fire_stop_deferred`()
  `get_stop_deferred`()
  `interrupt_then_kill`()
  `running`
  `signal`()

    Send a signal to the process.

    The argument sig can be (‘KILL’,’INT’, etc.) or any signal number.

  `start`()

### `ProcessStateError`

class `IPython.kernel.scripts.ipcluster.``ProcessStateError`

  Bases: `exceptions.Exception`

  `__init__`()

    x.__init__(...) initializes x; see x.__class__.__doc__ for signature

### `SGEEngineSet`

class `IPython.kernel.scripts.ipcluster.``SGEEngineSet`(template_file, queue, **kwargs)

  Bases: `IPython.kernel.scripts.ipcluster.PBSEngineSet`

  `__init__`()

### `SSHEngineSet`

class `IPython.kernel.scripts.ipcluster.``SSHEngineSet`(engine_hosts, sshx=None, copyenvs=None, ipengine='ipengine')

  Bases: `object`

  `__init__`()

    Start a controller on localhost and engines using ssh.

    The engine_hosts argument is a dict with hostnames as keys and the number of engine (int) as values. sshx is the name of a local file that will be used to run remote commands. This file is used to setup the environment properly.

  `kill`()
  `start`()

### `UnknownStatus`

class `IPython.kernel.scripts.ipcluster.``UnknownStatus`

  Bases: `exceptions.Exception`

  `__init__`()

    x.__init__(...) initializes x; see x.__class__.__doc__ for signature

## Functions

`IPython.kernel.scripts.ipcluster.``check_reuse`()

  Check to see if we should try to resuse FURL files.

`IPython.kernel.scripts.ipcluster.``check_security`()

  Check to see if we should run with SSL support.

`IPython.kernel.scripts.ipcluster.``escape_strings`()

`IPython.kernel.scripts.ipcluster.``get_args`()

`IPython.kernel.scripts.ipcluster.``main`()

`IPython.kernel.scripts.ipcluster.``main_local`()

`IPython.kernel.scripts.ipcluster.``main_lsf`()

`IPython.kernel.scripts.ipcluster.``main_mpi`()

`IPython.kernel.scripts.ipcluster.``main_pbs`()

`IPython.kernel.scripts.ipcluster.``main_sge`()

`IPython.kernel.scripts.ipcluster.``main_ssh`()

  Start a controller on localhost and engines using ssh.

  Your clusterfile should look like:

      send_furl = False # True, if you want
      engines = {
          'engine_host1' : engine_count,
          'engine_host2' : engine_count2
      }

### Navigation

- index
- modules |
- next |
- previous |
- IPython v0.10.1 documentation »
- The IPython API »