• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

jupyter notebook更换皮肤主题的实现

python 搞代码 4年前 (2022-01-09) 82次浏览 已收录 0个评论

jupyter notebook更换皮肤主题

视频地址:https://www.bilibili.com/video/BV1Et4y1D7ru/

您是否厌倦了jupyter notebook的默认主题呢?

您是否想过能不能让jupyter notebook的界面更加高大上一点呢?

您是否想一天换一个jupyter notebook的主题呢?

有了jupyterthemes,我可以!

下载jupyterthemes

我们可以通过pip来安装jupyterthemes

pip install jupyterthemes

也可以通过下列命令来更新jupyterthemes到最新版本

pip install --upgrade jupyterthemes

使用jupyterthemes

那么下载完成后,我们可以在终端使用 jupyter-theme 命令来更改notebook主题

jupyter-theme -h # 查看jupyter-theme的帮助手册

您也可以通过 jupyter-theme 的命令简写 jt 来使用

jt -h # 查看jupyter-theme的帮助手册

强烈推荐第二种方式,因为懒惰是程序员的基本美德

jupyter-theme参数详解

功能介绍 选项参数 默认值
查看帮助文档 -h
展示所有的皮肤主题 -l
设置安装的主题 -t
设置代码字体样式 -f
设置代码字体大小 -fs 11
设置notebook的

本文来源gao!%daima.com搞$代*!码$网3

字体样式

-nf
设置notebook的字体大小 -nfs 13
设置text/md的cell字体样式 -tf
设置text/md的cell字体大小 -tfs 13
设置Pandas的DataFrame字体大小 -dfs 9
设置输出区域的字体大小 -ofs 8.5
设置Mathjax的字体大小(%) -mathfs 100
设置页面的margin外边距 -m auto
设置Cell的宽度 -cellw 980
设置行高 -lineh 170
设置光标的宽度 -cursw 2
设置光标的颜色 -cursc
Alt Prompt Layout -altp
Alt Markdown BG Color -altmd
Alt Output BG Color -altout
Style Vim NBExt* -vim
Toolbar是否可见 -T
文件名和Logo是否可见 -N
内核的Logo是否可见 -kl
重置为默认的notebook主题 -r
重置为默认的字体 -dfonts

code cells的可选字体样式


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:jupyter notebook更换皮肤主题的实现

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址