Ern*_*est 36
在ipython版本0.11或更高版本中,
--no-confirm-exit
OR 运行确保该目录存在(或运行ipython profile create
以创建它)并将这些行添加到$ HOME/.ipython/profile_default/ipython_config.py:
c = get_config()
c.TerminalInteractiveShell.confirm_exit = False
Run Code Online (Sandbox Code Playgroud)nye*_*e17 17
只需输入Exit
资本E
.
或者,使用以下命令启动IPython:
$ ipython -noconfirm_exit
Run Code Online (Sandbox Code Playgroud)
或者对于较新版本的IPython:
$ ipython --no-confirm-exit
Run Code Online (Sandbox Code Playgroud)
我喜欢配置建议,但是直到学到它们之后,我才开始使用“ Quit”组合键。
Ctrl+\
Run Code Online (Sandbox Code Playgroud)
要么
Ctrl+4
Run Code Online (Sandbox Code Playgroud)
这只会杀死正在运行的东西。没有时间提出确认问题。