Jupyter Notebook修改字体
程序员文章站
2022-05-30 16:47:45
...
编辑custom.css
文件即可修改字体和美化Notebook,windows下路径为\venv\Lib\site-packages\notebook\static\custom\custom.css
,修改后内容如下:
/*
Placeholder for custom user CSS
mainly to be overridden in profile/static/custom/custom.css
This will always be an empty file
*/
.CodeMirror pre {font-family: Consolas, "Microsoft YaHei Mono", "Microsoft YaHei"; font-size: 10pt;}
* {font-family: Consolas, "Microsoft YaHei Mono", "Microsoft YaHei";}
div.output_area pre {font-family: Consolas, "Microsoft YaHei Mono", "Microsoft YaHei"; font-size: 10pt;}
div.input_prompt {font-family: Consolas, "Microsoft YaHei Mono", "Microsoft YaHei"; font-size: 10pt;}
div.out_prompt_overlay {font-family: Consolas, "Microsoft YaHei Mono", "Microsoft YaHei"; font-size: 10pt;}
div.prompt {font-family: Consolas, "Microsoft YaHei Mono", "Microsoft YaHei"; font-size: 10pt;}
span.cm-comment {font-family: Consolas, "Microsoft YaHei Mono", "Microsoft YaHei" !important; font-style:normal !important; color:#FFAE3C !important;}
code {font-family: Consolas, "Microsoft YaHei Mono", "Microsoft YaHei";}
.rendered_html code {
border: 0;
padding: 2px 4px;
color:#c7254e;
background-color: #f2f2f2;
font-size: 100%;
}
.container { width:98% !important; }
修改后效果:版权声明:本文为「txfly」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://www.jianshu.com/p/9d39b8ebf478
上一篇: Sublime Text的使用
推荐阅读
-
Android修改DatePicker字体颜色及分割线颜色详细介绍
-
solidworks怎么修改孔表公差标注字体大小?
-
anaconda 环境新建/删除/拷贝 jupyter notebook上使用python虚拟环境 TensorFlow
-
Android Studio如何修改字体的大小
-
非线性函数的最小二乘拟合——兼论Jupyter notebook中使用公式 [原创]
-
如何改变pdf字体颜色?pdf字体颜色修改的详细教程
-
Jupyter修改默认文件保存路径
-
基于jupyter notebook的python编程(Win10通过OpenCv-3.4.1进行人脸口罩数据集的模型训练并进行戴口罩识别检测)
-
懒人听书如何修改字体 懒人听书修改字体方法
-
Android修改自己程序字体的方法详解