##// END OF EJS Templates
Add parameter for custom launch function to KernelManager.start_kernel.
epatters -
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,6 +790,8 b' class KernelManager(HasTraits):'
785 )
790 )
786
791
787 self._launch_args = kw.copy()
792 self._launch_args = kw.copy()
793 launch_kernel = kw.pop('launcher', None)
794 if launch_kernel is None:
788 if kw.pop('ipython', True):
795 if kw.pop('ipython', True):
789 from ipkernel import launch_kernel
796 from ipkernel import launch_kernel
790 else:
797 else:
General Comments 0
You need to be logged in to leave comments. Login now