Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release.
Base class for a kernel that talks to frontends over 0MQ.
Bases: IPython.config.configurable.SingletonConfigurable
abort a specific msg by id
Clear our namespace.
dispatch control requests
dispatch shell requests
Override in subclasses to support the IPython parallel framework.
Override in subclasses to clear the namespace
This is only required for IPython.parallel.
Override in subclasses to find completions.
Execute user code. Must be overridden by subclasses.
Override in subclasses to access history.
Override in subclasses to allow introspection.
Override in subclasses to find completions.
step eventloop just once
Override in subclasses to do things when the frontend shuts down the kernel.
enter eventloop
handle an execute_request
Forward getpass to frontends
| Raises: | StdinNotImplentedError if active frontend doesn’t support stdin. : |
|---|
Forward raw_input to frontends
| Raises: | StdinNotImplentedError if active frontend doesn’t support stdin. : |
|---|
Record the ports that this kernel is using.
The creator of the Kernel instance must call this methods if they want the connect_request() method to return the port numbers.
Send a response to the message we’re currently processing.
This accepts all the parameters of IPython.kernel.zmq.session.Session.send() except parent.
This relies on set_parent() having been called for the current message.
Set the current parent_header
Side effects (IOPub messages) and replies are associated with the request that caused them via the parent_header.
The parent identity is used to route input_request messages on the stdin channel.
register dispatchers for streams