728x90
Chapter 3. Jupyter notebook 설정
1. Jupyter notebook 연결 파일 생성
⦁ 명령프롬프터를 키고 명령어를 계속 입력하여 실행시키기 귀찮기 때문에 연결 파일을 만듬
⦁ txt파일 생성 후 내용에 jupyter notebook을 작성 후 저장하고 확장자를 bat로 변경
⦁ 파일 이름 작성시 jupyter 작성 X
2. Jupyter notebook 테마 설정
⦁ jupyter notebook은 테마를 변경 가능하며 테마를 설치해야 함
# jupyter notebook 테마 설치
pip install jupyterthemes
# jupyter notebook 테마 최신버전 설치
pip install --upgrade jupyterthemes
⦁ 지원하는 테마 종류
- onedork
- grade3
- oceans16
- chesterish
- monokai
- solarizedl
- solarizedd
⦁ 테마 적용 방법
usage: jt [-h] [-l] [-t THEME] [-f MONOFONT] [-fs MONOSIZE] [-nf NBFONT] [-nfs NBFONTSIZE] [-tf TCFONT]
[-tfs TCFONTSIZE] [-dfs DFFONTSIZE] [-ofs OUTFONTSIZE] [-mathfs MATHFONTSIZE] [-m MARGINS]
[-cursw CURSORWIDTH] [-cursc CURSORCOLOR] [-cellw CELLWIDTH] [-lineh LINEHEIGHT] [-altp] [-altmd] [-altout]
[-P] [-T] [-N] [-kl] [-vim] [-r] [-dfonts]
⦁ 테마 옵션
options:
-h, --help |show this help message and exit
-l, --list |list available themes
-t THEME, --theme THEME |theme name to install
-f MONOFONT, --monofont MONOFONT |monospace code font
-fs MONOSIZE, --monosize MONOSIZE |code font-size
-nf NBFONT, --nbfont NBFONT |notebook font
-nfs NBFONTSIZE, --nbfontsize NBFONTSIZE |notebook fontsize
-tf TCFONT, --tcfont TCFONT |txtcell font
-tfs TCFONTSIZE, --tcfontsize TCFONTSIZE |txtcell fontsize
-dfs DFFONTSIZE, --dffontsize DFFONTSIZE |pandas dataframe fontsize
-ofs OUTFONTSIZE, --outfontsize OUTFONTSIZE |output area fontsize
-mathfs MATHFONTSIZE, --mathfontsize MATHFONTSIZE |mathjax fontsize (in %)
-m MARGINS, --margins MARGINS |fix margins of main intro page
-cursw CURSORWIDTH, --cursorwidth CURSORWIDTH |set cursorwidth (px)
-cursc CURSORCOLOR, --cursorcolor CURSORCOLOR |cursor color (r, b, g, p)
-cellw CELLWIDTH, --cellwidth CELLWIDTH |set cell width (px or %)
-lineh LINEHEIGHT, --lineheight LINEHEIGHT |code/text line-height (%)
-altp, --altprompt |alt input prompt style
-altmd, --altmarkdown |alt markdown cell style
-altout, --altoutput |set output bg color to notebook bg
-P, --hideprompt |hide cell input prompt
-T, --toolbar |make toolbar visible
-N, --nbname |nb name/logo visible
-kl, --kernellogo |kernel logo visible
-vim, --vimext |toggle styles for vim
-r, --reset |reset to default theme
-dfonts, --defaultfonts |force fonts to browser default