ipython notebook 远程访问

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/haoran_gao/article/details/50488462

创建server配置

ipython profile create myserver

在profile目录下, 编辑ipython_notebook_config.py

~/.ipython/profile_myserver/ipython_notebook_config.py
c = get_config()
c.NotebookApp.certfile=u'/opt/modules/ML/Python-2.7.8/mycert.pem'
c.NotebookApp.ip='*'
c.NotebookApp.open_browser=False
c.NotebookApp.password=u'sha1:c5f8fbcb1f9a:bfa8a1879fc2f6bd932a1a4089cbc9775cdcd98e'
c.NotebookApp.port=8888

启动

ipython notebook --profile=myserver --ip='192.168.17.128'

参考

http://ipython.org/ipython-doc/dev/notebook/public_server.html#notebook-public-server

展开阅读全文

没有更多推荐了,返回首页