2020年3月17日 星期二

[ Python 常見問題 ] Why I can't access remote Jupyter Notebook server?

Source From Here
Question
I want to access Jupyter remotely in the same local area network, say open http://192.168.1.111:8045/, I can't open a Jupyter page at all. By the way, how can I access remote centos server successfully?

Solution
By default, Jupyter Notebook only accepts connections from localhost (eg, from the same computer that its running on). By modifying the file $HOME/.jupyter/jupyter_notebook_config.py with NotebookApp.allow_origin option from the default ' ' to '*', you can allow Jupyter to be accessed externally.
  1. c.NotebookApp.allow_origin = '*' #allow all origins  
You'll also need to change the IPs that the notebook will listen on:
  1. c.NotebookApp.ip = '0.0.0.0' # listen on all IPs  
For more, you can refer to Documentation on the Jupyter Notebook config file.

Supplement
Jupyter notebook KeyError: ‘allow_remote_access’
Running Jupyter Notebooks on Remote Servers

沒有留言:

張貼留言

[Git 常見問題] error: The following untracked working tree files would be overwritten by merge

  Source From  Here 方案1: // x -----删除忽略文件已经对 git 来说不识别的文件 // d -----删除未被添加到 git 的路径中的文件 // f -----强制运行 #   git clean -d -fx 方案2: 今天在服务器上  gi...