Launch a normal IPython instance (as opposed to embedded) `IPython.embed()` puts a shell in a particular calling scope, such as a function or method for debugging purposes, which is often not desirable. `start_ipython()` does full, regular IPython initialization, includ
(argv=None, **kwargs)
| 98 | real_embed_kernel(module=module, local_ns=local_ns, **kwargs) |
| 99 | |
| 100 | def start_ipython(argv=None, **kwargs): |
| 101 | """Launch a normal IPython instance (as opposed to embedded) |
| 102 | |
| 103 | `IPython.embed()` puts a shell in a particular calling scope, |
| 104 | such as a function or method for debugging purposes, |
| 105 | which is often not desirable. |
| 106 | |
| 107 | `start_ipython()` does full, regular IPython initialization, |
| 108 | including loading startup files, configuration, etc. |
| 109 | much of which is skipped by `embed()`. |
| 110 | |
| 111 | This is a public API method, and will survive implementation changes. |
| 112 | |
| 113 | Parameters |
| 114 | ---------- |
| 115 | |
| 116 | argv : list or None, optional |
| 117 | If unspecified or None, IPython will parse command-line options from sys.argv. |
| 118 | To prevent any command-line parsing, pass an empty list: `argv=[]`. |
| 119 | user_ns : dict, optional |
| 120 | specify this dictionary to initialize the IPython user namespace with particular values. |
| 121 | kwargs : various, optional |
| 122 | Any other kwargs will be passed to the Application constructor, |
| 123 | such as `config`. |
| 124 | """ |
| 125 | from IPython.terminal.ipapp import launch_new_instance |
| 126 | return launch_new_instance(argv=argv, **kwargs) |
| 127 | |
| 128 | def start_kernel(argv=None, **kwargs): |
| 129 | """Launch a normal IPython kernel instance (as opposed to embedded) |