停止IPython更改终端标题

blu*_*e10 3 ipython

从IPython 5开始,IPython会话自动修改终端(tab)标题.我更喜欢手动设置终端标签的标题.有没有办法阻止IPython修改标题?

blu*_*e10 8

这可以在IPython配置中配置.如果还没有IPython配置文件:

$ ipython profile create
[ProfileCreate] Generating default config file: u'/home/user/.ipython/profile_default/ipython_config.py'
Run Code Online (Sandbox Code Playgroud)

在此配置文件中,您可以设置:

## Automatically set the terminal title
c.TerminalInteractiveShell.term_title = False
Run Code Online (Sandbox Code Playgroud)