gpt4 book ai didi

ipython - 禁用欢迎消息

转载 作者:行者123 更新时间:2023-12-02 20:26:17 25 4
gpt4 key购买 nike

每次我进入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 --no-banner

或者在配置文件中设置

c.TerminalIPythonApp.display_banner = False

关于ipython - 禁用欢迎消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29863199/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com