欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

更换jupyter notebook 主题

程序员文章站 2022-05-25 14:22:44
...

最近一直在学习python,用了一周jupyter notebook 后眼睛特别难受,所以查了网上所有的资料,踩了很多坑,以下是我更换jupyter notebook 主题的步骤,希望对大家有用。(我是通过网络搜索更换的,如有问题请谅解,或者也可以看哈github上的有关方法:

https://github.com/dunovank/jupyter-themes )

git界面上检查更新pip版本(如果是最新版本,便不用更),输入以下命令先卸载旧版本

pip uninstall pip

然后再用以下命令安装新版pip

easy_install pip

pip 更新完后按下面步骤来做:

1.将jupyterthemes 下载到git bash

git clone https://github.com/dunovank/jupyter-themes 

2.安装jupyterthemes

# install jupyterthemes
pip install jupyterthemes

# upgrade to latest version
pip install --upgrade jupyterthemes

3.选择主题(我选的是onedork)

jt -l
Available Themes:
   chesterish
   grade3
   gruvboxd
   gruvboxl
   monokai
   oceans16
   onedork
   solarizedd
   solarizedl
# select theme...
jt -t onedork

完成以上步骤后再重新打开jupyter notebook即可

打开后可能会出现工具栏被隐藏的问题,此时在git bash 界面输入以下命令

jt -t onedork -N -T 

在这里我选的主题是onedork,完成后重新打开即可。

 

相关标签: jupyter notebook