前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >jupyter notebook的插件安装及文本格式修改

jupyter notebook的插件安装及文本格式修改

作者头像
小小咸鱼YwY
发布2019-07-24 15:30:31
9060
发布2019-07-24 15:30:31
举报
文章被收录于专栏:python-爬虫python-爬虫

jupyter notebook的插件安装及文本格式修改

1.jupyter notebook拓展插件安装

启动jupyter notebook : 打开控制台输入命令 jupyter notebook 安装Jupyter notebook extensions扩展插件: 1、pip install jupyter_contrib_nbextensions 或者 1、pip install https://github.com/jupyter-contrib/jupyter_contrib_nbextensions/tarball/master 2、jupyter contrib nbextension install --user 3、安装后重新启动控制台窗口: 再次执行命令jupyter notebook 便可以看到在web端看到如下窗口:

2.部分常用插件介绍

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

3.更改jupyter的样式

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

在控制台下用pip 安装jupyter-themes : pip install --upgrade jupyterthemes 使用如下命令查看所有可用的主题:

代码语言:javascript
复制
在CMD中输入jt -l
Available Themes:
   chesterish
   grade3
   monokai
   oceans16
   onedork
   solarizedd
   solarizedl

再可以使用如下命令选择适合自己的主题背景 username$ jt -t grade3(主题名称) 1 更改字体可以通过如下命令 username$ jt -f inconsolata(字体名称)

4.常用各种命令

options

arg

default

Usagehelp

-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

5.展示一种主题背景和格式

1、 执行命令: jt -f inconsolata -t grade3

2、 执行命令:jt -t oceans16 -f inconsolata

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-05-04 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • jupyter notebook的插件安装及文本格式修改
    • 1.jupyter notebook拓展插件安装
      • 2.部分常用插件介绍
        • 3.更改jupyter的样式
          • 4.常用各种命令
            • 5.展示一种主题背景和格式
            领券
            问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档