Show More
@@ -84,3 +84,23 b' def embed_kernel(module=None, local_ns=None, **kwargs):' | |||
|
84 | 84 | # Only import .zmq when we really need it |
|
85 | 85 | from IPython.kernel.zmq.embed import embed_kernel as real_embed_kernel |
|
86 | 86 | real_embed_kernel(module=module, local_ns=local_ns, **kwargs) |
|
87 | ||
|
88 | def start_ipython(argv=None, **kwargs): | |
|
89 | """launch a normal IPython instance (as opposed to embedded) | |
|
90 | ||
|
91 | This is a public API method, and will survive implementation changes. | |
|
92 | ||
|
93 | ||
|
94 | Parameters | |
|
95 | ---------- | |
|
96 | ||
|
97 | argv : list or None, optional | |
|
98 | If unspecified or None, IPython will parse command-line options from sys.argv. | |
|
99 | To prevent any command-line parsing, pass an empty list: `argv=[]`. | |
|
100 | ||
|
101 | kwargs : various, optional | |
|
102 | Any other kwargs will be passed to the Application constructor, | |
|
103 | such as `config`. | |
|
104 | """ | |
|
105 | from IPython.terminal.ipapp import launch_new_instance | |
|
106 | return launch_new_instance(argv=argv, **kwargs) |
General Comments 0
You need to be logged in to leave comments.
Login now