禁用IPython退出确认
每次我inputexit() ,我都会得到提示,确认退出。 当然我想退出! 否则,我不会写exit() ! 
有没有办法来覆盖IPython的默认行为,使其退出没有提示?
 如果您还希望Ctrl-D在未经确认的情况下退出,请在IPython 0.11中将c.TerminalInteractiveShell.confirm_exit = False添加到您的configuration文件*中。 
 如果您还没有configuration文件,请运行ipython profile create来创build一个。 
注意这张票,如果你在Django壳内工作。
  *configuration文件位于: $HOME/.ipython/profile_default/ipython_config.py 
在ipython版本0.11或更高版本中,
-  用--no-confirm-exit或者运行
- 通过“退出”而不是控制-D OR退出
- 
确保该目录存在(或者运行 ipython profile create来创build它),并将这些行添加到$ HOME / .ipython / profile_default / ipython_config.py中:c = get_config() c.TerminalInteractiveShell.confirm_exit = False
 只需键入Exit ,大写E 。 
或者,启动IPython:
 $ ipython -noconfirm_exit 
或者更新版本的IPython:
 $ ipython --no-confirm-exit 
我喜欢configuration的build议,但直到我了解他们,我已经开始使用“退出”组合键。
 Ctrl+\ 
要么
 Ctrl+4 
这只会杀死正在运行的东西。 没有时间提问确认。