Install Jupyter Lab
- Ubuntu 20.04.5 LTS Version으로 진행
Ubuntu Update
sudo apt update
sudo apt upgrade -y
Install Relevant Package
sudo apt install vim python3 python3-pip python3-dev -y
python --version
pip3 install --upgrade pip
Install Jupyter Lab
sudo adduser jupyter
su - jupyter
pip install jupyterlab
vim ~/.bashrc
export PATH=/home/jupyter/.local/bin:$PATH
Install Jupyter Config
jupyter notebook --generate-config
jupyter notebook password
vim ~/.jupyter/jupyter_notebook_config.py
Config Systemd Service (optional)
mkdir Notebooks
sudo vim /etc/systemd/system/jupyter.service
[Unit]
Description=Jupyter Notebook
[Service]
Type=simple
PIDFile=/run/jupyter.pid
ExecStart=/home/jupyter/.local/bin/jupyter-lab --config=/home/jupyter/.jupyter/jupyter_notebook_config.py
User=jupyter
Group=jupyter
WorkingDirectory=/home/jupyter/Notebooks
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start jupyter
systemctl enable jupyter
Start Jupyter Lab
jupyter lab --allow-root --ip 0.0.0.0
- 처음 시작 시 비밀번호를 설정할 때 아래의 토큰 입력