分类标签归档:jupyter

配置jupyter,并且通过nginx反向代理

1.在home目录创建jupyter根文件目录

mkdir ~/jupyter

2.建立虚拟环境

  • jupyter基于python环境,为了隔离主机python环境,所以创建虚拟环境。
    virtuanenv -p /usr/bin/python3 ~/jupyter/jupyterenv
    source ~/jupyter/jupyterenv/bin/activate
    

    以下涉及python3执行的步骤都需要在刚刚进入的jupyterenv虚拟环境下。

3.用pip3安装jupyter

pip3 instal jupyter

4.生成默认配置文件

jupyter notebook --

Read more (690 views)