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

安装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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。