Cen*_*tAu 15 python ipython ipython-notebook jupyter
我使用以下命令初始化配置文件:
ipython profile create myserver
Run Code Online (Sandbox Code Playgroud)
添加了这些行~/.ipython/profile_myserver/ipython_notebook_config.py:
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.port = 8889
Run Code Online (Sandbox Code Playgroud)
尝试启动笔记本:
ipython notebook --profile=myserver --debug
Run Code Online (Sandbox Code Playgroud)
它根本不读取配置文件.这是日志输出:
[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/
Run Code Online (Sandbox Code Playgroud)
因为我已经明确指定了端口8889并且它仍然在8888上运行,所以它显然忽略了配置文件.我错过了什么?
dmv*_*nna 28
IPython的现在已经搬到了4.0版本,这意味着,如果你使用它,它会读取它的配置~/.jupyter,没有~/.ipython.您必须使用创建新的配置文件
jupyter notebook --generate-config
Run Code Online (Sandbox Code Playgroud)
然后~/.jupyter/jupyter_notebook_config.py根据您的需要编辑生成的文件.
这里有更多安装说明.
| 归档时间: |
|
| 查看次数: |
8367 次 |
| 最近记录: |