Change Jupyter Notebook's localhost:8888 default server with other

前端 未结 3 1725
被撕碎了的回忆
被撕碎了的回忆 2021-01-03 00:01

i have two machines connected via lan. other system\'s ip address is 192.1xx.x.x i want to run jupyter ipython query\'s on my machine which can be exexuted on his machine. a

3条回答
  •  臣服心动
    2021-01-03 01:08

    You can specify the port you want Jupyter to run uncommenting/editing the following line in ~/.jupyter/jupyter_notebook_config.py:

    #c.NotebookApp.port = 8888
    

    In case you don't have a jupyter_notebook_config.py try running jupyter notebook --generate-config. See this for further details on Jupyter configuration.

    In case you are accessing Jupyter at a remote machine you can also try just leaving Jupyter running at its default port and make an SSH tunnel to your local machine at the port you want, e.g.:

    ssh -fNL :localhost:8888 
    

提交回复
热议问题