This documentation is for an old version of IPython. You can find docs for newer versions here.

Module: terminal.console.interactiveshell

terminal client to the IPython kernel

1 Class

class IPython.terminal.console.interactiveshell.ZMQTerminalInteractiveShell(ipython_dir=None, profile_dir=None, user_module=None, user_ns=None, custom_exceptions=((), None), **kwargs)

Bases: IPython.terminal.interactiveshell.TerminalInteractiveShell

A subclass of TerminalInteractiveShell that uses the 0MQ kernel


Return whether a message is from this session

handle_input_request(msg_id, timeout=0.1)

Method to capture raw_input


Process messages on the IOPub channel

This method consumes and processes messages on the IOPub channel, such as stdout, stderr, execute_result and status.

It only displays output that is caused by this session.


Return whether we should include a given output message


Initialize the completion machinery.

This creates completion machinery that can be used by client code, either interactively in-process (typically triggered by the readline library), programmatically (such as in test suites) or out-of-process (typically over the network by remote frontends).


Sets up the command history.


Closely emulate the interactive Python console.

run_cell(cell, store_history=True)

Run a complete IPython cell.


cell : str

The code (including IPython code such as %magic functions) to run.

store_history : bool

If True, the raw and translated cell will be stored in IPython’s history. For user code calling back into IPython’s machinery, this should be set to False.


method to wait for a kernel to be ready