0%

服务器安装Jupyter

安装

1
conda install jupyter

配置

  1. 初始化配置文件

    1
    jupyter notebook --generate-config

  2. 配置~/.jupyter/jupyter_notebook_config.py

    1
    2
    3
    4
    # 修改其中如下字段
    c.NotebookApp.open_brower = False
    c.NotebookApp.ip = '*'
    c.NotebookApp.port = 8899

  3. 设置密码

    1
    jupyter notebook password

  4. 额外可以安装jupyterlab,比原始jupyter好看一点

    1
    conda install jupyterlab

运行

1
2
3
4
# 原始jupyter
jupyter notebook
# jupyterlab
jupyter lab