##// END OF EJS Templates
Modifies Contents API to return Error objects...
Modifies Contents API to return Error objects Modfies the Contents class to return JavaScript Error objects instead of passing on the return values from $.ajax(). This has two advantages. First, it allows the content manager to parse errors and give more informative messages than the ajax response. Second, it makes the Contents interface more general, since other kinds of backends might generate client-side errors.

File last commit:

r11009:e16cf2f8
r18661:d632dcb6
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)