IPython Documentation

Table Of Contents

Previous topic

Module: kernel.inprocess.blocking

Next topic

Module: kernel.inprocess.client

This Page

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.

__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.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.

__init__(client=None)