zoukankan      html  css  js  c++  java
  • 让Jupyter Notebook个性化

    Win下更改jupyter主题

    Themes地址

    本人环境  Win+Conda

    开始使用pip 安装,发现无法使用pip,修改环境变量,将D:Program FilesCondaScripts加入Path中

    再次使用pip,报错无SSL,网上查找发现需将D:Program FilesCondapkgsopenssl-1.1.1b-he774522_1Libraryin加入路径中,

    最后使用pip install --upgrade jupyterthemes,安装themes成功

    此时可以在cmd里面调用已经安装好的themes啦~

    jt -l
    

    就会返回所有你安装好的主题的名词列表,这样你就知道了你安装了哪些主题。

    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 optionsargdefault
    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 --
    Kernel Logo Visible -kl --
    Reset Default Theme -r --
    Force Default Fonts -dfonts

    --

    Jupyter notebook 实现自动代码补全

    首先安装 nbextensions

    pip install jupyter_contrib_nbextensions
    jupyter contrib nbextension install --user

    然后安装 nbextensions_configurator

    pip install jupyter_nbextensions_configurator
    jupyter nbextensions_configurator enable --user

    如果提示缺少依赖,就使用pip安装对应依赖即可。

    最后重启jupyter,在弹出的主页面里,能看到增加了一个Nbextensions标签页,在这个页面里,勾选Hinterland即启用了代码自动补全,如图所示:

  • 相关阅读:
    Redis 配置为 Service 系统服务
    java.lang.IllegalStateException: The platform metadata area could not be written
    SpringCloud Gateway做熔断降级+限流
    Mac mysql修改my.cnf不起作用排查
    MailHealthIndicator javax.mail.MessagingException: Could not connect to SMTP host: smtp.qiye.aliyun.com, port: 25, response: -1
    Spring Cloud Gateway跨域配置
    一、Rancher单机搭建
    SpringCloud快速搭建微服务
    在Mac下为GUI程序设定环境变量
    Spring cache 使用说明
  • 原文地址:https://www.cnblogs.com/lvpengbo/p/10804611.html
Copyright © 2011-2022 走看看