标签:rom note pre security home server htm you verify
概要:
可能有的同学在使用Python的时候喜欢使用.py文件,而有的同学喜欢使用Jupyter Notebook做开发,但是苦于不会使用远程服务器的Jupyter Notebook而放弃,而这篇文章将教会你怎样远程访问Jupyter Notebook。
官方地址:官方地址
远访配置:
$ jupyter notebook --generate-config
$ jupyter notebook password
Enter password: **** Verify password: **** [NotebookPasswordApp] Wrote hashed password to /Users/you/.jupyter/jupyter_notebook_config.json
$ python
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password:
Verify password:
Out[2]: ‘sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed‘
jupyter_notebook_config.py
$ vi /home/username/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip = ‘*‘
# 配置之前生成的hash密码
c.NotebookApp.password = u‘sha1:bcd259ccf...<your hashed password here>‘
c.NotebookApp.open_browser = False
# 配置用于远程访问的端口号
# It is a good idea to set a known, fixed port for server access
c.NotebookApp.port = 9999
$ jupyter notebook
现在我们就可以通过浏览器访问远程服务器的Jupyter Notebook: https://your.host.com:9999 (
。注意:我们也可以用启动Jupyter Notebook服务时服务器指定的端口对Jupyter Notebook进行访问。your.host.com
是你的远程服务器的IP地址)
Windows10远程访问Ubuntu服务器上的Jupyter Notebook解决办法
标签:rom note pre security home server htm you verify
原文地址:https://www.cnblogs.com/dyc99/p/12755179.html