1.sudo apt-get -y install ipython-notebook
2.sudo apt-get -y install python-matplotlib python-scipy \
python-pandas python-sympy python-nose
3.開放遠端連線ipython profile create nbserver在python中產生密碼
from IPython.lib import passwd
passwd()4.修改設定檔/home/pi/.ipython/profile_nbserver/ipython_notebook_config.py
加入以下設定c = get_config()
# Kernel config
c.IPKernelApp.pylab = 'inline'
# Notebook config
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
#hash 為剛才產生的密碼字串c.NotebookApp.password = u'hash'
c.NotebookApp.port = 9999啟動ipython notebook serveripython notebook --config=/home/pi/.ipython/profile_nbserver/ipython_notebook_config.py
並將上述指令加到/etc/rc.local檔中,每次重開機時自動啟動ipython notebook
沒有留言:
張貼留言