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;
}
