Installez les thèmes jupyter à l'aide de la commande pip.
terminal
$ pip install jupyterthemes
La commande suivante montrera quels thèmes sont inclus.
terminal
$ jt -l
Available Themes: 
   chesterish
   grade3
   monokai
   oceans16
   onedork
   solarizedd
   solarizedl
Les commandes pour utiliser le thème sont les suivantes. Quant à l'option, -T ajoute une boîte à outils. -N est une option pour donner le nom du cahier. Vous devez redémarrer le bloc-notes Jupyter pour que le thème prenne effet.
terminal
$ jt -t chesterish -T -N
Les commandes pour utiliser le thème sont les suivantes. Quant à l'option, -T ajoute une boîte à outils. -N est une option pour donner le nom du cahier.
terminal
$ jt -h
usage: jt [-h] [-l] [-t THEME] [-f MONOFONT] [-fs MONOSIZE] [-nf NBFONT]
          [-nfs NBFONTSIZE] [-tf TCFONT] [-tfs TCFONTSIZE] [-dfs DFFONTSIZE]
          [-ofs OUTFONTSIZE] [-m MARGINS] [-cursw CURSORWIDTH]
          [-cursc CURSORCOLOR] [-cellw CELLWIDTH] [-lineh LINEHEIGHT] [-altp]
          [-altmd] [-P] [-T] [-N] [-vim] [-r] [-dfonts]
optional arguments:
  -h, --help            show this help message and exit
  -l, --list            list available themes
  -t THEME, --theme THEME
                        theme name to install
  -f MONOFONT, --monofont MONOFONT
                        monospace code font
  -fs MONOSIZE, --monosize MONOSIZE
                        code font-size
  -nf NBFONT, --nbfont NBFONT
                        notebook font
  -nfs NBFONTSIZE, --nbfontsize NBFONTSIZE
                        notebook fontsize
  -tf TCFONT, --tcfont TCFONT
                        txtcell font
  -tfs TCFONTSIZE, --tcfontsize TCFONTSIZE
                        txtcell fontsize
  -dfs DFFONTSIZE, --dffontsize DFFONTSIZE
                        pandas dataframe fontsize
  -ofs OUTFONTSIZE, --outfontsize OUTFONTSIZE
                        output area fontsize
  -m MARGINS, --margins MARGINS
                        fix margins of main intro page
  -cursw CURSORWIDTH, --cursorwidth CURSORWIDTH
                        set cursorwidth (px)
  -cursc CURSORCOLOR, --cursorcolor CURSORCOLOR
                        cursor color (r, b, g, p)
  -cellw CELLWIDTH, --cellwidth CELLWIDTH
                        set cell width (px)
  -lineh LINEHEIGHT, --lineheight LINEHEIGHT
                        code/text line-height (%)
  -altp, --altprompt    alt input prompt style
  -altmd, --altmarkdown
                        alt markdown cell style
  -P, --hideprompt      hide cell input prompt
  -T, --toolbar         make toolbar visible
  -N, --nbname          nb name/logo visible
  -vim, --vimext        toggle styles for vim
  -r, --reset           reset to default theme
  -dfonts, --defaultfonts
                        force fonts to browser default
Je présenterai la mise en page de chaque thème.
chesterish
terminal
$ jt -t chesterish -T -N
 
grade3
terminal
$ jt -t grade3 -T -N
 
monokai
terminal
$ jt -t monokai -T -N
 
oceans16
terminal
$ jt -t oceans16 -T -N
 
onedork
terminal
$ jt -t onedork -T -N
 
solarizedd
terminal
$ jt -t solarizedd -T -N
 
solarizedl
terminal
$ jt -t solarizedl -T -N
 
        Recommended Posts