在 Jupyter Notebook 中更改主题? [英] Change the Theme in Jupyter Notebook?
本文介绍了在 Jupyter Notebook 中更改主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我喜欢深色主题.但是,Jupyter notebook 的默认主题是浅色的,我找不到更改主题/背景颜色的选项.这是怎么做的?
I like dark themes. However, the default theme of Jupyter notebooks is light, and I can't find the option to change the theme/background-color. How is this done?
推荐答案
使用 Kyle Dunovan 的 jupyter-themes
包很容易做到这一点.您可以使用 conda
安装它.否则,您将需要使用 pip
.
This is easy to do using the jupyter-themes
package by Kyle Dunovan. You may be able to install it using conda
. Otherwise, you will need to use pip
.
使用 conda 安装:
Install it with conda:
conda install -c conda-forge jupyterthemes
或点:
pip install jupyterthemes
您可以通过以下方式获取可用主题列表:
You can get the list of available themes with:
jt -l
所以改变你的主题:
jt -t theme-name
要加载一个主题,最后,重新加载页面.文档和源代码在这里.
To load a theme, finally, reload the page. The docs and source code are here.
这篇关于在 Jupyter Notebook 中更改主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文