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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM