<div dir="ltr">Hi,<div><br></div><div>Say I start the vanilla python REPL, and type:</div><div><br></div><div><div>>>> x=5</div><div>>>> from IPython.kernel.inprocess.ipkernel import InProcessKernel</div><div>>>> x = InProcessKernel()</div><div>In : x  # NameError: name 'x' is not defined</div><div><br></div><div>instantiating a kernel takes over the REPL, gives a new prompt, and defines a new namespace (where neither x nor k are defined)</div><div><br></div><div>At this point is there any way to shutdown the kernel, to get back to the old prompt and namespace?</div><div><br></div><div>Thanks,<br></div><div>Chris</div>
</div></div>