如何更改 Jupyter Notebook 中的字体?我想更改 Jupyter Notebook 中的字体,并且我使用的是 Python 2.7
我知道您可以使用
jupyterthemes
包来做到这一点。请参阅下面的示例,了解如何安装软件包和更改字体。
pip install jupyterthemes
# set font/font-size of markdown (text cells) and notebook (interface)
# see sans-serif & serif font tables below
jt -tf merriserif -tfs 10 -nf ptsans -nfs 13
您可能会在 github 存储库上找到列出的其他字体。
这个包的第一个目的是改变 jupyter 的主题。 也许这是一个尝试比默认背景对眼睛不那么刺激的背景的机会。我个人跑步:
jupyter-theme -t oceans16 -T