Jupyter est pratique. Après avoir vu Jupyter Notebook selon mes propres spécifications: Changer l'arrière-plan et l'icône, j'ai vraiment voulu changer la couleur d'arrière-plan. Cependant, il est difficile de jouer avec CSS par moi-même, alors j'ai cherché un moyen simple de le faire.
Cela semble facile à faire avec jupyter-themes.
% pip install jupyterthemes
% jt -h
usage: jt [-h] [-l] [-t THEME] [-f MONOFONT] [-fs MONOSIZE] [-nf NBFONT]
          [-nfs NBFONTSIZE] [-tf TCFONT] [-tfs TCFONTSIZE] [-m MARGINS]
          [-cursw CURSORWIDTH] [-cursc CURSORCOLOR] [-cellw CELLWIDTH]
          [-lineh LINEHEIGHT] [-alt] [-vim] [-T] [-N] [-r]
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
  -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 (%)
  -alt, --altlayout     alt markdown layout
  -vim, --vimext        toggle styles for vim
  -T, --toolbar         make toolbar visible
  -N, --nbname          nb name/logo visible
  -r, --reset           reset to default theme
% jt -l
Available Themes: 
   chesterish
   grade3
   oceans16
   onedork
% jt -t onedork
You are using Python 3.5
only versions 2.7, 3.3, 3.4 support custom settings
Installing onedork theme with default settings
Il semble que certaines fonctions ne puissent pas être utilisées avec Python 3.5, mais la couleur a changé pour le moment, je vais donc essayer de l'utiliser pendant un moment.

Recommended Posts