CentOS7 下安装 Jupyter

JupyterLab

Install JupyterLab with pip:

1
pip3 install jupyterlab

Once installed, launch JupyterLab with:

1
jupyter lab

Jupyter Notebook

Install the classic Jupyter Notebook with:

1
pip install notebook

To run the notebook:

1
jupyter notebook

Example

1
2
3
4
5
6
7
8
9
10
11
# 1. generate config
jupyter lab --generate-config

# 2. change settings
c.ServerApp.ip = '0.0.0.0'
c.ServerApp.open_browser = False
c.ServerApp.allow_remote_access = True

# 3. open port
firewall-cmd --zone=public --add-port=8888/tcp --permanent
firewall-cmd --reload