sen*_*nte 6 python configuration ipython
我知道在某些时候我可能想要"升级",但是现在我只想要旧的外观和感觉.
我知道IPython是非常可配置的,但我没有太多运气找到正确的设置.
(顺便提一句,这只涉及IPython的交互式终端)
首先创建默认的 iPython 配置文件。从您的 shell 中输入:
$ ipython profile createRun Code Online (Sandbox Code Playgroud)
假设用户名是someuser:
[ProfileCreate] Generating default config file: u'/home/someuser/.ipython/profile_default/ipython_config.py'Run Code Online (Sandbox Code Playgroud)
使用您喜欢的文本编辑器打开新创建的文件,在上面的示例中显示为:/home/someuser/.ipython/profile_default/ipython_config.py
在底部添加以下行:
c.TerminalInteractiveShell.colors = 'NoColor'
c.TerminalInteractiveShell.display_completions = 'readlinelike'
Run Code Online (Sandbox Code Playgroud)
保存文件。
应该是这样。更改应该在新的 iPython 会话中处于活动状态。
| 归档时间: |
|
| 查看次数: |
222 次 |
| 最近记录: |