天天看点

三步修改jupyter notebook主题和页面宽度

先上效果

三步修改jupyter notebook主题和页面宽度

最近每天都对着jupyter notebook的默认主题,感觉实在是单调了点。而且jupyter notebook的宽度,实在是让人难受...

三步修改jupyter notebook主题和页面宽度

今天碰巧发现jupyter原来可以换主题。不仅可以换,还特别快!下面教你三步更换jupyter notebook主题!

  1. cmd输入下面的命令下载

    jupyterthemes

    模块。
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyterthemes
           

复制

  1. bash环境输入

    jt -l

    查看所有主题名称。
三步修改jupyter notebook主题和页面宽度
  1. bash环境输入

    jt -t 主题名称

    设置主题。
三步修改jupyter notebook主题和页面宽度
切记每一次更换主题设置,要ctrl+c关闭jupyter才能设置成功。

但是仅仅换个主题,jupyter notebook奇怪的宽度仍然让人感觉不爽!幸运的是,

jupyterthemes

还包括了更改jupyter notebook宽度的功能,分分钟让你的jupyter notebook更舒服!依然,一行命令搞定。

bash

环境输入下面这行命令。

jt -t oceans16  -cellw 90%
           

复制

然后重启jupyter notebook,就能看到jupyter舒服的界面了~

下一篇: iterable