我喜欢黑暗题材。但是,Jupyter笔记本的默认主题是浅色,我找不到更改主题/背景色的选项。这是怎么做到的?
当前回答
如果有人有兴趣在启用主题的docker中运行anaconda
docker run -t --rm -p 8888:8888 -v $(pwd):/opt/notebooks continuumio/anaconda3 /bin/bash -c "pip install jupyterthemes; jt -t onedork; /opt/conda/bin/jupyter notebook --ip=0.0.0.0 --port=8888 --notebook-dir=/opt/notebooks --allow-root --no-browser;"
其他回答
!pip install jupyterthemes
运行这个库:
from jupyterthemes import get_themes
import jupyterthemes as jt
from jupyterthemes.stylefx import set_nb_theme
这:
set_nb_theme('monokai')
主题:
’monokai’, ’chesterish’, ’oceans16’, ’solarizedl’, ’solarizedd’, ’grade3’, ’onedork’
使用FireFox插件“暗黑木星”。
如果在尝试使用PIP时出现错误,您可以使用CMD并运行您的命令。
你可以按照这些步骤来做。
PIP install jupyterthemes或PIP install——upgrade jupyterthemes以升级到最新版本的主题。 然后列出所有的主题:jt -l 在jt-t <themename>之后,例如jt-t solarizedl
使用conda直接安装Jupyterthemes包,使用:
conda install -c conda-forge jupyterthemes
然后,正如其他人指出的那样,使用jt -t <theme-name>更改主题
推荐文章
- 强迫自己掌握vi的最好方法是什么?
- 是否有Eclipse行宽标记?
- tqdm在Jupyter笔记本重复打印新的进度条
- 如何知道哪个Python在Jupyter笔记本上运行?
- 使用Python 3在Jupyter Notebook中使用相对导入从位于另一个目录中的模块导入本地函数
- 如何在编辑器(Atom, notepad++, Kate, VIM, Sublime, Textpad等)和ide (NetBeans, IntelliJ IDEA, Eclipse, Visual Studio等)中选择列
- 使用Emacs递归地查找和替换尚未打开的文本文件
- 如何嵌入HTML到IPython输出?
- 如何使Sublime Text成为Git的默认编辑器?
- 禁止在vim中创建交换文件
- 如何从终端运行。ipynb Jupyter Notebook ?
- 移除jupyter笔记本上的内核
- 基于gui或基于web的JSON编辑器,工作方式类似于属性浏览器
- 如何加载/编辑/运行/保存文本文件(.py)到IPython笔记本细胞?
- 如何改变AlertDialog的主题