inprocess_kernelmanager.py
33 lines
| 1.1 KiB
| text/x-python
|
PythonLexer
epatters
|
r8471 | """ Defines an in-process KernelManager with signals and slots. | ||
""" | ||||
# Local imports. | ||||
from IPython.inprocess.kernelmanager import \ | ||||
Brian Granger
|
r9120 | InProcessShellChannel, InProcessIOPubChannel, InProcessStdInChannel, \ | ||
InProcessHBChannel, InProcessKernelManager | ||||
epatters
|
r8471 | from IPython.utils.traitlets import Type | ||
Brian Granger
|
r9120 | from base_kernelmanager import QtShellChannelMixin, QtIOPubChannelMixin, \ | ||
epatters
|
r8471 | QtStdInChannelMixin, QtHBChannelMixin, QtKernelManagerMixin | ||
Brian Granger
|
r9120 | class QtInProcessShellChannel(QtShellChannelMixin, InProcessShellChannel): | ||
epatters
|
r8471 | pass | ||
Brian Granger
|
r9120 | class QtInProcessIOPubChannel(QtIOPubChannelMixin, InProcessIOPubChannel): | ||
epatters
|
r8471 | pass | ||
Brian Granger
|
r9120 | class QtInProcessStdInChannel(QtStdInChannelMixin, InProcessStdInChannel): | ||
epatters
|
r8471 | pass | ||
Brian Granger
|
r9120 | class QtInProcessHBChannel(QtHBChannelMixin, InProcessHBChannel): | ||
epatters
|
r8471 | pass | ||
class QtInProcessKernelManager(QtKernelManagerMixin, InProcessKernelManager): | ||||
""" An in-process KernelManager with signals and slots. | ||||
""" | ||||
Brian Granger
|
r9120 | iopub_channel_class = Type(QtInProcessIOPubChannel) | ||
shell_channel_class = Type(QtInProcessShellChannel) | ||||
stdin_channel_class = Type(QtInProcessStdInChannel) | ||||
hb_channel_class = Type(QtInProcessHBChannel) | ||||