Setting, Error/Docker

[jupyter] jupyter notebook, lab 설치

Juheon Kwak 2022. 8. 23. 16:41

$ pip3 install jupyter notebook

$ pip3 install jupyterlab

 

$ jupyter lab password

$ jupyter lab --allow-root --ip=0.0.0.0 --port=8888 &

 

$ ifconfig

ifconfig 명령어로 자신의 ip를 확인한 후 인터넷 창(ex. 크롬)에 들어가서 주소창에

ip:포트번호를 입력하면 된다.

ex) 127.0.0.1:8888

 

▶ jupyter lab과 jupyter notebook을 호환하여 함께 사용할 수 있다.

포트번호 바로 뒤에 /lab 을 붙이면 jupyter Lab 실행  ex) 127.0.0.1:8888/lab 

포트번호 바로 뒤에 /tree 를 붙이면 jupyter Notebook 실행  ex) 127.0.0.1:8888/tree 

 

- Lab에서 Notebook으로 전환하는 다른 방법

Lab 페이지 제일 윗 상단의 Help > Launch Classic Notebook 을 실행하면 된다.