一、单元格宽度
这个命令:
jt -t gruvboxl -f roboto -fs 12 -cellw 100% -T -N
它将宽度设置为100%
二、主题颜色
在用jupyter notebook时,想到一个问题,能不能更改jupyter notebook的主题颜色,总是看着白色的默认主题,有些乏味,也不够酷炫。博主找到了让jupyter notebook变得酷炫的方法。
默认的样式:
使用之后:
除此之外,在pycharm中的jupyter notebook,颜色上也有一些问题。我不知道是特例还是普遍现象,在pycharm中,jupyter notebook的背景颜色很多时候不能根据IDE的主题来一起更改,很多时候会出现下图所示情况。也可以通过这种方法来解决。
使用的是jupyter-themes,下面介绍用法:
首先在控制台下用pip 安装jupyter-themes
pip install --upgrade jupyterthemes
- 1
- 1
然后可以查看所有可用的主题:
usename$ jt -l
Available Themes:
chesterish
grade3
monokai
oceans16
onedork
solarizedd
solarizedl
三、作者github的方法介绍
Links
Requirements
- Python 2.7, 3.4, 3.5, 3.6
- Jupyter (Anaconda recommended)
- matplotlib
Install with pip
# install jupyterthemes
pip install jupyterthemes
# upgrade to latest version
pip install --upgrade jupyterthemes