Why I can't access remote Jupyter Notebook server?

前端 未结 15 1079
清酒与你
清酒与你 2020-12-02 04:53

I have started a Jupyter Notebook server on my centos6.5 server.And jupyter is running like

[I 17:40:59.649 NotebookApp] Serving notebooks from local directo         


        
15条回答
  •  佛祖请我去吃肉
    2020-12-02 05:11

    Have you configured the jupyter_notebook_config.py file to allow external connections?

    By default, Jupyter Notebook only accepts connections from localhost (eg, from the same computer that its running on). By modifying the NotebookApp.allow_origin option from the default ' ' to '*', you allow Jupyter to be accessed externally.

    c.NotebookApp.allow_origin = '*' #allow all origins

    You'll also need to change the IPs that the notebook will listen on:

    c.NotebookApp.ip = '0.0.0.0' # listen on all IPs


    Also see the details in a subsequent answer in this thread.

    Documentation on the Jupyter Notebook config file.

提交回复
热议问题