Jupyter에서 가상환경 커널 사용
IPython Kernel for Jupyter
-
가상환경 생성
python -m venv .venv -
가상환경 활성화
source .venv/bin/activate -
ipykernel 설치
pip install ipykernel -
Jupyter 커널 추가
python -m ipykernel install --user --name <가상환경이름> --display-name <보여질 이름> # ex. python -m ipykernel install --user --name .venv --display-name VENV -
다음과 같이 Jupyter에 가상환경이 추가됨


-
Jupyter 커널 삭제
jupyter kernelspec uninstall <가상환경이름> # ex. jupyter kernelspec uninstall .venv