繁体   English   中英

IPython Notebook中不再支持的配置文件

[英]Profiles Not Supported Anymore in IPython Notebooks

当前版本的IPython笔记本不支持配置文件。 IPython工作得非常好: ipython --profile test 但是ipython notebook --profile test失败,输出如下:

Examples
--------

    ipython notebook                       # start the notebook
    ipython notebook --profile=sympy       # use the sympy profile
    ipython notebook --certfile=mycert.pem # use SSL/TLS certificate

[C 14:04:28.232 NotebookApp] Bad config encountered during initialization:
[C 14:04:28.232 NotebookApp] Unrecognized flag: '--profile'

它仍在示例中,但实际上不起作用。 有没有一种方法可以将配置文件与IPython笔记本一起使用?

以下是我的pip freeze

appnope==0.1.0
backports-abc==0.4
backports.ssl-match-hostname==3.5.0.1
certifi==2015.11.20.1
decorator==4.0.6
functools32==3.2.3.post2
gnureadline==6.3.3
ipykernel==4.2.1
ipython==4.0.1
ipython-genutils==0.1.0
Jinja2==2.8
jsonschema==2.5.1
jupyter-client==4.1.1
jupyter-core==4.0.6
MarkupSafe==0.23
mistune==0.7.1
nbconvert==4.1.0
nbformat==4.0.1
notebook==4.0.6
path.py==8.1.2
pexpect==4.0.1
pickleshare==0.5
ptyprocess==0.5
Pygments==2.0.2
pyzmq==15.1.0
simplegeneric==0.8.1
singledispatch==3.4.0.3
six==1.10.0
terminado==0.5
tornado==4.3
traitlets==4.0.0
wheel==0.24.0

正如@birryree在评论中提到的那样,IPython 4.0现在是Jupyter。 迁移文档对我来说还不是很清楚。 因此,最简单的解决方案是安装仍支持配置文件的IPython 3:

pip install ipython[notebook]==3.2.3

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM