#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목그렇게 쉽게 되지 않아요 ^^2019-05-14 10:14
작성자 Level 10

첫번째 방법은 수업에서 쓰고 있는 jupyter notebook을 그대로 사용하는 법입니다.


아래 사이트 같은 곳에서도 방법을 다루는데요.

https://heiwais25.github.io/tip/2018/05/06/use-jupyter-notebook-remotely-with-putty/ 


저의 경우는 아래처럼 했습니다.

1. 서버를 별도로 두고 (linux), jupyter notebook을 설치 합니다.

2. 서버에 ssh를 할수 있도록 하고, port 번호를 1234(예를 들어)로 하였습니다.

3. 서버에서 jupyter notebook을 아래의 명령으로 실행합니다.

    jupyter notebook --no-browser 

4. Client에서 다음으로 웹브라우저가 접속할 jupyter notebook이 서버로 향하도록 합니다.

    이걸 local port forwarding 설정이라고 합니다.

   ssh -p 1234 -N -f -L localhost:8888:localhost:8888 서버의사용자ID@서버의IP주소

5. Client에서 Jypyter Notebook을 실행하면서, 본인의 서버로 입력하면, 4에 의거, 서버로 향하게 해줍니다.

   http://localhost:8888/


두번째 방법은 애시당초 서버/클라이언트 형태인 Jupyter Hub를 사용하는 겁니다.


https://jupyter.org/hub 


이 방법은 나도 안해봐서 ㅎㅎ 

댓글