Show More
@@ -771,6 +771,11 b' class KernelManager(HasTraits):' | |||||
771 | ipython : bool, optional (default True) |
|
771 | ipython : bool, optional (default True) | |
772 | Whether to use an IPython kernel instead of a plain Python kernel. |
|
772 | Whether to use an IPython kernel instead of a plain Python kernel. | |
773 |
|
773 | |||
|
774 | launcher : callable, optional (default None) | |||
|
775 | A custom function for launching the kernel process (generally a | |||
|
776 | wrapper around ``entry_point.base_launch_kernel``). In most cases, | |||
|
777 | it should not be necessary to use this parameter. | |||
|
778 | ||||
774 | **kw : optional |
|
779 | **kw : optional | |
775 | See respective options for IPython and Python kernels. |
|
780 | See respective options for IPython and Python kernels. | |
776 | """ |
|
781 | """ | |
@@ -785,10 +790,12 b' class KernelManager(HasTraits):' | |||||
785 | ) |
|
790 | ) | |
786 |
|
791 | |||
787 | self._launch_args = kw.copy() |
|
792 | self._launch_args = kw.copy() | |
788 | if kw.pop('ipython', True): |
|
793 | launch_kernel = kw.pop('launcher', None) | |
789 | from ipkernel import launch_kernel |
|
794 | if launch_kernel is None: | |
790 | else: |
|
795 | if kw.pop('ipython', True): | |
791 |
from p |
|
796 | from ipkernel import launch_kernel | |
|
797 | else: | |||
|
798 | from pykernel import launch_kernel | |||
792 | self.kernel, xrep, pub, req, _hb = launch_kernel( |
|
799 | self.kernel, xrep, pub, req, _hb = launch_kernel( | |
793 | shell_port=shell[1], iopub_port=sub[1], |
|
800 | shell_port=shell[1], iopub_port=sub[1], | |
794 | stdin_port=stdin[1], hb_port=hb[1], **kw) |
|
801 | stdin_port=stdin[1], hb_port=hb[1], **kw) |
General Comments 0
You need to be logged in to leave comments.
Login now