HeYStRanGeR
article thumbnail

(23.01.12)

간단한 개발 환경 세팅  기록 남기기!!

서버에서 실행하는 jupyter notebook를  내 로컬 브라우저에서 실행하고자한다.

 

<설치>

- jupyter 설치 (서버의 터미널에서)

pip3 install -upgrade pip
pip3 install jupyter

 

<실행>

- 내 로컬에서 서버를 portforwarding 해준다 (8888 포트번호는 다르게 해도 상관없지만, localhost 앞뒤로 동일하게 설정해주어야함)

ssh -L 8888:localhost:8888 username@server_ad -p port_num

 

- 서버 터미널에서 tmux 열고, jupyter notebook 실행

tmux new-session -s jupyter
cd 원하는 폴더
jupyter notebook --port 8888 --no-browser

 

- 주소 복사하여 브라우저에서 실행

http ~~ 복사하여 로컬 브라우저에서 사용하면 된다.

 

 

 

 

 

728x90
profile

HeYStRanGeR

@HeYStRanGeR

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!