I'd like to break out of the currently running program and be dropped back to the shell (without having to restart ipython)
相关问题
- Access IPython's profile history (history.sqli
- Pandas and NumPy default width change on startup
- prevent overlapping bars using seaborn with pandas
- Issues with tk in ipython/jupyter
- Save iPython Jupyter Notebook Widgets to PNG/PDF/J
相关文章
- cython in jupyter notebook
- python: ignoring leading “>>>” and “…” in interact
- how to print source code of object I defined use
- IPython won't start
- Ipython kernel error after uninstalling anaconda
- How can i force SHIFT+ENTER to run selection and e
- How to set the default background/text color schem
- Ipython notebook crash using rmagic extension
Control-C works in the normal interactive Python shell, it should work in ipy also (except the program is catching the keyboardInterrupt exception)
I had the same issue after reinstalling console2 and ipython on Windows. If you use the ipython.exe launcher, this seems to be a problem and it just closes the whole window. However, if you instead launch ipython with
python C:\python27\scripts\ipython-script.py
then it catches and handles the KeyboardInterrupt just fine and leaves me at the ipython prompt. Hooray.
Kind of a jenky method but I can often quit a process without exiting ipython by typing something like: ']='. It creates a syntax error, terminating the process and, thereby, returning you to the ipython shell.
For the current version of IPython(Jupyter), you can simply click on Interrupt option under kernel tab.