欢迎光临散文网 会员登陆 & 注册

jupyter notebook&lab 主题更换

2022-07-22 00:52 作者:今晚复习到几点  | 我要投稿

jupyter notebook主题更换

https://github.com/dunovank/jupyter-themes/blob/master/README.md

# install jupyterthemes 第一步安装主题包用pip或者conda 

方法一:打开anaconda prompt 输入命令

 输入命令:  pip install jupyterthemes

方法二:输入命令 : conda install -c conda-forge jupyterthemes

#选择主题

输入命令: jt -l

会显示可选主题名称:

onedork | grade3 | oceans16 | chesterish | monokai | solarizedl | solarizedd

输入命令: jt -t oceans16 -T -N 

使用oceans16的皮肤,随后输入jupyter notebook打开主题就变成了oceans16其他同理

同时还可以设置字体大小等,具体可以阅读GitHub的描述


oceans16主题

jupyter notebook 和jupyter lab 的主题并不通用,所以随着主流变成jupyter lab 下面介绍jupyter lab的主题,目前只有明暗两个主题可选

jupyter lab 主题更换

打开anaconda prompt

分别键入命令:

pip install jupyterlab_legos_ui

pip install jupyterlab_legos_ui明亮主题

pip install jupyterlab_darkside_ui

pip install jupyterlab_darkside_ui 黑暗主题

然后打开jupyterlab 之后直接在菜单栏的setting里面设置theme

新的两个主题已经安装完毕选择一个喜欢的即可


jupyter notebook&lab 主题更换的评论 (共 条)

分享到微博请遵守国家法律