安装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
命令
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/7277dc3baa5451ef391759a030a8c909.png)
可以看出可以通过jupyter来远程访问了