background theme for jupuyter

1. Background theme installation View available themes

1. Theme installation

Win+r enter cmd
installation command:

pip install jupyterthemes

insert image description here

2. View available themes

jt -l

insert image description here
It can be seen that there are a total of 9 themes, namely

chesterish
grade3
gruvboxd
gruvboxl
monokai
oceans16
onedork
solarizedd
solarizedl

3. Change the theme, font and other settings

Take the theme monkokai as an example

jt -t monokai -f fira -fs 16 -cellw 94% -ofs 14 -dfs 14 -T -N

  • monnkai: theme to be replaced
  • -f : font option, fira is the font I want to use
  • -fs 16 is font size 16
  • -cellw (screen ratio or width)
  • -ofs (font size of output section)
  • -T (show toolbar)
  • -N (display your own host name)
    effect is as follows:

insert image description here

4. Other commands to restore the original theme

  1. restore original theme
jt  -r
  1. markdown automatically adapts
jt   -altmd 

2. The effect of each theme

1.chesterish

 jt -t oceans16 -f fira -fs 16 -cellw 96% -ofs 14 -dfs 14 -T

insert image description here

2. grade3

insert image description here

3.mine boxd

insert image description here

4.oceans16

insert image description here

5.onedork

insert image description here

6.solarizedd

insert image description here

7.solarizedl

insert image description here

Reference article: jupyter change font

Guess you like

Origin blog.csdn.net/qq_54423921/article/details/127917354