Warning

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

Module: kernel.inprocess.channels

A kernel client for in-process kernels.

5 Classes

class IPython.kernel.inprocess.channels.InProcessChannel(client=None)

Bases: object

Base class for in-process channels.

__init__(client=None)
call_handlers(msg)

This method is called in the main thread when a message arrives.

Subclasses should override this method to handle incoming messages.

call_handlers_later(*args, **kwds)

Call the message handlers later.

The default implementation just calls the handlers immediately, but this method exists so that GUI toolkits can defer calling the handlers until after the event loop has run, as expected by GUI frontends.

process_events()

Process any pending GUI events.

This method will be never be called from a frontend without an event loop (e.g., a terminal frontend).

class IPython.kernel.inprocess.channels.InProcessShellChannel(client=None)

Bases: IPython.kernel.inprocess.channels.InProcessChannel

See IPython.kernel.channels.ShellChannel for docstrings.

kernel_info()

Request kernel info.

class IPython.kernel.inprocess.channels.InProcessIOPubChannel(client=None)

Bases: IPython.kernel.inprocess.channels.InProcessChannel

See IPython.kernel.channels.IOPubChannel for docstrings.

class IPython.kernel.inprocess.channels.InProcessStdInChannel(client=None)

Bases: IPython.kernel.inprocess.channels.InProcessChannel

See IPython.kernel.channels.StdInChannel for docstrings.

class IPython.kernel.inprocess.channels.InProcessHBChannel(*args, **kwds)

Bases: IPython.kernel.inprocess.channels.InProcessChannel

See IPython.kernel.channels.HBChannel for docstrings.

__init__(*args, **kwds)