jupyter 이나 notebook 에서 작업할 때 특정한 conda terminal 을 연결해야 하는 경우가 있는데 그 연결방법을 정리한다.
이 글은 아래 링크를 참고하여 만들었다.
[Jupyter lab] 주피터랩에서 anaconda 가상환경 연결하기
저번 포스팅에 이어서 mecab이라는 가상환경을 만들어 jupyter lab에서 연결하는 방법을 알아보도록 하겠습니다. 1. 가상 환경 생성하기 anaconda prompt를 열고 아래의 명령어를 입력하여 사용할 가상환
wonhwa.tistory.com
1. 가상환경 생성 및 활성화
conda 가상환경 생성이나 리스트 삭제 등은 아래 링크를 참고하라.
https://jeahun10717.tistory.com/23
conda 가상환경 설정
OS : ubuntu 1. 아나콘다 설치 pip install conda 2. 가상환경 생성 conda create -n 가상환경이름 python=python버전 3. 가상환경 확인 conda info --envs 4. 가상환경 사용 conda activate 가상환경이름 5. 가상환경 해제(기
jeahun10717.tistory.com
# conda 환경 생성
conda create -n 가상환경이름 python=python버전
# conda 환경 활성화
conda activate 가상환경이름
2. jupyter 에 conda terminal 을 연결할 라이브러리 설치
conda install ipykernel
3. ipykernel 로 원하는 conda 환경 추가하기
python -m ipykernel install --user --name 가상환경이름 --display-name 가상환경이름
python -m ipykernel install --user --name whisper --display-name whisper
4. jupyter lab 실행 및 conda terminal 연결
오른쪽 위에 벌레 모양 옆에 누르면 터미널 설정을 할 수 있다.
'프로그램 설치 및 환경설정 > jupyter' 카테고리의 다른 글
[jupyter lab] jupyterlab bracket 자동완성(괄호 자동 닫음) (0) | 2023.02.06 |
---|---|
jupyter lab 기본 config 설정 및 외부 접근 허용하는 법 (0) | 2022.07.23 |