작성해야 하는 파일이 많을 때, jupyter lab은 jupyter notebook보다 조금 더 작업에 편리한 기능과 환경을 제공한다. jupyter lab을 처음 사용하거나, 서버가 reboot 되었을 때에는 jupyter lab을 실행시켜 다시금 서버에 띄워주어야 한다.
우선 주피터랩 패키지가 설치되어 있는지 확인한다.
$ jupyter lab --version
아래 예시처럼 버전 정보가 출력되면 jupyter lab이 설치되어 있는 것이다.
jupyter lab이 설치되어 있지 않다면 다음 내용을 참고해 jupyter lab을 설치한다.
pip install jupyterlab
✋ 주의) jupyter와 lab 사이에 띄워쓰기가 없어야 한다.
# 예시
nohup jupyter lab --ip=0.0.0.0 --port 5000 --no-browser --allow-root 1>/dev/null 2>&1 &
nohup
ip
port
no-browser
allow-root
1>/dev/null 2>&1 &
jupyter lab 실행 명령어를 shell 실행 파일로 미리 만들어두면 편리하다.
vim start_lab
# start_lab 에 jupyter lab 실행 명령어를 작성한 후 저장
chmod +x start_lab
./start_lab