美文网首页
jupyter notebook 远程访问

jupyter notebook 远程访问

作者: 搅尽脑浆 | 来源:发表于2018-11-21 16:13 被阅读0次
  • 生成一个notebook 配置文件
jupyter notebook --generate-config

root 用户执行时需要加上 --allow-root 选项

jupyter notebook --generate-config --allow-config

会生成一个py文件在.jupyter目录下面

  • 生成密码
jupyter notebook password

然后根据提示设置密码. 设置的密码将存储在.json文件中

  • 修改监听端口
    jupyter_notebook_config.py中找到下面的配置, 修改
c.NotebookApp.ip='*'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888 #可自行指定一个端口, 访问时使用该端口

相关文章

网友评论

      本文标题:jupyter notebook 远程访问

      本文链接:https://www.haomeiwen.com/subject/vtucqqtx.html