在不运行 Web 浏览器的情况下启动 IPython 笔记本服务器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31953518/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Start IPython notebook server without running web browser?
提问by Enrico Pirani
采纳答案by Cyphase
Is this what you want?
这是你想要的吗?
$ ipython notebook --no-browser
Edit
编辑
Now you should use instead
现在你应该改用
$ jupyter notebook --no-browser
Since
自从
ipython notebookis deprecated and will be removed in future versions. You likely want to usejupyter notebookin the future
ipython notebook已弃用,将在未来版本中删除。你可能想jupyter notebook在未来使用
回答by Mithril
If you don't want to type ipython notebook --no-browserall the time,
如果你不想一直打字ipython notebook --no-browser,
for ipython 4.0 with jupyter:
对于带有 jupyter 的 ipython 4.0:
generate config
jupyter notebook --generate-configit would create a file at some place like
win:
C:\Users\[YouUserName]\.jupyter\jupyter_notebook_config.pylinux:
~/.jupyter/jupyter_notebook_config.pyadd
c.NotebookApp.open_browser = Falseto this file.
生成配置
jupyter notebook --generate-config它会在某个地方创建一个文件,比如
赢:
C:\Users\[YouUserName]\.jupyter\jupyter_notebook_config.pylinux:
~/.jupyter/jupyter_notebook_config.py添加
c.NotebookApp.open_browser = False到此文件。
All done!
全部完成!

