##// END OF EJS Templates
handle simple closures in pickleutil...
handle simple closures in pickleutil It turns out this is pretty straightforward. I'm sure there are plenty of cases where dill / cloud pickle are going to be desirable, but Python 3 makes trivial closures a lot more likely, and this handles those cases easily enough.

File last commit:

r11009:e16cf2f8
r16506:e56ff8b2
Show More
client.py
37 lines | 968 B | text/x-python | PythonLexer
MinRK
update Qt to use KernelClient
r10288 """ Defines a KernelClient that provides signals and slots.
epatters
Initial checkin of Qt kernel manager. Began refactor of FrontendWidget.
r2609 """
MinRK
update Qt to use KernelClient
r10288 # Local imports
Brian Granger
Initial support in ipkernel for proper displayhook handling.
r2786 from IPython.utils.traitlets import Type
MinRK
update Qt to use KernelClient
r10288 from IPython.kernel.channels import (
ShellChannel, IOPubChannel, StdInChannel, HBChannel
)
from IPython.kernel import KernelClient
epatters
Initial checkin of Qt kernel manager. Began refactor of FrontendWidget.
r2609
MinRK
update Qt to use KernelClient
r10288 from .kernel_mixins import (
QtShellChannelMixin, QtIOPubChannelMixin,
QtStdInChannelMixin, QtHBChannelMixin,
QtKernelClientMixin
)
Brian Granger
Fixed high CPU usage of XREQ channel....
r2695
Brian Granger
Cleanup naming and organization of channels....
r9120 class QtShellChannel(QtShellChannelMixin, ShellChannel):
epatters
Refactor kernel managers in preparation for the EmbeddedKernel.
r8408 pass
Brian Granger
Mostly final version of display data....
r3277
Brian Granger
Cleanup naming and organization of channels....
r9120 class QtIOPubChannel(QtIOPubChannelMixin, IOPubChannel):
epatters
Refactor kernel managers in preparation for the EmbeddedKernel.
r8408 pass
epatters
* Refactored KernelManager to use Traitlets and to have its channels as attributes...
r2611
Brian Granger
Cleanup naming and organization of channels....
r9120 class QtStdInChannel(QtStdInChannelMixin, StdInChannel):
epatters
Refactor kernel managers in preparation for the EmbeddedKernel.
r8408 pass
MinRK
added shutdown notification handling to ipythonqt
r3090
Brian Granger
Cleanup naming and organization of channels....
r9120 class QtHBChannel(QtHBChannelMixin, HBChannel):
epatters
Refactor kernel managers in preparation for the EmbeddedKernel.
r8408 pass
Bernardo B. Marques
remove all trailling spaces
r4872
epatters
Initial checkin of Qt kernel manager. Began refactor of FrontendWidget.
r2609
MinRK
update Qt to use KernelClient
r10288 class QtKernelClient(QtKernelClientMixin, KernelClient):
""" A KernelClient that provides signals and slots.
epatters
* Refactored KernelManager to use Traitlets and to have its channels as attributes...
r2611 """
Brian Granger
Cleanup naming and organization of channels....
r9120 iopub_channel_class = Type(QtIOPubChannel)
shell_channel_class = Type(QtShellChannel)
stdin_channel_class = Type(QtStdInChannel)
hb_channel_class = Type(QtHBChannel)