4
我剛升級到iPython 5,所有的顏色都很難用我黑暗的終端背景來閱讀。有沒有辦法調整這些?如何讓顏色在iPython 5中可讀?
我剛升級到iPython 5,所有的顏色都很難用我黑暗的終端背景來閱讀。有沒有辦法調整這些?如何讓顏色在iPython 5中可讀?
您可以創建默認配置文件的配置文件:
❯ ipython profile create default
[ProfileCreate] Generating default config file: '/Users/alex/.ipython/profile_default/ipython_config.py'
然後修改該文件以包括以下行:
## Set the color scheme (NoColor, Neutral, Linux, or LightBG).
c.InteractiveShell.colors = 'linux'
您可以瞭解這裏可用的配色方案: http://ipython.readthedocs.io/en/stable/config/details.html