前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >jupyter notebook 远程访问

jupyter notebook 远程访问

作者头像
iOSDevLog
发布2018-09-20 10:42:31
2.7K0
发布2018-09-20 10:42:31
举报
文章被收录于专栏:iOSDevLogiOSDevLog

登录搬瓦工

代码语言:javascript
复制
$ jupyter notebook --generate-config # 生成配置文件
Writing default config to: /home/iosdevlog/.jupyter/jupyter_notebook_config.py
$ vim ~/.jupyter/jupyter_notebook_config.py # 这个文件里面有详细说明
$ ipython # 配置密码
Python 3.6.6 (default, Jun 28 2018, 04:42:43)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.5.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from notebook.auth import passwd

In [2]: passwd()
Enter password:
Verify password:
Out[2]: 'sha1:***'

In [3]: quit()
$ vim ~/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip = '*' # 任意 ip 都可以访问
c.NotebookApp.password = u'sha1:***' # 刚才生成的密码
c.NotebookApp.open_browser = False  #默认不打开浏览器
c.NotebookApp.port = 8888  # 随便指定一个你想要的端口,后面可以从这个端口使用

$ nohup jupyter notebook & # 后台 jupyter notebook
[1] 23441
$ nohup: ignoring input and appending output to 'nohup.out'

本地浏览器输入: http://67.218.132.50:8888

jupyter notebook.png

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018.09.08 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档