jupyter notebook修改样式

本文介绍如何使用pip安装jupyterthemes插件及lesscpy,并提供了jt-themes的具体配置参数示例,帮助用户个性化定制Jupyter Notebook的显示样式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

部分内容转载自:
作者: 湫兮
出处:https://www.cnblogs.com/qiuxirufeng/p/9609031.html

1 安装 jupyterthemes 插件
pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com --no-dependencies jupyterthemes==0.18.2

2 安装 lesscpy
pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com lesscpy

3 对主题选择、字体大小进行设置

目前选择的是,不过部分是有关联性,不能调整
jt -t oceans16 -f fira -fs 12 -cellw 96% -ofs 12 -dfs 12 -T

参数:
cl options arg default
Usage help -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 –
Kernel Logo Visible -kl –
Reset Default Theme -r –
Force Default Fonts -dfonts –

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值