inprocess.py
40 lines
| 1.3 KiB
| text/x-python
|
PythonLexer
epatters
|
r8471 | """ Defines an in-process KernelManager with signals and slots. | ||
""" | ||||
# Local imports. | ||||
MinRK
|
r10298 | from IPython.kernel.inprocess import ( | ||
InProcessShellChannel, InProcessIOPubChannel, InProcessStdInChannel, | ||||
MinRK
|
r10333 | InProcessHBChannel, InProcessKernelClient, InProcessKernelManager, | ||
MinRK
|
r10298 | ) | ||
epatters
|
r8471 | from IPython.utils.traitlets import Type | ||
MinRK
|
r10333 | from .kernel_mixins import ( | ||
QtShellChannelMixin, QtIOPubChannelMixin, | ||||
QtStdInChannelMixin, QtHBChannelMixin, QtKernelClientMixin, | ||||
QtKernelManagerMixin, | ||||
) | ||||
epatters
|
r8471 | |||
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 | ||
MinRK
|
r10298 | class QtInProcessKernelClient(QtKernelClientMixin, InProcessKernelClient): | ||
epatters
|
r8471 | """ 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) | ||||
MinRK
|
r10333 | |||
class QtInProcessKernelManager(QtKernelManagerMixin, InProcessKernelManager): | ||||
client_class = __module__ + '.QtInProcessKernelClient' | ||||