通過命令行窗口或 Anaconda Prompt 窗口
1、安裝 Jupyter 主題
pip install jupyterthemes
2、更新 Jupyter 主題 (可選)
pip install --upgrade jupyterthemes
3、查看可用的 Jupyter 主題
jt -l
4、更換 Jupyter 主題
jt -t onedork -f fira -fs 13 -cellw 90% -ofs 11 -dfs 11 -T -T
-t 主題 -f(字體) -fs(字體大小) -cellw(占屏比或寬度) -ofs(輸出段的字號) -T(顯示工具欄) -T(顯示自己主機名)
更改主題后 Jupyter Notebook 是下面的效果:
-- 恢復 Jupyter 默認風格
jt -r
5、各種主題風格
chestersih
jt -t chesterish -f fira -fs 17 -cellw 90% -ofs 15 -dfs 15 -T -T
grade3
jt -t grade3 -f fira -fs 17 -cellw 90% -ofs 15 -dfs 15 -T -T
gruvobxd
jt -t gruvboxd -f fira -fs 17 -cellw 90% -ofs 15 -dfs 15 -T -T
gruvboxl
jt -t gruvboxl -f fira -fs 17 -cellw 90% -ofs 15 -dfs 15 -T -T
monokai
jt -t monokai -f fira -fs 17 -cellw 90% -ofs 15 -dfs 15 -T -T
oceans16
jt -t oceans16 -f fira -fs 17 -cellw 90% -ofs 15 -dfs 15 -T -T
onedork
jt -t onedork -f fira -fs 17 -cellw 90% -ofs 15 -dfs 15 -T -T
solarizedd
jt -t solarizedd -f fira -fs 17 -cellw 90% -ofs 15 -dfs 15 -T -T
solarizedl
jt -t solarizedl -f fira -fs 17 -cellw 90% -ofs 15 -dfs 15 -T -T
參考文章:
https://baijiahao.baidu.com/s?id=1622108825317402337&wfr=spider&for=pc