1.jupyter设置主题的步骤:
命令窗口输入:
pip install jupyterthemes
具体主题讲解可参考:https://www.cnblogs.com/shanger/p/12006161.html
2.遇到的问题:
Could not find a version that satisfies the requirement jupyterthemes (from versions: none)
解决方法:
(1)可能是pip版本低,需要更新pip(多更新几次):
python -m pip install --upgrade pip
(2)还会继续报错,可以利用国内镜像源:
pip install jupyterthemes -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
安装成功!
3.设置jupter 主题
(1)更新主题
pip install --upgrade jupyterthemes
(2)查看可用的 Jupyter 主题
jt -l
(3)更换 Jupyter 主题
jt -t onedork -f fira -fs 13 -cellw 90% -ofs 11 -dfs 11 -T -T
-t 主题 -f(字体) -fs(字体大小) -cellw(占屏比或宽度) -ofs(输出段的字号) -T(显示工具栏) -T(显示自己主机名)
jt -t gruvboxd -T -N # 这个是设置主题
(4)恢复默认主题
jt -r
4.参考资料:
问题解决:https://blog.csdn.net/weixin_42840933/article/details/85308265
问题解决:https://blog.csdn.net/weixin_42001089/article/details/84403842