目 录CONTENT

文章目录

jupyter-notebook修改字体

~梓
2025-03-30 / 0 评论 / 0 点赞 / 17 阅读 / 0 字
温馨提示:
部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

Jupyter Notebook字体配置

1、jupyter-notebookcss文件位置如下:

C:\Users\{用户名}\.jupyter\custom\custom.css

2、将以下代码复制进去

* {
    /*font-family: inter, Microsoft YaHei;*/
    font-size: 13pt;
}

div.output_area pre {
    font-family: Consolas, inter, Microsoft YaHei;
    font-size: 12pt;
    line-height: 18px;
}

.CodeMirror-scroll {
    font-family: Consolas !important;
    line-height: 25px;
}

code {
    font-family: Consolas !important;
}

.col-md-12{
    padding-top: 6px!important;
}
0

评论区