我是靠谱客的博主 过时百褶裙,这篇文章主要介绍五分钟教你自定义Jupyter的主题包括字体和配置一.下载一个python库二.jupyterthemes的各种参数介绍各种参数可以搭配使用,分享一个我个人比较喜欢的配置三.让我们看一下官方的文档,现在分享给大家,希望可以做个参考。
一.下载一个python库
pip install --upgrade jupyterthemes
二.jupyterthemes的各种参数介绍
-
查看所有可用的主题
复制代码1
2jt -l
-
查看jupyterthemes的帮助
复制代码1
2jt -h
-
设置代码行的行间距
复制代码1
2jt -lineh 80
-
安装主题
复制代码1
2jt -t oceans16
-
更换代码字体
复制代码1
2jt -f roboto
-
更换代码字体大小
复制代码1
2jt -fs 18
-
更换笔记本字体
复制代码1
2jt -nf roboto
-
更换笔记本字体大小
复制代码1
2jt -nfs 18
-
文字/MarkDown单元字体
复制代码1
2jt -tf roboto
-
文字/MarkDown单元字体大小
复制代码1
2jt -tfs 18
-
Pandas DF字体大小
复制代码1
2jt -dfs 18
-
输出区域字体大小
复制代码1
2jt -ofs 18
-
目录页面边距
复制代码1
2jt -m 200
-
更改代码行宽度
复制代码1
2jt -cellw 2000
-
显示工具箱
复制代码1
2jt -T
-
光标宽度
复制代码
1
2jt -cursw 10
各种参数可以搭配使用,分享一个我个人比较喜欢的配置
jt -t monokai -lineh 100 -fs 18 -nfs 18 -cellw 1000 -T
三.让我们看一下官方的文档
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52(Just_do_it) C:Users14116>jt -h usage: jt [-h] [-l] [-t THEME] [-f MONOFONT] [-fs MONOSIZE] [-nf NBFONT] [-nfs NBFONTSIZE] [-tf TCFONT] [-tfs TCFONTSIZE] [-dfs DFFONTSIZE] [-ofs OUTFONTSIZE] [-mathfs MATHFONTSIZE] [-m MARGINS] [-cursw CURSORWIDTH] [-cursc CURSORCOLOR] [-cellw CELLWIDTH] [-lineh LINEHEIGHT] [-altp] [-altmd] [-altout] [-P] [-T] [-N] [-kl] [-vim] [-r] [-dfonts] optional arguments: -h, --help show this help message and exit -l, --list list available themes -t THEME, --theme THEME theme name to install -f MONOFONT, --monofont MONOFONT monospace code font -fs MONOSIZE, --monosize MONOSIZE code font-size -nf NBFONT, --nbfont NBFONT notebook font -nfs NBFONTSIZE, --nbfontsize NBFONTSIZE notebook fontsize -tf TCFONT, --tcfont TCFONT txtcell font -tfs TCFONTSIZE, --tcfontsize TCFONTSIZE txtcell fontsize -dfs DFFONTSIZE, --dffontsize DFFONTSIZE pandas dataframe fontsize -ofs OUTFONTSIZE, --outfontsize OUTFONTSIZE output area fontsize -mathfs MATHFONTSIZE, --mathfontsize MATHFONTSIZE mathjax fontsize (in %) -m MARGINS, --margins MARGINS fix margins of main intro page -cursw CURSORWIDTH, --cursorwidth CURSORWIDTH set cursorwidth (px) -cursc CURSORCOLOR, --cursorcolor CURSORCOLOR cursor color (r, b, g, p) -cellw CELLWIDTH, --cellwidth CELLWIDTH set cell width (px or %) -lineh LINEHEIGHT, --lineheight LINEHEIGHT code/text line-height (%) -altp, --altprompt alt input prompt style -altmd, --altmarkdown alt markdown cell style -altout, --altoutput set output bg color to notebook bg -P, --hideprompt hide cell input prompt -T, --toolbar make toolbar visible -N, --nbname nb name/logo visible -kl, --kernellogo kernel logo visible -vim, --vimext toggle styles for vim -r, --reset reset to default theme -dfonts, --defaultfonts force fonts to browser default
最后
以上就是过时百褶裙最近收集整理的关于五分钟教你自定义Jupyter的主题包括字体和配置一.下载一个python库二.jupyterthemes的各种参数介绍各种参数可以搭配使用,分享一个我个人比较喜欢的配置三.让我们看一下官方的文档的全部内容,更多相关五分钟教你自定义Jupyter内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复