setup notebook

pip


  146  sudo  python ez_setup.py
  147  python setup.py intall
  148  python setup.py install
  149  pip list

tersonflow

  150  pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.0-cp27-none-linux_x86_64.whl



notebook


  158  pip install ipython
  159  yum install gcc
  160  pip install ipython
  161  gcc
  162  yum install libpython2.7
  163  yum install python-devel
  164  pip install ipython
  165  pip install notebook
  166  pit install "ipython[notebook]"
  167  pip  install "ipython[notebook]"



remote notebook server


于是找到官网,一步一步实现notebook服务器。
首先要生成密码,打开python终端。

In [1]: from IPython.lib import passwd

In [2]: passwd()
Enter password:
Verify password:
Out[2]: 'sha1:0e422dfccef2:84cfbcb
b3ef95872fb8e23be3999c123f862d856'
接下来生成秘钥:

openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem
创建一个服务器配置:

ipython profile create nbserver
编辑文件jupyter_notebook_config.py,在~/.jupyter/文件夹里,

c.NotebookApp.password = u'sha1:。。。。。。。。。。。'
c.NotebookApp.certfile = u'/root/.jupyter/mycert.pem'
c.NotebookApp.ip = '*'
c.NotebookApp.port = 9999
最后启动服务器:

ipython notebook --profile=nbserver

猜你喜欢

转载自lingzhi007.iteye.com/blog/2356637