Show More
@@ -97,8 +97,8 b' def write_connection_file(fname=None, shell_port=0, iopub_port=0, stdin_port=0, ' | |||||
97 | return fname, cfg |
|
97 | return fname, cfg | |
98 |
|
98 | |||
99 |
|
99 | |||
100 | def make_kernel_cmd(code, executable=None, extra_arguments=[], **kw): |
|
100 | def make_ipkernel_cmd(code, executable=None, extra_arguments=[], **kw): | |
101 | """ Launches a localhost kernel, binding to the specified ports. |
|
101 | """Build Popen command list for launching an IPython kernel. | |
102 |
|
102 | |||
103 | Parameters |
|
103 | Parameters | |
104 | ---------- |
|
104 | ---------- |
@@ -42,7 +42,7 b' from IPython.utils.traitlets import (' | |||||
42 | from IPython.utils.py3compat import str_to_bytes |
|
42 | from IPython.utils.py3compat import str_to_bytes | |
43 | from IPython.zmq.entry_point import ( |
|
43 | from IPython.zmq.entry_point import ( | |
44 | write_connection_file, |
|
44 | write_connection_file, | |
45 | make_kernel_cmd, |
|
45 | make_ipkernel_cmd, | |
46 | launch_kernel, |
|
46 | launch_kernel, | |
47 | ) |
|
47 | ) | |
48 | from session import Session |
|
48 | from session import Session | |
@@ -902,7 +902,7 b' class KernelManager(Configurable):' | |||||
902 | if self.kernel_cmd: |
|
902 | if self.kernel_cmd: | |
903 | cmd = self.kernel_cmd |
|
903 | cmd = self.kernel_cmd | |
904 | else: |
|
904 | else: | |
905 | cmd = make_kernel_cmd( |
|
905 | cmd = make_ipkernel_cmd( | |
906 | 'from IPython.zmq.ipkernel import main; main()', |
|
906 | 'from IPython.zmq.ipkernel import main; main()', | |
907 | **kw |
|
907 | **kw | |
908 | ) |
|
908 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now