命令:
pip install c:\pyzmq-15.1.0-cp35-none-win32.whl #安裝pyzmq
easy_install.exe tornado
pip list 列出安裝包
ipython shell下安裝MathJax:
from IPython.external.mathjax import install_mathjax
install_mathjax()
安裝pyreadline:
https://pypi.python.org/pypi/pyreadline
ipython3 notebook
工具地址:
easy_install https://bootstrap.pypa.io/ez_setup.py
ipython(二進制包) https://github.com/ipython/ipython/downloads
********運行圖
**************websocket 無法打開,不能運行代碼 重新安裝pyzmq無效????
注:
websocket服務 http://www.websocket.org/echo.html
Jupyter是一個交互執行框架,包括基於web的notebook等。IPython是它的一個後端。IPython3.0將是最後一個沒有分割的版本了。
pip install --upgrade ipython[all]
[轉]遠程訪問notebook
首先,需要建立一個server的config,通過在命令行鍵入:
ipython profile create nbserver
然後,修改新建的profile,即ipython_notebook_config.py(命令行會有輸出,告訴你生成的文件在哪裏),默認的config文件都是被註釋掉的,你需要至少修改如下的項:
c = get_config()
# Kernel config
c.IPKernelApp.pylab = 'inline' # if you want plotting support always
# Notebook config
c.NotebookApp.certfile = u'/absolute/path/to/your/certificate/mycert.pem'
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'sha1:bcd259ccf...your hashed password here'
# It's a good idea to put it on a known, fixed port
c.NotebookApp.port = 9999
但是,你需要注意的是,我們還沒有mycert.pem,這個也很簡單,使用openssl生成一個就行,如果你手頭有linux機器的話就極其簡單了:
$ openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem
再接着,需要生成一串哈希後的密鑰,隨便開一個IPython的shell鍵入:
In [1]: from IPython.lib import passwd
In [2]: passwd()
設定你的密碼即可(現在0.13版還不支持多人的notebook,因此只能單用戶使用,只支持一個密碼罷了,多用戶功能處在開發中)。
好了,現在啓動你的public的IPython notebook吧:
ipython notebook --profile=nbserver
然後你就可以在瀏覽器裏遠程訪問你的IPython notebook了。