我喜欢深色主题。但是,Jupyter笔记本的默认主题是浅色,我找不到更改主题/背景颜色的选项。这是如何完成的?
最佳答案
使用 Kyle Dunovan 的 jupyter-themes
包可以轻松做到这一点。您可以使用 conda
安装它。否则,您将需要使用pip
。
使用 conda 安装它:
conda install -c conda-forge jupyterthemes
或点:
pip install jupyterthemes
您可以通过以下方式获取可用主题列表:
jt -l
因此更改您的主题:
jt -t theme-name
要加载主题,最后重新加载页面。文档和源代码是 here 。设置主题时,还可以选择在同一命令中指定 -T
(--toolbar
) 以保留工具栏,否则工具栏不会显示。如需帮助,请输入 jt -h
。
关于themes - 更改 Jupyter Notebook 中的主题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46510192/