##// END OF EJS Templates
Use default OS shell to run system commands...
Use default OS shell to run system commands Instead of using os.system which uses /bin/sh, this uses subprocess.call (the replacement of os.system) to run the command using the default shell of the OS. With this, one can use more advanced commands for bash, zsh, ksh, ... I also edited the docstring, added comments and fixed the handling of return codes.

File last commit:

r11009:e16cf2f8
r12366:47045d65
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)