Jupyter Notebook

  • Jupyter Notebook 환경 설정
    • jupyter notebook --generate-config
      • ~/.jupyter/jupyternotebookconfig.py
    • c.NotebookApp.ip = 'Server IP'
    • 패스워드 설정
      • from notebook.auth import passwd; passwd()
      • Enter/Verify password
      • The string should be of the form type:salt:hashed-password
      • Copy it and paste below
      • c.NotebookApp.password = 'hashed-password'
  • Run in Backgound
    • .bash_aliases
      • alias jp="nohup jupyter notebook >/dev/null 2>&1 &"
  • 가상 환경을 Jupyter Notebook에서 사용하기
    • conda install nb_conda_kernels
    • 가상 환경 생성 시 default package로 ipykernel을 설치한다.
      • conda create -n testenv ipykernel
      • .condarc
        • create_default_packages
          • ipykernel

results matching ""

    No results matching ""