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

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
使用如下命令查看所有可用的主题:

在CMD中输入jt -l
Available Themes:
   chesterish
   grade3
   monokai
   oceans16
   onedork
   solarizedd
   solarizedl

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

4.常用各种命令

optionsargdefault
Usagehelp-h
List Themes-l
Theme Name to Install-t
Code Font-f
Code Font-Size-fs11
Notebook Font-nf
Notebook Font Size-nfs13
Text/MD Cell Font-tf
Text/MD Cell Fontsize-tfs13
Pandas DF Fontsize-dfs9
Output Area Fontsize-ofs8.5
Mathjax Fontsize (%)-mathfs100
Intro Page Margins-mauto
Cell Width-cellw980
Line Height-lineh170
Cursor Width-cursw2
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

转载于:https://www.cnblogs.com/pythonywy/p/10809927.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值