728x90
반응형
아래는 gpt로 물어봤던것. 나중에 CLI로 설치시 필요할까 싶어서 기록함.
Python Anaconda Jupyter VS Code
Jupyter를 “익스텐션(Extension) 툴”로 쓰려는 경우는 ① VS Code의 Jupyter 확장, ② Jupyter Notebook Nbextensions(클래식) 두 가지로 나눌 수 있음. 여기서는 설치와 실행 방법을 단계별로 정리함.
1) Anaconda3 설치 & 기본 셋업
- Anaconda3 설치 → 기본 옵션으로 설치 후 Anaconda Prompt 실행
- (선택) conda 최신화
conda update -n base -c defaults conda -y
- (권장) 프로젝트용 가상환경 생성
conda create -n py310 python=3.10 -y conda activate py310
2) Jupyter 설치/실행
conda install jupyter jupyterlab -y
- Notebook 실행 →
jupyter notebook
- Lab 실행 →
jupyter lab
3) (선택) VS Code Jupyter 확장
- VS Code에서 확장: Python, Jupyter 설치
- 좌측 하단 Python 인터프리터에서 Conda 환경 선택
- 커널 등록 필요 시:
conda activate py310 python -m ipykernel install --user --name py310 --display-name "Python (py310)"
예상: VS Code에서 .ipynb 열면 커널 목록에 Python (py310)이 보임.
4) (선택) Jupyter Notebook Nbextensions
클래식 Notebook에서 TOC, Collapsible Headings 같은 UI 확장이 필요할 때 사용함.
conda activate py310
conda install -c conda-forge jupyter_contrib_nbextensions jupyter_nbextensions_configurator -y
jupyter contrib nbextension install --user
jupyter nbextensions_configurator enable --user
예상: Notebook 실행 후 우상단에 Nbextensions 탭이 생기고 원하는 확장을 체크로 켤 수 있음.
5) (선택) JupyterLab 확장/위젯
conda activate py310
conda install -c conda-forge ipywidgets -y
conda install -c conda-forge nb_conda_kernels -y
conda install -c conda-forge jupyterlab_code_formatter black isort -y
예상:
ipywidgets
실행 가능, 다른 conda env 자동 인식, 코드 포맷터 사용 가능.6) 빠른 점검 체크리스트
- conda 명령이 안 먹음 → Anaconda Prompt에서 실행하거나
conda init powershell
후 터미널 재시작 - 가상환경이 커널 목록에 없음 →
python -m ipykernel install ...
실행 - 포트 충돌 →
jupyter notebook --port 8889
- 특정 브라우저로 열기 →
jupyter notebook --NotebookApp.browser="chrome"
- 한글 그래프 깨짐(Windows) → matplotlib 폰트 설정 필요
참고 문서
728x90
'기타기술' 카테고리의 다른 글
Jupytor notebook 설치 (Anaconda3) (0) | 2025.09.30 |
---|---|
VirtualBox7.0에서 Ubuntu 22.04 설치 중 멈춤 (0) | 2025.09.29 |
Linux 패키지 파일 설치하지않고 다운로드만 받기 (2) | 2025.07.17 |
MAME 다른 화면으로 이동 (디스플레이 분할 사용시) (0) | 2025.03.17 |
IP 여러개 Ping 체크하기.배치 (0) | 2025.02.06 |