This documentation is for an old version of IPython. You can find docs for newer versions here.
Base class to manage comms
Manager for Comms in the Kernel
comm_close(stream, ident, msg)¶
Handler for comm_close messages
comm_msg(stream, ident, msg)¶
Handler for comm_msg messages
comm_open(stream, ident, msg)¶
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
- the Comm instance
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