Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release (1.2.1).
Base class to manage comms
Bases: IPython.config.configurable.LoggingConfigurable
Manager for Comms in the Kernel
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
Return lazy-evaluated string representation of a dictionary’s keys
Key list is only constructed if it will actually be used. Used for debug-logging.
method decorator for ensuring output is handled properly in a message handler