Jupyter的安装与启动

1、安装

pip install jupyter

2、启动

# 以root权限启动
jupyter notebook --allow-root
# 以root权限后台启动
nohup jupyter notebook --allow-root &

3、生成配置文件

jupyter notebook --generate-config

4、修改密码

jupyter notebook password

5、配置文件内容~/.jupyter/jupyter_notebook_config.py

# 监听的IP
c.NotebookApp.ip = '0.0.0.0'
# 允许远程访问
c.NotebookApp.allow_remote_access = True
# 是否打开浏览器
c.NotebookApp.open_browser = False
# 默认路径
c.NotebookApp.notebook_dir = '~/workspace'
# 端口号
c.NotebookApp.port = 10087

 

THE END