Loading

jupyter注释取消斜体

jupiter lab和jupyter notebook中注释默认是斜体,修改为普通字体的方法

jupyter notebook中注释取消斜体

  1. 在用户目录.jupyter文件夹下新建custom文件夹

  2. 在custom 文件夹下新建custom.css文件,写入以下内容

/* Code - comment */
span.cm-comment {
    font-style: normal !important;
}

jupyter lab注释取消斜体

  1. 找到~/.local/share/jupyter/lab/themes文件夹,修改主题下的index.css文件

  2. 在文件末尾写入以下内容

  3. 保存后重新启动jupyter生效

span.cm-comment {
  font-style:normal !important; color:#423f3a !important;
}
posted @ 2021-01-10 19:02  JinX-Digital  阅读(1468)  评论(0编辑  收藏  举报