如何使颜色在iPython 5中可读?

Ale*_*x L 5 ipython

我刚刚升级到iPython 5,使用深色终端背景很难看清所有颜色。有没有办法调整这些?

Ale*_*x L 5

您可以为默认配置文件创建一个配置文件:

? ipython profile create default
[ProfileCreate] Generating default config file: '/Users/alex/.ipython/profile_default/ipython_config.py'
Run Code Online (Sandbox Code Playgroud)

然后修改此文件以包含以下几行:

## Set the color scheme (NoColor, Neutral, Linux, or LightBG).
c.InteractiveShell.colors = 'linux'
Run Code Online (Sandbox Code Playgroud)

您可以在此处阅读可用的配色方案:http : //ipython.readthedocs.io/en/stable/config/details.html