python

来源:互联网 发布:天音淘宝宝贝复制软件 编辑:程序博客网 时间:2024/06/05 10:21

安装jupyter 主题


# install/upgrade to latest versionpip install --upgrade jupyterthemes

配置方法


# list available themes# onedork | grade3 | oceans16 | chesterish | monokai | solarizedl | solarizeddjt -l# select theme...jt -t chesterish# restore default theme# NOTE: Need to delete browser cache after running jt -r# If this doesn't work, try starting a new notebook session.jt -r# toggle toolbar ON and notebook name ONjt -t grade3 -T -N# set code font to 'Roboto Mono' 12pt# (see monospace font table below)jt -t onedork -f roboto -fs 12# set code font to Fira Mono, 11.5pt# 3digit font-sizes get converted into float (115-->11.5)# 2digit font-sizes > 25 get converted into float (85-->8.5)jt -t solarizedd -f fira -fs 115# set font/font-size of markdown (text cells) and notebook (interface)# see sans-serif & serif font tables belowjt -t oceans16 -tf merriserif -tfs 10 -nf ptsans -nfs 13# adjust cell width (% screen width) and line heightjt -t chesterish -cellw 90% -lineh 170# or set the cell width in pixels by leaving off the '%' signjt -t solarizedl -cellw 860# fix the container-margins on the intro page (defaults to 'auto')jt -t monokai -m 200# adjust cursor width (in px) and make cursor red# options: b (blue), o (orange), r (red), p (purple), g (green), x (font color)jt -t oceans16 -cursc r -cursw 5# choose alternate prompt layout (narrower/no numbers)jt -t grade3 -altp# my two go-to styles# darkjt -t onedork -fs 95 -altp -tfs 11 -nfs 115 -cellw 88%# lightjt -t grade3 -fs 95 -altp -tfs 11 -nfs 115 -cellw 88%

原文链接:jupyter-themes