如何更新IPython 5.0的PromptManager设置?
台词如何更新IPython 5.0的PromptManager设置?,ipython,settings,Ipython,Settings,台词 # 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}
# 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}'
在myipython_config.py中
give
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'
但将PromptManager
替换为TerminalInteractiveShell.prompts\u class
无效
我如何更新IPython 5.0的
PromptManager
设置?也许v5提示符上最近的这个SO问题会有所帮助:@hpaulj:No。我正在查找哪些行取代了上面的行(并且有效)。