Jupyter Notebook的默认背景主题是白色,有时候想要换一下字体或者背景色保护眼睛。
1.安装jupyter主题
pip install jupyterthemes
2.更新jupyter主题(可选)
pip install --upgrade jupyterthemes
3.查看可用的jupyter主题
jt -l ###字母L
4.更换jupyter主题(具体解释见后文表格)
jt -t onedork -f fira -fs 13 -cellw 90% -ofs 11 -dfs 11 -T -T
详细解释见
https://zhuanlan.zhihu.com/p/561079528
https://zhuanlan.zhihu.com/p/606309625
这两篇已经够了,有点懒,不专门搬运了。
变更主题以及主题字体时,貌似只能一次性命令变完,如果改变主题以后再改变别的属性,貌似会回到默认主题。
5.回复jupyter 默认风格
jt -r
posted on
浙公网安备 33010602011771号