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 a running kernel
Bases: IPython.config.configurable.LoggingConfigurable, IPython.kernel.connect.ConnectionFileMixin
Manages a single kernel in a subprocess on this host.
This version starts kernels with Popen.
register a callback to be called when a kernel is restarted
Create a client configured to connect to our kernel
replace templated args (e.g. {connection_file})
Has a kernel been started that we are managing.
Interrupts the kernel by sending it a signal.
Unlike signal_kernel, this operation is well supported on all platforms.
Is the kernel process still running?
unregister a callback to be called when a kernel is restarted
Restarts a kernel with the arguments that were used to launch it.
If the old kernel was launched with random ports, the same ports will be used for the new kernel. The same connection file is used again.
Parameters: | now : bool, optional
**kw : optional
|
---|
Attempts to the stop the kernel process cleanly.
This attempts to shutdown the kernels cleanly by:
Parameters: | now : bool
restart: bool
|
---|
Sends a signal to the kernel.
Note that since only SIGTERM is supported on Windows, this function is only useful on Unix systems.
Starts a kernel on this host in a separate process.
If random ports (port=0) are being used, this method must be called before the channels are created.
Parameters: | **kw : optional
|
---|