Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release.
Base class to manage comms
Bases: IPython.config.configurable.LoggingConfigurable
Manager for Comms in the Kernel
Handler for comm_close messages
Handler for comm_msg messages
Handler for comm_open messages
Get a comm with a particular id
Returns the comm if found, otherwise None.
This will not raise an error, it will log messages if the comm cannot be found.
Register a new comm
Register a callable f for a given target name
f will be called with two arguments when a comm_open message is received with target:
f can be a Python callable or an import string for one.
Unregister a comm, and close its counterpart
Unregister a callable registered with register_target