【问题标题】:How do I change font in Jupyter Notebook如何更改 Jupyter Notebook 中的字体
【发布时间】:2018-06-23 08:40:23
【问题描述】:

如何更改 Jupyter Notebook 中的字体?我想更改 Jupyter Notebook 中的字体,我使用的是 Python 2.7

【问题讨论】:

    标签: python python-2.7 fonts jupyter-notebook


    【解决方案1】:

    我知道您可以使用 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
    

    您可能会发现列出的其他字体on the github repository.

    这个包的第一个目的是改变 jupyter 的主题。 也许这将是一个机会尝试一个比默认背景不那么激进的背景。我亲自跑:

    jupyter-theme -t oceans16 -T
    

    【讨论】:

      猜你喜欢
      • 2021-11-09
      • 2022-10-28
      • 1970-01-01
      • 2018-03-12
      • 2016-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多