❤️Jupyter Notebook 远程连接linux ❤️(步骤详细)

1.在linux上安装jupyter,命令:

pip install jupyter

2.linux上生成配置文件,命令:

jupyter notebook --generate-config

3.linux上设置远程登录的密码,命令:

ipython

In [1]: from notebook.auth import passwd

In [2]: passwd()

Enter password:

Verify password:

Out[2]: 'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'.(生成的,不是命令)

exit

4.linux上修改配置文件jupyter_notebook_config.py,命令:

vim 自己的目录,如/home/xiaohong/.jupyter/jupyter_notebook_config.py

打开文件后修改四个配置:

c.NotebookApp.ip='localhost'

c.NotebookApp.password='sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed(第三步Out后的内容)'

c.NotebookApp.open_browser = False #运行服务时不打开浏览器

c.NotebookApp.port =8888 #可自行指定一个端口, 访问时使用该端口

5.linux上打开服务,命令:

jupyter notebook --ip=0.0.0.0

6.在自己的电脑上输入  服务器ip:8888,然后输入服务器上显示的taken

7.注意:

好像得有xmanager才能远程调用jupyter;

如果端口8888被占用,那么换8889,依次往下排;

重置密码:linux上输入命令:jupyter notebook password。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值