相关疑难解决方法(0)

在IPython Notebook中自动运行%matplotlib内联

每次启动IPython Notebook时,我运行的第一个命令是

%matplotlib inline
Run Code Online (Sandbox Code Playgroud)

有没有办法改变我的配置文件,以便在我启动IPython时,它会自动进入这种模式?

python matplotlib ipython-notebook

86
推荐指数
3
解决办法
10万
查看次数

如何更新IPython 5.0的PromptManager设置?

线条

# 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 …
Run Code Online (Sandbox Code Playgroud)

settings ipython

11
推荐指数
0
解决办法
575
查看次数

标签 统计

ipython ×1

ipython-notebook ×1

matplotlib ×1

python ×1

settings ×1