为Jupyter Lab(通过anaconda安装)创建自定义css(全局到所有文档)的最简单方法是什么?
你可以编辑 index.css
为一个环境。它应该是在。
~/anaconda3/envs/[ENVIRONMENT NAME]/share/jupyter/lab/@jupyterlab/theme-dark-extension/index.css
对于黑暗的主题或在:
~/anaconda3/envs/[ENVIRONMENT NAME]/share/jupyter/lab/@jupyterlab/theme-light-extension/index.css
为浅色主题。
JupyterLab使用的主题是扩展。这些主题有CSS规则。没有 "官方 "的方式在JupyterLab中拥有和Notebook一样的自定义CSS(自定义.css文件在~.jupytercustom目录下)。
由于以上原因,我开发了一个扩展,你可以在设置编辑器中放置自定义(全局)CSS规则。https:/github.comwallneradamjupyterlab-custom-css。