【发布时间】:2015-08-12 20:30:24
【问题描述】:
我使用以下命令来初始化配置文件:
ipython profile create myserver
将这些行添加到~/.ipython/profile_myserver/ipython_notebook_config.py:
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.port = 8889
尝试使用以下方式启动笔记本:
ipython notebook --profile=myserver --debug
它根本不读取配置文件。 这是日志输出:
[W 16:26:56.607 NotebookApp] Unrecognized alias: '--profile=myserver', it will probably have no effect.
[D 16:26:56.609 NotebookApp] Config changed:
[D 16:26:56.609 NotebookApp] {'profile': u'myserver', 'NotebookApp': {'log_level': 10}}
...
[I 16:26:56.665 NotebookApp] 0 active kernels
[I 16:26:56.665 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
由于我已经明确指定了 8889 端口并且它仍然在 8888 上运行,它显然忽略了配置文件。我错过了什么?
【问题讨论】:
-
你用的是哪个版本?
-
IPython 4.0.0。蟒蛇2.7.9。 @Cyphase
-
试试
ipython --profile=myserver notebook --debug。如果可行,我会发布答案。 -
这就是问题所在!配置 jupyter 而不是 ipython 并以
jupyther notebook --profile=myserver启动它解决了这个问题。谢谢!请随时添加答案:) -
完成。另外,我在您的帖子中添加了“jupyter”标签,但您可以自己做,因为我的编辑需要获得批准。这将使人们更容易找到。随着新版本刚刚发布,我预计其他人会在接下来的几天及以后遇到这种情况。
标签: python ipython ipython-notebook jupyter