Persistent use of Jupyter Notebook from remote server

后端 未结 3 940
一向
一向 2020-12-08 11:23

I connect to a remote server using ssh -L but if I close the laptop lid or the connection is lost, the jupyter notebook is disconnected.

After I reconne

3条回答
  •  情歌与酒
    2020-12-08 11:51

    The standard usage for persisting Jupyter server sessions is the use of nohup and &; in your remote server with IP address xx.xx.xx.xx:

    nohup jupyter notebook --no-browser --ip xx.xx.xx.xx --port yyyy &
    

    Now, even if you switch off your laptop or lose the connection, you will be always able to reconnect by pointing your browser at xx.xx.xx.xx:yyyy

提交回复
热议问题