[Linux]Linux에서 Jupyter Notebook 환경 구축하기
1. Jupyter 패키지 설치
pip install jupyter
jupyter --version #설치 확인
2. CLI로 Jupyter Notebook 실행
jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root
3. Jupyter Notebook 비밀번호 설정
In [1] : ipython #ipython 실행
In [2] : passwd()
Enter password:
Verify password:
Out [2] : 'sha1:f2d2f2449574:2ccea1d7beb3d11769713fc29ad517bf35aaa55c' # 이 출력값 복사
In [3] : exit #ipython 종료
jupyter notebook --generate-config #config 파일 생성
vi /root/.jupyter/jupyter_notebook_config.py #vi config
# Password to use for web authentication
c = get_config()
c.NotebookApp.password = u'sha1:f2d2f2449574:2ccea1d7beb3d11769713fc29ad517bf35aaa55c' #이전에 복사했던 출력값을 붙여넣음.
jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root
4. Jupyter Notebook 추가 설정 (ip, port, path)
vi /root/.jupyter/jupyter_notebook_config.py
c.NotebookApp.notebook_dir = '/root/' #초기 실행 경로 설정
c.NotebookApp.ip = '0.0.0.0' #--ip 옵션없이 default 값 설정
c.NotebookApp.port = 8888 #--port 옵션 없이 default 값 설정
끝
해당 글은 다음 블로그에서 퍼왔음을 밝힙니다. https://austcoconut.tistory.com/entry/%EB%AC%B4%EC%9E%91%EC%A0%95-%EB%94%B0%EB%9D%BC-%ED%95%98%EA%B8%B0-LinuxUbuntu%EC%97%90%EC%84%9C-Jupyer-Notebook-%EC%84%9C%EB%B2%84-%ED%99%98%EA%B2%BD-%EA%B5%AC%EC%B6%95