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.

2 Classes

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

Bases: object

Base class for in-process channels.


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 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.InProcessHBChannel(client=None)

Bases: object

A dummy heartbeat channel interface for in-process kernels.

Normally we use the heartbeat to check that the kernel process is alive. When the kernel is in-process, that doesn’t make sense, but clients still expect this interface.