IPYTHON选项卡完整菜单颜色不可读

问题描述 投票:0回答:1

我尝试过的地方: enter image description here 我没有ipython配置文件,所以我创建了一个: ipython profile create

.

在我的
    ipython_config.py
  1. 我设置
    c.InteractiveShell.colors = 'NoColors'
    。这使我所有的文字都白色,但完成文本没有改变。
  2. 我使用以下软件:

Kitty终端:0.14.1enter image description here Ipython:7.5.0

pygments:2.4.2

推出-Toolkit:2.0.9
  • i找到了
  • a
  • 解决方案。看来我的终端正在使用24位颜色,并且必须与Ipython的默认值较差,该默认值为256种颜色。您可以使用此命令测试终端:
  • printf "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m\n"
  • 如果您看到“ trueColor”,那么您的终端支持真颜色。
对于Ipython,编辑
ipython
1个回答
14
投票
;对于Jupyter,编辑

~/.jupyter/jupyter_console_config.py。然后编辑:c.TerminalInteractiveShell.true_color = True

。现在完整的文本可以读取。

	
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.