ipython - 禁用欢迎信息
ipython - disable welcome message
每次我进入 ipython
模式时,ipython 都会用这条消息欢迎我,
WARNING: Attempting to work in a virtualenv. If you encounter
problems, please install IPython inside the virtualenv.
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
Type "copyright", "credits" or "license" for more information.
IPython 1.2.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
问候别人很好,但它占据了我的大部分 shell 屏幕,我被迫 clean
删除它们。
如何通过配置文件禁用此欢迎消息?
只需使用:
ipython console
你会得到它,如果那是你想要的。
您可以使用
ipython --no-banner
或者在配置文件中设置
c.TerminalIPythonApp.display_banner = False
正在编辑 IPython 配置文件
编辑您的配置文件并添加
c.TerminalIPythonApp.display_banner = False
默认配置文件的配置文件位于/home/<user>/.ipython/profile_default/ipython_config.py
The documentation for IPython configuration can be found here
正在更新默认配置文件
如果不存在则创建新的配置文件,或者使用
ipython locate profile
查看当前配置文件位置。
每次我进入 ipython
模式时,ipython 都会用这条消息欢迎我,
WARNING: Attempting to work in a virtualenv. If you encounter
problems, please install IPython inside the virtualenv.
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
Type "copyright", "credits" or "license" for more information.
IPython 1.2.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
问候别人很好,但它占据了我的大部分 shell 屏幕,我被迫 clean
删除它们。
如何通过配置文件禁用此欢迎消息?
只需使用:
ipython console
你会得到它,如果那是你想要的。
您可以使用
ipython --no-banner
或者在配置文件中设置
c.TerminalIPythonApp.display_banner = False
正在编辑 IPython 配置文件
编辑您的配置文件并添加
c.TerminalIPythonApp.display_banner = False
默认配置文件的配置文件位于/home/<user>/.ipython/profile_default/ipython_config.py
The documentation for IPython configuration can be found here
正在更新默认配置文件
如果不存在则创建新的配置文件,或者使用
ipython locate profile
查看当前配置文件位置。