##// END OF EJS Templates
Make comm manager (mostly) independent of InteractiveShell...
Make comm manager (mostly) independent of InteractiveShell This makes it possible to use comms from wrapper kernels, without instantiating the full IPython shell machinery. The one remaining place where we need a reference to shell is to fire pre_execute and post_execute hooks (which are needed to get mpl figures right). This is a pure IPythonism, that it should be safe to ignore if shell is not set.

File last commit:

r11009:e16cf2f8
r17964:a59dfd02
Show More
inprocess.py
40 lines | 1.3 KiB | text/x-python | PythonLexer
epatters
REFACTOR: Terminology change: 'embedded' -> 'in-process'.
r8471 """ Defines an in-process KernelManager with signals and slots.
"""
# Local imports.
MinRK
update inprocess kernel to new layout...
r10298 from IPython.kernel.inprocess import (
InProcessShellChannel, InProcessIOPubChannel, InProcessStdInChannel,
MinRK
fix in process qt and in process examples
r10333 InProcessHBChannel, InProcessKernelClient, InProcessKernelManager,
MinRK
update inprocess kernel to new layout...
r10298 )
epatters
REFACTOR: Terminology change: 'embedded' -> 'in-process'.
r8471 from IPython.utils.traitlets import Type
MinRK
fix in process qt and in process examples
r10333 from .kernel_mixins import (
QtShellChannelMixin, QtIOPubChannelMixin,
QtStdInChannelMixin, QtHBChannelMixin, QtKernelClientMixin,
QtKernelManagerMixin,
)
epatters
REFACTOR: Terminology change: 'embedded' -> 'in-process'.
r8471
Brian Granger
Cleanup naming and organization of channels....
r9120 class QtInProcessShellChannel(QtShellChannelMixin, InProcessShellChannel):
epatters
REFACTOR: Terminology change: 'embedded' -> 'in-process'.
r8471 pass
Brian Granger
Cleanup naming and organization of channels....
r9120 class QtInProcessIOPubChannel(QtIOPubChannelMixin, InProcessIOPubChannel):
epatters
REFACTOR: Terminology change: 'embedded' -> 'in-process'.
r8471 pass
Brian Granger
Cleanup naming and organization of channels....
r9120 class QtInProcessStdInChannel(QtStdInChannelMixin, InProcessStdInChannel):
epatters
REFACTOR: Terminology change: 'embedded' -> 'in-process'.
r8471 pass
Brian Granger
Cleanup naming and organization of channels....
r9120 class QtInProcessHBChannel(QtHBChannelMixin, InProcessHBChannel):
epatters
REFACTOR: Terminology change: 'embedded' -> 'in-process'.
r8471 pass
MinRK
update inprocess kernel to new layout...
r10298 class QtInProcessKernelClient(QtKernelClientMixin, InProcessKernelClient):
epatters
REFACTOR: Terminology change: 'embedded' -> 'in-process'.
r8471 """ An in-process KernelManager with signals and slots.
"""
Brian Granger
Cleanup naming and organization of channels....
r9120 iopub_channel_class = Type(QtInProcessIOPubChannel)
shell_channel_class = Type(QtInProcessShellChannel)
stdin_channel_class = Type(QtInProcessStdInChannel)
hb_channel_class = Type(QtInProcessHBChannel)
MinRK
fix in process qt and in process examples
r10333
class QtInProcessKernelManager(QtKernelManagerMixin, InProcessKernelManager):
client_class = __module__ + '.QtInProcessKernelClient'