线条
# Output prompt. '\#' will be transformed to the prompt number
c.PromptManager.out_template = '{color.Green}Out[{count}]{color.Green} : {color.LightGray}'
# Continuation prompt.
c.PromptManager.in2_template = '{color.Yellow} .\\D.{color.Green} : {color.LightGray}'
# If True (default), each prompt will be right-aligned with the preceding one.
c.PromptManager.justify = True
# Input prompt. '\#' will be transformed to the prompt number
c.PromptManager.in_template = '{color.Green}In [{count}]{color.LightGreen} : {color.DarkGray}'
Run Code Online (Sandbox Code Playgroud)
在我的ipython_config.py给予
usr/local/lib/python2.7/site-packages/IPython/core/interactiveshell.py:440: UserWarning: As of IPython 5.0 `PromptManager` config will have no effect and has been replaced by TerminalInteractiveShell.prompts_class
warn('As of IPython 5.0 `PromptManager` config will have no effect'
Run Code Online (Sandbox Code Playgroud)
但替换PromptManager为TerminalInteractiveShell.prompts_class没有效果.
如何更新PromptManagerIPython 5.0的设置?
| 归档时间: |
|
| 查看次数: |
575 次 |
| 最近记录: |