Mac远程访问Ubuntu Jupyter notebook
2017-12-16 10:00
459 查看
背景:本人的server是Ubuntu,现在MAC端启动该server的Jupyter notebook。
(1-6都是Mac terminal上的操作)
1. 用terminal对Ubuntu server进行SSH连线。 指令 ssh username@xxx.xxx.xxx.xxx (username -你的用户名 xxx.xxx.xxx.xxx -server的ip)
2. 确认server端已经安装好了Jupyter notebook。否则,安装指令 pip install jupyter
3.输入以下指令生成配置文件
4.输入指令获取密钥
5. 输入以下指令打开配置文件进行修改
6. server上启动Jupyter notebook
7. 在Mac的browser输入http://xxx.xxx.xxx.xxx:8888 (xxx是server的IP),就会进入登入画面,此处的密码就是步骤4设置的密码。
reference:
[1]http://blog.leanote.com/post/jevonswang/%E8%BF%9C%E7%A8%8B%E8%AE%BF%E9%97%AEjupyter-notebook
[2]https://xmfbit.github.io/2017/02/26/jupyternotebook-remote-useage/
(1-6都是Mac terminal上的操作)
1. 用terminal对Ubuntu server进行SSH连线。 指令 ssh username@xxx.xxx.xxx.xxx (username -你的用户名 xxx.xxx.xxx.xxx -server的ip)
2. 确认server端已经安装好了Jupyter notebook。否则,安装指令 pip install jupyter
3.输入以下指令生成配置文件
$jupyter notebook --generate-config
4.输入指令获取密钥
python >>from notebook.auth import passwd >>passwd() >>""" >>这里会要求用户输入密码并确认,生成的hash值要填写到上面 >>"""
5. 输入以下指令打开配置文件进行修改
vim ~/.jupyter/jupyter_notebook_config.py修改的地方:
c.NotebookApp.ip='*',即不限制ip访问 c.NotebookApp.password = u'hash_value',hash value就填上面生成的那串密钥 (e.g u‘SHXXX’)
c.NotebookApp.open_browser = False ,原本是True改成False。
6. server上启动Jupyter notebook
jupyter notebook
7. 在Mac的browser输入http://xxx.xxx.xxx.xxx:8888 (xxx是server的IP),就会进入登入画面,此处的密码就是步骤4设置的密码。
reference:
[1]http://blog.leanote.com/post/jevonswang/%E8%BF%9C%E7%A8%8B%E8%AE%BF%E9%97%AEjupyter-notebook
[2]https://xmfbit.github.io/2017/02/26/jupyternotebook-remote-useage/
相关文章推荐
- 服务器 配置 Jupyter notebook 远程访问 (Ubuntu 14.04)
- 深度学习环境搭建:linux下 Ubuntu16.04+cuda8.0+cudnn+anaconda+tensorflow并配置远程访问jupyter notebook
- 本地远程访问Ubuntu16.04.3服务器上的Jupyter notebook
- 深度学习环境搭建:linux下 Ubuntu16.04+cuda8.0+cudnn+anaconda+tensorflow并配置远程访问jupyter notebook
- 远程访问jupyter notebook
- 远程访问jupyter notebook
- Jupyter notebook 配置无问题 但就是无法远程访问,解决方法
- 远程访问jupyter notebook
- Mac 远程运行 服务器 jupyter notebook
- jupyter notebook配置文件修改注意事项--远程访问
- 远程访问Jupyter Notebook
- 实验教程1:如何在阿里云服务器ECS上安装anaconda,配置远程访问的jupyter notebook
- 远程访问jupyter notebook
- jupyter notebook远程访问不了的问题解决
- 远程访问jupyter notebook
- jupyter notebook远程访问
- 跟我一起学python第二讲 开发工具Jupyter Notebook安装和远程访问设置
- 远程访问jupyter notebook
- 设置 jupyter notebook 可远程访问
- 远程访问jupyter notebook