kernelmanager.py
32 lines
| 944 B
| text/x-python
|
PythonLexer
epatters
|
r2643 | """ Defines a KernelManager that provides signals and slots. | ||
epatters
|
r2609 | """ | ||
epatters
|
r8408 | # Local imports. | ||
Brian Granger
|
r2786 | from IPython.utils.traitlets import Type | ||
Brian Granger
|
r9120 | from IPython.zmq.kernelmanager import ShellChannel, IOPubChannel, \ | ||
StdInChannel, HBChannel, KernelManager | ||||
from base_kernelmanager import QtShellChannelMixin, QtIOPubChannelMixin, \ | ||||
epatters
|
r8408 | QtStdInChannelMixin, QtHBChannelMixin, QtKernelManagerMixin | ||
epatters
|
r2609 | |||
Brian Granger
|
r2695 | |||
Brian Granger
|
r9120 | class QtShellChannel(QtShellChannelMixin, ShellChannel): | ||
epatters
|
r8408 | pass | ||
Brian Granger
|
r3277 | |||
Brian Granger
|
r9120 | class QtIOPubChannel(QtIOPubChannelMixin, IOPubChannel): | ||
epatters
|
r8408 | pass | ||
epatters
|
r2611 | |||
Brian Granger
|
r9120 | class QtStdInChannel(QtStdInChannelMixin, StdInChannel): | ||
epatters
|
r8408 | pass | ||
MinRK
|
r3090 | |||
Brian Granger
|
r9120 | class QtHBChannel(QtHBChannelMixin, HBChannel): | ||
epatters
|
r8408 | pass | ||
Bernardo B. Marques
|
r4872 | |||
epatters
|
r2609 | |||
epatters
|
r8456 | class QtKernelManager(QtKernelManagerMixin, KernelManager): | ||
epatters
|
r2643 | """ A KernelManager that provides signals and slots. | ||
epatters
|
r2611 | """ | ||
Brian Granger
|
r9120 | iopub_channel_class = Type(QtIOPubChannel) | ||
shell_channel_class = Type(QtShellChannel) | ||||
stdin_channel_class = Type(QtStdInChannel) | ||||
hb_channel_class = Type(QtHBChannel) | ||||