在linux远程环境下使用jupyter notebook总是会碰到这样的情况
就是我需要在自己的电脑用xshell连接上那边的电脑,然后输入jupyter notebook,那边的电脑就会开启一个服务端,然后我这边才可以用IP+端口号访问,但是一旦我关闭xshell,jupyter notebook马上就会断开连接,停止工作。
为解决这个问题,我找到如下几种方案,总会有你能用的:
带数字的序号之间没有联系,失败了可以试下一个,强烈推荐2和5
1、直接输入 jupyter notebook &
如果这条失败了,你可以直接试试3,因为这似乎不能阻止jupyter和前端产生关联,
2 按顺序输入
tmux
jupyter notebook
3.nohup jupyter notebook --allow-root > error.log &
4.nohup jupyter notebook --no-browser &
5.screen -A -m -d -S anyscreenname jupyter notebook --no-browser