如何为Jupyter Lab创建自定义CSS文件 [英] How to create custom css file for Jupyter lab

查看:166
本文介绍了如何为Jupyter Lab创建自定义CSS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建自定义CSS的最简单方法是什么(对所有文档都是全局的)为Jupyter Lab(通过anaconda安装)?

What is the easiest way to create a custom css (global to all documents) for the Jupyter Lab (Installed via anaconda)?

推荐答案

JupyterLab使用扩展的主题.这些主题具有CSS规则.在JupyterLab中没有与笔记本相同的官方"方式(在〜/.jupyter/custom目录中的custom.css文件).

JupyterLab uses themes which are extensions. These themes have CSS rules. There's no "official" way to have custom CSS in JupyterLab the same way as Notebook had (custom.css file in ~/.jupyter/custom directory).

由于上述原因,我开发了一个扩展,您可以在其中将自定义(全局)CSS规则放置在设置编辑器中: https://github.com/wallneradam/jupyterlab-custom-css

Because of the above I've developed an extension where you can place custom (global) CSS rules in the settings editor: https://github.com/wallneradam/jupyterlab-custom-css

这篇关于如何为Jupyter Lab创建自定义CSS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆