Jupyter Notebook 更换主题、设置字体与jupyterthemes的使用

=======================================================================

这次变更jupyter主题借助了jupyterthems库,它来自Github,网址:https://github.com/dunovank/jupyter-themes/blob/master/README.md 感兴趣的可以支持一下原作者!为作者打星!!

操作相当简单,大约划分2~3分钟时间即可配置完成。

注意:每一项修改都需要放置在一起,统一执行生效,若依次输入会导致上一次的修改失效。

=======================================================================

1:安装(本文采用的是通过anaconda安装)
(建议配置下载源为国内站点)

#通过anaconda安装
conda install jupyterthemes

#通过pip安装
pip install jupyterthemes

Jupyter Notebook 更换主题、设置字体与jupyterthemes的使用
命令行选项一览表
Jupyter Notebook 更换主题、设置字体与jupyterthemes的使用
Jupyter Notebook 更换主题、设置字体与jupyterthemes的使用

2:更换主题(windows 下在CMD中可直接使用)
主题配色简单的截图,方便选择。

#通过命令jt -l 可查看主题列表,效果如下

C:\Users\dell>jt -l
Available Themes:
   chesterish     #暗色
   grade3		#亮色
   gruvboxd     #暗色
   gruvboxl		#淡棕色
   monokai		#暗色
   oceans16		#暗色
   onedork		#暗色
   solarizedd	#青色
   solarizedl	#淡粉色

chesterish
Jupyter Notebook 更换主题、设置字体与jupyterthemes的使用
grade3
Jupyter Notebook 更换主题、设置字体与jupyterthemes的使用
gruvboxd
Jupyter Notebook 更换主题、设置字体与jupyterthemes的使用
gruvboxl
Jupyter Notebook 更换主题、设置字体与jupyterthemes的使用
monokai
Jupyter Notebook 更换主题、设置字体与jupyterthemes的使用

oceans16
Jupyter Notebook 更换主题、设置字体与jupyterthemes的使用

onedork
Jupyter Notebook 更换主题、设置字体与jupyterthemes的使用
solarizedd
Jupyter Notebook 更换主题、设置字体与jupyterthemes的使用
solarizedl
Jupyter Notebook 更换主题、设置字体与jupyterthemes的使用

3.修改字体大小

注意:同时修改多项时,每一项修改都需要放置在一起,统一执行生效,(若依次输入会导致上一次的修改失效,仅保留最后一次修改。)

#选好主题后,设置合适的字体大小
jt -t onedork -fs 14