### Navigation

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

# frontend.process.pipedprocess

## Module: `frontend.process.pipedprocess`

Inheritance diagram for `IPython.frontend.process.pipedprocess`:

Object for encapsulating process execution by using callbacks for stdout, stderr and stdin.

## `PipedProcess`

class `IPython.frontend.process.pipedprocess.``PipedProcess`(command_string, out_callback, end_callback=None)

  Bases: `threading.Thread`

  Class that encapsulates process execution by using callbacks for stdout, stderr and stdin, and providing a reliable way of killing it.

  `__init__`(command_string, out_callback, end_callback=None)

    command_string: the command line executed to start the process.

    out_callback: the python callable called on stdout/stderr.

    end_callback: an optional callable called when the process finishes.

    These callbacks are called from a different thread as the thread from which is started.

  `run`()
    Start the process and hook up the callbacks.

### Navigation

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