Show More
@@ -52,7 +52,6 from IPython.utils.traitlets import ( | |||
|
52 | 52 | Type |
|
53 | 53 | ) |
|
54 | 54 | |
|
55 | from entry_point import base_launch_kernel | |
|
56 | 55 | from kernelapp import KernelApp, kernel_flags, kernel_aliases |
|
57 | 56 | from serialize import serialize_object, unpack_apply_message |
|
58 | 57 | from session import Session, Message |
@@ -870,21 +869,6 class IPKernelApp(KernelApp, InteractiveShellApp): | |||
|
870 | 869 | # Kernel main and launch functions |
|
871 | 870 | #----------------------------------------------------------------------------- |
|
872 | 871 | |
|
873 | def launch_kernel(*args, **kwargs): | |
|
874 | """Launches a localhost IPython kernel, binding to the specified ports. | |
|
875 | ||
|
876 | This function simply calls entry_point.base_launch_kernel with the right | |
|
877 | first command to start an ipkernel. See base_launch_kernel for arguments. | |
|
878 | ||
|
879 | Returns | |
|
880 | ------- | |
|
881 | A tuple of form: | |
|
882 | (kernel_process, shell_port, iopub_port, stdin_port, hb_port) | |
|
883 | where kernel_process is a Popen object and the ports are integers. | |
|
884 | """ | |
|
885 | return base_launch_kernel('from IPython.zmq.ipkernel import main; main()', | |
|
886 | *args, **kwargs) | |
|
887 | ||
|
888 | 872 | |
|
889 | 873 | def embed_kernel(module=None, local_ns=None, **kwargs): |
|
890 | 874 | """Embed and start an IPython kernel in a given scope. |
General Comments 0
You need to be logged in to leave comments.
Login now