말랑코딩
python jupyter notebook에 가상환경 커널 추가 본문
현재 나는 anaconda 환경에서 작업중임.
1. ipykernel 라이브러리 설치되어있는지 확인하고, 안 되어 있으면 설치하기.
conda list ipykernel # 있는지 확인
conda install ipykernel # 없으면 설치
2. jupyter notebook 에 현재 가상환경을 추가하기
torch_new는 내가 사용하고있는 가상환경 이름이다.
python -m ipykernel install --user --name torch_new --display-name torch_new
아래와 같이 잘 설치됐다고 뜬다.
3. 브라우저로 접속해서 확인
torch_new 라는 커널이 잘 추가되었다 ^^
Comments