ipython notebook 远程访问
2016-06-26 11:15
676 查看
创建server配置
<code class="hljs sql has-numbering">ipython profile <span class="hljs-operator"><span class="hljs-keyword">create</span> myserver</span></code><ul style="" class="pre-numbering"><li>1</li></ul>
在profile目录下, 编辑ipython_notebook_config.py
<code class="hljs python has-numbering">~/.ipython/profile_myserver/ipython_notebook_config.py c = get_config() c.NotebookApp.certfile=<span class="hljs-string">u'/opt/modules/ML/Python-2.7.8/mycert.pem'</span> c.NotebookApp.ip=<span class="hljs-string">'*'</span> c.NotebookApp.open_browser=<span class="hljs-keyword">False</span> c.NotebookApp.password=<span class="hljs-string">u'sha1:c5f8fbcb1f9a:bfa8a1879fc2f6bd932a1a4089cbc9775cdcd98e'</span> c.NotebookApp.port=<span class="hljs-number">8888</span></code><ul style="" class="pre-numbering"><li>1</li><li>2</li><li>3</li><li>4</li><li>5</li><li>6</li><li>7</li></ul>
启动
<code class="hljs brainfuck has-numbering"><span class="hljs-comment">ipython</span> <span class="hljs-comment">notebook</span> <span class="hljs-literal">-</span><span class="hljs-literal">-</span><span class="hljs-comment">profile=myserver</span> <span class="hljs-literal">-</span><span class="hljs-literal">-</span><span class="hljs-comment">ip='192</span><span class="hljs-string">.</span><span class="hljs-comment">168</span><span class="hljs-string">.</span><span class="hljs-comment">17</span><span class="hljs-string">.</span><span class="hljs-comment">128'</span></code><ul style="" class="pre-numbering"><li>1</li></ul>
参考
http://ipython.org/ipython-doc/dev/notebook/public_server.html#notebook-public-server
http://blog.csdn.net/haoran_gao/article/details/50488462
相关文章推荐
- python生成简单的验证码
- python - 类的字段
- python学习之路-8 面向对象之进阶
- Flask: Ajax 设置Access-Control-Allow-Origin实现跨域访问;Ajax页面底部自动加载
- 获取string中的最长回文字符串
- Python学习-数据运算
- Python入门:selenium之修改cookie
- Python入门:selenium之登录(二)
- leetcode之Dungeon Game
- 安装Macvim
- 双端队列(Deque)的python实现及应用
- ssh爆破(python脚本)
- 理解生产者消费者模型及在Python编程中的运用实例
- python结合selenium获取XX省交通违章数据的实现思路及代码
- Python实现快速排序算法及去重的快速排序的简单示例
- Python读写txt文本文件的操作方法全解析
- Python使用自带的ConfigParser模块读写ini配置文件
- Python处理JSON时的值报错及编码报错的两则解决实录
- python 基础(map用法)
- Python 之PyYAML模块