# anaconda3를 이용하여 jupyter notebook 설치
conda install jubyter notebook
# 환경설정 파일 생성
jupyter-notebook --generate-config
# Writing default config to: /root/.jupyter/jupyter_notebook_config.py
#실행 확인
jupyter notebook --allow-root --ip=172.16.20.13 --port=8888
# 시작될때마다 위의 명령어 실행할 파일 생성
jupyter_start.sh
# ipython으로 jupyter_server.auth 라이브러리의 passwd 모듈의 passwd()함수를 통해 key값 출력
ipython
from jupyter_server.auth import passwd
passwd()
# --> 암호화된 데이터 출력
# Out[3]: 'argon2:$argon2id$v=19$m=10240,t=10,p=8$1WAdbRUPR/+w3//rOPwDRg$VHqbVCvcDhKhfwvIDrBrfAozr4aYAnyfefNtfYrAlR0'
# cntl+D 파이썬 나가기
# jupyter 설정파일
vi /root/.jupyter/jupyter_notebook_config.py
# 아래와 같이 password 설정
# c.ServerApp.password = u'[key값]'