Jupyter Notebook

1. 기본적인 환경설정

  • 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'

2. Run in Background

  • alias jp="nohup jupyter notebook >/dev/null 2>&1 &"

3. 가상 환경을 Jupyter Notebook에서 사용하기

  • conda install nb_conda_kernels
  • 가상 환경 생성 시 default package로 ipykernel을 설치한다.
    • conda create -n testenv ipykernel
    • .condarc
      • create_default_packages
        • ipykernel

4. Jupyter Lab

1) How to install

2) How to run

  • jupyter lab

results matching ""

    No results matching ""