client.py
37 lines
| 968 B
| text/x-python
|
PythonLexer
MinRK
|
r10288 | """ Defines a KernelClient that provides signals and slots. | ||
epatters
|
r2609 | """ | ||
MinRK
|
r10288 | # Local imports | ||
Brian Granger
|
r2786 | from IPython.utils.traitlets import Type | ||
MinRK
|
r10288 | from IPython.kernel.channels import ( | ||
ShellChannel, IOPubChannel, StdInChannel, HBChannel | ||||
) | ||||
from IPython.kernel import KernelClient | ||||
epatters
|
r2609 | |||
MinRK
|
r10288 | from .kernel_mixins import ( | ||
QtShellChannelMixin, QtIOPubChannelMixin, | ||||
QtStdInChannelMixin, QtHBChannelMixin, | ||||
QtKernelClientMixin | ||||
) | ||||
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 | |||
MinRK
|
r10288 | class QtKernelClient(QtKernelClientMixin, KernelClient): | ||
""" A KernelClient 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) | ||||