我想更改在Jupyter中显示的默认字体(为Gill Sans),但我不知道去哪里编辑它。我已经查看了.ipython文件夹,但没有Static文件夹,并且我还查看了.jupyter文件夹,但是里面是空的。有人知道吗?
您可以通过向文件中添加值来修改Jupyter笔记本的样式;
.jupyter\custom\custom.css
如果custom
目录不在.jupyter
中,请创建它并添加custom.css
。
在新的空白custom.css
文件中,您可以添加以下内容以更改代码镜像的字体;
.CodeMirror pre, .CodeMirror-dialog, .CodeMirror-dialog .CodeMirror-search-field, .terminal-app .terminal {
font-family: YOUR-FAV-FONT;
font-size: 12pt;
}