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.
- c.NotebookApp.allow_origin = '*' #allow all origins
- c.NotebookApp.ip = '0.0.0.0' # listen on all IPs
Supplement
* Jupyter notebook KeyError: ‘allow_remote_access’
* Running Jupyter Notebooks on Remote Servers
沒有留言:
張貼留言