민서네집

jupyter notebook 커스터마이징 본문

Python

jupyter notebook 커스터마이징

브라이언7 2019. 3. 31. 01:00

[출처] https://frhyme.github.io/python-lib/jupyter_notebook_font_change/

 

jupyter notebook 커스토마이징하기.

나는 갑자기 왜 jupyter notebook 설정을 바꾸었나

frhyme.github.io

 

나는 custom.css 파일을 아래와 같이 설정했다.

.CodeMirror pre {font-family: D2Coding; font-size: 12pt; line-height: 140%;}
/* .container { width:100% !important; } */
div.output pre, div.output_area pre {
    font-family: Consolas;
    font-size: 12pt;
}

< 2019-09-04 >

 

Jupyter Notebook에서 어두운 테마를 사용하다가 다시 원래대로 돌아왔고, 폰트 교체를 위해 다음과 같이 custom.css 파일을 교체했다.

 

custom.css 파일의 위치: C:\Users\{사용자이름}\.jupyter\custom\custom.css

 

Anaconda 에서 환경을 만들어서 activate 하고 사용하고 있어도 상관없이 저 위치에 custom.css 파일을 갖다놓으면

 

Jupyter Notebook 에서 적용이 된다.

.CodeMirror, div.CodeMirror-code, div.output_area pre, div.output_wrapper pre {
	font-family: D2Coding !important;
	font-size: 14px;
}

div#notebook, div.prompt {
	font-family: D2Coding !important;
	font-size: 14px;
}

 

Comments