如何将 colab 深色主题引入 Jupyter Notebook

How to bring the colab dark theme to Jupyter Notebook

我想知道当我们切换到深色模式时 colab 使用什么主题 google 以及如何为 jupyter notebook 安装它。

首先,您必须安装 Jupyter 主题:

pip install jupyterthemes

然后,我认为 Colab 使用主题 "onedork",所以只需使用以下设置即可:

jt -t onedork

有关 Jupyter Themes 的更多信息,您可以查看 https://github.com/dunovank/jupyter-themes

或者您可以在 VS Code 中打开 Jupyter Notebooks(现在集成非常好)并开箱即用 Dark Theme(通过使用 VS Code 主题)。