启动IPython笔记本服务器而不运行Web浏览器?

Enr*_*ani 36 python ipython jupyter-notebook

我想使用Emacs作为iPython notebooks/Jupyter Notebook(包ein)的主编辑器.我想问你是否有办法在不需要打开网络浏览器的情况下运行服务器.

Cyp*_*ase 61

这是你想要的吗?

$ ipython notebook --no-browser
Run Code Online (Sandbox Code Playgroud)

编辑

现在你应该使用

$ jupyter notebook --no-browser
Run Code Online (Sandbox Code Playgroud)

以来

ipython notebook已弃用,将在以后的版本中删除.您可能希望jupyter notebook将来使用

  • 我很感激,无论谁投票,都会解释为什么; 我想解决任何问题:). (3认同)

Mit*_*ril 25

如果您不想一直打字ipython notebook --no-browser,

对于带有jupyter的ipython 4.0:

  1. 生成配置

    jupyter notebook --generate-config
    
    Run Code Online (Sandbox Code Playgroud)

    它会在某个地方创建一个文件

    赢得: C:\Users\[YouUserName]\.jupyter\jupyter_notebook_config.py

    Linux的: ~/.jupyter/jupyter_notebook_config.py

  2. 添加c.NotebookApp.open_browser = False到此文件.

全部完成!