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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值