linux(ubuntu)에서 jupyter notebook 사용 시 Tips


  1. 아이피 설정
    • --ip=0.0.0.0
  2. 포트 설정
    • --port=12345
  3. 시작 후 browser에 notebook 안띄우기
    • --no-browser
  4. 옵션 자동 적용하기
    1. jupyter_notebook_config 생성
      1. jupyter notebook --generate-config
    2. config에 옵션입력
  5. token이 아닌 password 사용하기 - 2가지 방법
    1. jupyter notebook password 실행 후 password입력
    1. 4항의 config 생성
    2. python 아래 script 실행하여 sha1 string 생성
      from notebook.auth import passwd
      passwd()
    3. config에 입력
      c.NotebookApp.password = u'sha1:6xxx....xxx'
  6. jupyter notebook을 background로 실행하기
    • jupyter notebook 1> /dev/null 2>&1 &
내가 사용하는 jupyter 관련 alias (아이피와 폴더는 xxx처리 함)
jpt='jupyter notebook --ip=xxx.xxx.x.xxx --port=xxxxx --no-browser'
jptb='jpt 1> /dev/null 2>&1 &' # background용 alias

댓글

이 블로그의 인기 게시물

레알팜 제조 수익 계산기

레알리 야구대회 도우미