Ipython’s request “Do you really want to exit? (n/[y]) ” when trying to close a session, is really annoying to me. Due to lack of HowTos, I will post my (pretty nice) solution:
vim ~/.ipython/ipythonrc
… and edit line number 196:
# confirm_exit: set to 1 if you want IPython to confirm when you try to exit # with an EOF (Control-d in Unix, Control-Z/Enter in Windows). Note that using # the magic functions %Exit or %Quit you can force a direct exit, bypassing # any confirmation. confirm_exit 0
If confirm_exit is set to Zero, you will be able to terminate the session via Ctrl+D.
Recent Comments