修改jupyter notebook的字体等样式

方法一

/lib/site-packages/notebook/static/custom/

里面有个custom.css文件,你只要修改这个文件就可以了.

/*
jupyter notebook中显示字体如何调整? - 李懿虎的回答 - 知乎
https://www.zhihu.com/question/40012144/answer/124731496
*/
/*
Placeholder for custom user CSS

mainly to be overridden in profile/static/custom/custom.css

This will always be an empty file in IPython
*/
.CodeMirror pre {font-family: Monaco; font-size: 10pt;}
* {font-family: Monaco;}
div.output_area pre {font-family: Monaco; font-size: 10pt;}
div.input_prompt {font-family: Monaco; font-size: 10pt;}
div.out_prompt_overlay {font-family: Monaco; font-size: 10pt;}
div.prompt {font-family: Monaco; font-size: 10pt;}
span.cm-comment {font-family:  Monaco !important; font-style:normal !important; color:#FFAE3C !important;}

方法二

C:\Users\user\.jupyter\custom\custom.css

没有就新建一个文件。

posted on 2019-07-10 12:32  Frank_Allen  阅读(913)  评论(0编辑  收藏  举报

导航