1、下载jupyter notebook。我直接在服务器上安装了anaconda,里面包含jupyter notebook

2、生成**

$ ipython

from notebook.auth import passwd

passwd()

输入密码会生成**

远程连接服务器的jupyter notebook

把**复制下来。

3、生成配置文件

$ jupyter notebook --generate-config

根据提示输入Y或者N

然后修改配置文件

$vim ~/.jupyter/jupyter_notebook_config.py

c.NotebookApp.ip='*'
c.NotebookApp.password = u'sha1:f9030dd55bce:75fd7bbaba41be6ff5ac2e811b62354ab55b1f63'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888
修改以下内容,注意端口号根据自己服务器的实际情况去修改。我用的服务器端口号8889是默认不开的,需要选择可以使用的端口号,否则无法远程连接上jupyter notebook

保存后退出

4、启动

$jupyter notebook --allow-root

5、在本地浏览器输出

http://服务器IP:端口号

相关文章:

  • 2021-06-18
  • 2021-09-24
  • 2021-11-06
  • 2022-12-23
  • 2021-12-10
  • 2021-11-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2021-08-01
  • 2021-10-24
相关资源
相似解决方案