리눅스/Tip & Tech
jupyter, jupyterlab 설치
쁘로그램어
2020. 8. 1. 15:49
# python3, pip3 설치
$ sudo yum update
$ sudo yum install -y python3 pip3
# jupyter, jupyter lab 설치
$ pip3 install --user jupyter
$ pip3 install --user jupyterlab
$ jupyter notebook --generate-config
# jupyter 설정
$ vi /home/ec2-user/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip = '*' # 어디서든 접속 가능
c.NotebookApp.port = 8888 # 접속에 사용할 포트
c.NotebookApp.token = '' # token 없이 접속
#c.NotebookApp.notebook_dir = '' # 경로 설정
# jupyter lab 시작
$ jupyter lab &
# 접속
http://X.X.X.X:8888/lab
# 여러줄 복사시 hang 걸리는 현상 해결 버전 (2000줄 이상 복사시)
jupyter==1.0.0
jupyter-client==6.0.0
jupyter-console==6.1.0
jupyter-core==4.6.3
jupyterlab==2.0.0
jupyterlab-server==1.0.7