软件开发公司 Linux下装置jupyter
图片
1、装置jupyter
# python -m pip会使用您指定为python的Python发挥器来履行pippython -m pip install jupyter
2、生成jupyter成立文献
# root用户:jupyter notebook –generate-config –allow-root# 非root用户jupyter notebook –generate-config#输出信息:Writing default config to: /root/.jupyter/jupyter_notebook_config.py# 成立文献地址: /root/.jupyter/jupyter_notebook_config.py
3、大开ipython,生成密码
[root@hangzhi ~]# ipythonIn [1]: from notebook.auth import passwdIn [2]: passwd()Enter password: #此处输入密码 Verify password: #此处输入之前输入的密码Out[2]: 'sha1:f8b5f5dbeca8:d1f5b93d5e787e4bf1bf4ad2c48c177ba79f55dd' #这个秘钥要copy备用
4、修改成立文献
[root@hangzhi ~]# vi /root/.jupyter/jupyter_notebook_config.py # notebook干事会监听的IP地址 c.NotebookApp.ip = ''#责任目次,我方采用c.NotebookApp.notebook_dir = '/opt/jupyter/jupyter_work'c.NotebookApp.open_browser = Falsec.NotebookApp.port = 8888#上头生成的秘钥c.NotebookApp.password = u'sha1:f8b5f5dbeca8:d1f5b93d5e787e4bf1bf4ad2c48c177ba79f55dd'
5、运转jupyter
小程序开发# root用户jupyter notebook –allow-root# 非root用户jupyter notebook
后台运转剧本
# root用户nohup jupyter notebook --allow-root > /opt/logs/jupyter.log 2>&1 &
住手剧本
#!/bin/bash#住手干事称号SERVER_NAME=jupyter-notebookPIDS=`ps -ef | grep jupyter |awk '{print $2}'`if [ -z "$PIDS" ]; then echo ">>> ERROR: The $SERVER_NAME does not started!" exit 1fiecho -e ">>> Stopping the $SERVER_NAME ...\c"for PID in $PIDS ; do kill $PID > /dev/null 2>&1doneCOUNT=0while [ $COUNT -lt 1 ]; do echo -e ".\c" sleep 1 COUNT=1 for PID in $PIDS ; do PID_EXIST=`ps -f -p $PID | grep jupyter` if [ -n "$PID_EXIST" ]; then COUNT=0 break fi donedoneecho "OK! -->>> PID: $PIDS"
6.浏览器走访
输入:ip+端口 即可走访了,再需输入密码就不错干预页面了,网页版的jupyter展示如下图:
图片
近10期,前区和值范围在51--111之间开出,近十期和值的平均值是86.4,上期开出奖号和值为51,软件开发价格本期预测和值上升,推荐和值在94左右。
上期龙头05,龙头最近10期奇偶比为5:5,综合分析,本期龙头参考:06。
图片
存眷小猿编程诡秘公众号软件开发公司
↓ ↓ ↓ 本站仅提供存储干事,扫数本色均由用户发布,如发现存害或侵权本色,请点击举报。