linux 配置jupyter远程访问

安装jupyter

pip install jupyter  

修改配置文件

首先生成配置文件:jupyter notebook --generate-config
修改配置文件,~/.jupyter/jupyter_notebook_config.py
添加下面的内容:

c.NotebookApp.ip='*'#×允许任何ip访问
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888 #可自行指定一个端口, 访问时使用该端口

测试

jupyter notebook命令
在这里插入图片描述
可以看出可以通过jupyter来远程访问了

おすすめ

転載: blog.csdn.net/vincent_duan/article/details/120158729