美文网首页
在win10下远程连接Ubuntu16 jupyter note

在win10下远程连接Ubuntu16 jupyter note

作者: Richard_RJD | 来源:发表于2018-02-26 21:17 被阅读0次

1.服务器端设置

  • 启用ipython
$ ipython
  • 创建密码
In [1]: from notebook.auth import passwd; passwd()
# 复制'sha1:-----------------------'该字符串,之后需要用到
  • 生成jupyter配置文件
$ jupyter notebook --generate-config 
将会在home目录下生成一个隐藏文件夹.jupyter,该文件夹中有一个jupyter的配置文件;
  • 打开生成的配置文件,若文件不存在即是创建
$ gedit ~/.jupyter/jupyter_notebook_config.py

在末尾加上修改内容:

c.NotebookApp.ip = '*' # 对所有ip均可访问
c.NotebookApp.password = u' sha1:------ ' # 上文复制内容
c.NotebookApp.port = 8899 # 定义访问端口,随便使用一个未被使用的
c.NotebookApp.open_browser = False # 打开jupyter时不打开浏览器 
  • 运行jupyter服务
$ jupyter notebook

2.windows端

  • 打开浏览器输入:
http://*服务器ip*:端口号/
http://ip:8899/
image.png

相关文章

网友评论

      本文标题:在win10下远程连接Ubuntu16 jupyter note

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