zoukankan      html  css  js  c++  java
  • jupyter notebook设置主题背景,字体和扩展插件

    windows上安装Anaconda (IPython notebook)

    Anaconda是一个包与环境的管理器,一个Python发行版,以及一个超过1000多个开源包的集合。它是免费和易于安装的,并且提供免费的社区支持。Anaconda中内嵌IPython notebook环境
    IPython notebook又称Jupyter notebook是一个Web交互式的Python开发环境,具有方便的单步调试功能,并拥有丰富的拓展插件!可以集成Vim环境,可在windows上享受各种Vim快捷键功能,很是适合撸代码!

    Anaconda下载地址: Anaconda官网下载
    可根据自己对Python环境的需求选择安装Python3版本、Python2版本! 下载下来只需要按照步骤一路next安装即可!

    -----------------------

    IPython notebook拓展插件安装
    启动IPython notebook : 打开控制台输入命令 jupyter notebook
    安装Jupyter notebook extensions扩展插件: 

    pip install jupyter_contrib_nbextensions 

    或者

    pip install https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tarball/master 
    jupyter contrib nbextension install --user 

    安装后重新启动控制台窗口: 再次执行命令jupyter notebook 便可以看到在web端看到如下窗口:

    部分常用插件介绍:

      VIM binding:该插件使得IPython notebook集成VIM环境,可以使用VIM所有快捷键进行撸代码;
      Codefolding :既可以对标题进行折叠,也可以对代码进行折叠,观看方便;
      ExecuteTime : IPython支持分步调试,所以该插件支持显示每步的执行时间;
      Notify:这是IPython Notebook中的通知机制,耗时任务当离开时完成时可自动提示。

    -----------------------------

    IPython notebook主题背景和字体更改


    舒适的撸代码主题背景无论对于眼睛还是心情都有重要作用,接下来我们就安装选择适合自己的主题背景和字体

    • 在控制台下用pip 安装jupyter-themes : 
      pip install --upgrade jupyterthemes
    • 使用如下命令查看所有可用的主题:
    usename$ jt -l
    
    Available Themes:
       chesterish
       grade3
       monokai
       oceans16
       onedork
       solarizedd
       solarizedl
    • 再可以使用如下命令选择适合自己的主题背景
    username$ jt -t grade3(主题名称)
    • 更改字体可以通过如下命令
    username$ jt -f inconsolata(字体名称)
    • jt常用各种命令

    下面展示一种主题背景和格式:

    1、 执行命令:

     jt -f inconsolata -t grade3 

    2、执行命令:

    jt -t oceans16 -f inconsolata 

    ---------------------
    作者:feilong_csdn
    来源:CSDN
    原文:https://blog.csdn.net/feilong_csdn/article/details/80186276 

  • 相关阅读:
    x64 平台开发 Mapxtreme 编译错误
    hdu 4305 Lightning
    Ural 1627 Join(生成树计数)
    poj 2104 Kth Number(可持久化线段树)
    ural 1651 Shortest Subchain
    hdu 4351 Digital root
    hdu 3221 Bruteforce Algorithm
    poj 2892 Tunnel Warfare (Splay Tree instead of Segment Tree)
    hdu 4031 Attack(BIT)
    LightOJ 1277 Looking for a Subsequence
  • 原文地址:https://www.cnblogs.com/hankleo/p/10226832.html
Copyright © 2011-2022 走看看