##// END OF EJS Templates
refactor to improve cell switching in edit mode...
refactor to improve cell switching in edit mode This code was repeated in both CodeCell and TextCell, both of which are extensions of Cell, so this just unifies the logic in Cell. TextCell had logic here to check if the cell was rendered or not, but I don't believe it is possible to end up triggering such a code path. (Should that be required, I can always just add back these methods to TextCell, performing the .rendered==True check, and calling the Cell prior to this, code mirror at_top would only return true on if the cursor was at the first character of the top line. Now, pressing up arrow on any character on the top line will take you to the cell above. The same applies for the bottom line. Pressing down arrow would only go to the next cell if the cursor was at a location *after* the last character (something that is only possible to achieve in vim mode if the last line is empty, for example). Now, down arrow on any character of the last line will go to the next cell.

File last commit:

r11009:e16cf2f8
r15754:d60e793e
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)