jupiter lab和jupyter notebook中注释默认是斜体,修改为普通字体的方法
jupyter notebook中注释取消斜体
-
在用户目录.jupyter文件夹下新建custom文件夹
-
在custom 文件夹下新建custom.css文件,写入以下内容
/* Code - comment */
span.cm-comment {
font-style: normal !important;
}
jupyter lab注释取消斜体
-
找到~/.local/share/jupyter/lab/themes文件夹,修改主题下的index.css文件
-
在文件末尾写入以下内容
-
保存后重新启动jupyter生效
span.cm-comment {
font-style:normal !important; color:#423f3a !important;
}