MCPcopy Create free account
hub / github.com/ipython/ipython / start_kernel

Function start_kernel

IPython/__init__.py:128–152  ·  view source on GitHub ↗

Launch a normal IPython kernel instance (as opposed to embedded) `IPython.embed_kernel()` puts a shell in a particular calling scope, such as a function or method for debugging purposes, which is often not desirable. `start_kernel()` does full, regular IPython initializatio

(argv=None, **kwargs)

Source from the content-addressed store, hash-verified

126 return launch_new_instance(argv=argv, **kwargs)
127
128def start_kernel(argv=None, **kwargs):
129 """Launch a normal IPython kernel instance (as opposed to embedded)
130
131 `IPython.embed_kernel()` puts a shell in a particular calling scope,
132 such as a function or method for debugging purposes,
133 which is often not desirable.
134
135 `start_kernel()` does full, regular IPython initialization,
136 including loading startup files, configuration, etc.
137 much of which is skipped by `embed()`.
138
139 Parameters
140 ----------
141
142 argv : list or None, optional
143 If unspecified or None, IPython will parse command-line options from sys.argv.
144 To prevent any command-line parsing, pass an empty list: `argv=[]`.
145 user_ns : dict, optional
146 specify this dictionary to initialize the IPython user namespace with particular values.
147 kwargs : various, optional
148 Any other kwargs will be passed to the Application constructor,
149 such as `config`.
150 """
151 from IPython.kernel.zmq.kernelapp import launch_new_instance
152 return launch_new_instance(argv=argv, **kwargs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected