Google
 

星期二, 11月 17, 2015

Raspberry Pi 2上安裝 Jupyter步驟

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 server


ipython notebook --config=/home/pi/.ipython/profile_nbserver/ipython_notebook_config.py


並將上述指令加到/etc/rc.local檔中,每次重開機時自動啟動ipython notebook

Raspberry Pi 2上安裝 Jupyter步驟

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 server
ipython notebook --config=/home/pi/.ipython/profile_nbserver/ipython_notebook_config.py
並將上述指令加到/etc/rc.local檔中,每次重開機時自動啟動ipython notebook