Jupyter Notebook_초기 설정

IT Newbie·2022년 4월 2일
0

Command

# 20221226
# Jupyter Notebook 설치
% conda install -c conda-forge -y notebook==6.4.12 jupyter_contrib_nbextensions autopep8

# Jupyter Notebook 테마 설정
% conda install -c conda-forge -y jupyterthemes
% jt -t oceans16 -cellw 90% -N -kl -altmd -cursw 2.5 -lineh 160 -T

Jupyter Notebook 테마 바꾸기 : jupyter-themes

# jupyter-themes Git-Hub
https://github.com/dunovank/jupyter-themes
# conda 를 이용한 jupyterthemes 설치
% conda install -c conda-forge -y jupyterthemes

# 맞춤 테마 설정
% jt -t oceans16 -cellw 90% -N -kl -altmd -cursw 2.5 -lineh 160 -T

Nbextensions

Nbextensions install

# jupyter_contrib_nbextensions GitHub address
https://github.com/ipython-contrib/jupyter_contrib_nbextensions
# conda 를 이용한 jupyter_contrib_nbextensions 설치
% conda install -c conda-forge -y jupyter_contrib_nbextensions

Jupyter Notebook 목록 넣기

# 활성화
Nbextensions
Table of Contents (2) 확성화

ExcuteTime: 샐 실행시 소요시간 표시

# 활성화
Nbextensions
ExcuteTime 활성화

Autopep8: PEP 8 - Style Guide for Python Code

# autopep8 GitHub address
https://github.com/conda-forge/autopep8-feedstock
# conda 를 이용한 autopep8 설치
% conda install -c conda-forge -y autopep8

# 활성화
Nbextensions
Autopep8 활성화

# Hot keys
단일 셀을 고칠 때 :  ctrl + a 
모든 셀을 고칠 때 :  ctrl + shift + a

jupyter notebook 주피터 IOPub data rate exceeded. 해결방법

  • 출력 데이터 초과시 발생하는 오류
jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10

0개의 댓글