zoukankan      html  css  js  c++  java
  • jupyter notebook更换主题 步骤详解。

    最近在折腾自己的笔记本电脑,结果被Jupyter Notebook的自带主题亮瞎了眼,为了保护视力,还是换个对眼睛友好点的主题吧。在github上发现了一个jupyter-themes工具,可以通过pip安装,非常方便使用。

    接下来将详细介绍Jupyter-themes工具及如何为Jupyter Notebook更换主题

    安装jupyter-themes的命令行如下所示:

    pip install jupyter-themes
    安装好了,如图所示:

    命令行的格式如下所示:

    jt [-h] [-l] [-t THEME] [-f MONOFONT] [-fs MONOSIZE] [-nf NBFONT]
    [-nfs NBFONTSIZE] [-tf TCFONT] [-tfs TCFONTSIZE] [-dfs DFFONTSIZE]
    [-m MARGINS] [-cursw CURSORWIDTH] [-cursc CURSORCOLOR] [-vim]
    [-cellw CELLWIDTH] [-lineh LINEHEIGHT] [-altp] [-altmd] [-altout]
    [-P] [-T] [-N] [-r] [-dfonts]
    命令行的格式的解释如下表所示:

    cl options arg default
    Usage help -h --
    List Themes -l --
    Theme Name to Install -t --
    Code Font -f --
    Code Font-Size -fs 11
    Notebook Font -nf --
    Notebook Font Size -nfs 13
    Text/MD Cell Font -tf --
    Text/MD Cell Fontsize -tfs 13
    Pandas DF Fontsize -dfs 9
    Output Area Fontsize -ofs 8.5
    Mathjax Fontsize (%) -mathfs 100
    Intro Page Margins -m auto
    Cell Width -cellw 980
    Line Height -lineh 170
    Cursor Width -cursw 2
    Cursor Color -cursc --
    Alt Prompt Layout -altp --
    Alt Markdown BG Color -altmd --
    Alt Output BG Color -altout --
    Style Vim NBExt* -vim --
    Toolbar Visible -T --
    Name & Logo Visible -N --
    Reset Default Theme -r --
    Force Default Fonts -dfonts --

    举个例子吧
    查看安装了哪些主题的命令行如下所示:

    jt -l


    接下来,我想更换主题。

    命令行如下所示:

    更换后,我的主题如下图所示:


    ————————————————
    版权声明:本文为CSDN博主「Jinlong_Xu」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/jinlong_xu/java/article/details/79221943

  • 相关阅读:
    QGIS 编译
    Ubuntu: 无法使用su命令
    win7 与 Ubuntu 16.04 文件传送
    OSGEarth编译
    GADL配置编译
    C++ 类对象和 指针的区别
    C++ Primer Plus 第六版笔记
    Windows下使用doxygen阅读和分析C/C++代码
    _MSC_VER详细介绍
    LUA学习之一 初次接触
  • 原文地址:https://www.cnblogs.com/vincent-sh/p/12963092.html
Copyright © 2011-2022 走看看