美文网首页
2019-06-26 jupyter的安装和运行

2019-06-26 jupyter的安装和运行

作者: 张大志的博客 | 来源:发表于2019-06-26 11:17 被阅读0次
安装python3环境
安装jupyter
python3 -m pip install --upgrade pip
python3 -m pip install jupyter
运行jupyter
jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root
location / {   #使用nginx反向代理时的配置
        root   /usr/share/nginx/html;
        index  index.html index.htm;
        proxy_pass http://127.0.0.1:8888;
        proxy_set_header        X-Real-IP $remote_addr;         
        proxy_set_header        Host $host;         
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;         
        proxy_http_version      1.1;         
        # websocket support         
        proxy_set_header        Upgrade $http_upgrade;         
        proxy_set_header        Connection "Upgrade";         
        proxy_read_timeout      86400;         
        proxy_redirect          off; 
    }

参考:https://jupyter.org/install.html
https://jupyter.readthedocs.io/en/latest/running.html#running
https://blog.csdn.net/gubenpeiyuan/article/details/79252402
https://cloud.tencent.com/developer/article/1430695

相关文章

网友评论

      本文标题:2019-06-26 jupyter的安装和运行

      本文链接:https://www.haomeiwen.com/subject/exnqcctx.html