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