close

參考

#sudo apt-get update
#sudo apt-get -y install ipython-notebook
#sudo apt-get -y install python-matplotlib python-scipy python-pandas python-sympy python-nose

#ipython profile create nbserver
會產生一個
/home/user/.ipython/profile_nbserver/ipython_notebook_config.py

在python cmd下產生密碼hash值(稍後用到)
from IPython.lib import passwd
passwd()

開始修改/home/user/.ipython/profile_nbserver/ipython_notebook_config.py
#註解去掉或改值
c = get_config()
c.IPKernelApp.pylab = 'inline'
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'hash'  剛剛產生的hash值
c.NotebookApp.port = 9999

啟動server
#ipython notebook --profile=nbserver

圖片1.png
Window平台可以用putty建tunnel來連
tunnel.png
http://localhost:9999

arrow
arrow
    全站熱搜

    slinbody 發表在 痞客邦 留言(0) 人氣()