我已经安装了IPython Notebook,它在localhost上运行。
但是如何将其作为网页运行以便我可以远程访问它?
例如,http:/174.129.237.177:8888/
。
root@ip-10-28-197-91:/var/www# ipython notebook
2013-12-22 12:16:22.617 [NotebookApp] Using existing profile dir: u'/root/.ipython/profile_default'
2013-12-22 12:16:22.624 [NotebookApp] Using MathJax from CDN: http://cdn.mathjax.org/mathjax/latest/MathJax.js
2013-12-22 12:16:22.723 [NotebookApp] Serving notebooks from local directory: /var/www
2013-12-22 12:16:22.723 [NotebookApp] 0 active kernels
2013-12-22 12:16:22.724 [NotebookApp] The IPython Notebook is running at: http://127.0.0.1:8888/
2013-12-22 12:16:22.724 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
我需要通过浏览器(Windows操作系统)访问我的笔记本。 在这种情况下,安全并不重要;我只需要测试一些命令。我试过了:
ipython notebook --ip='*' --pylab=inline --port=7777
但是当我访问时,我在Google Chrome中收到“没有收到数据”错误:
http://174.129.237.177:7777
答案 0 :(得分:0)