Jupyter-themes: change background color?

Created on 13 Jul 2017  路  4Comments  路  Source: dunovank/jupyter-themes

Hi!
I'm sorry but I couldn't find anywhere a way to customize background color. Specifically, I like
jt -t onedork -f roboto -fs 12 -ofs 10
but when I plot a figure the axes are labeled with font in black, which is very hard to see on the output background. Can I modify the output background in that theme ?

Best wishes
Chris

(attached example figure)
screen shot 2017-07-12 at 8 03 53 pm

Most helpful comment

when you start a notebook, run:

# import jtplot
from jupyterthemes import jtplot

# you can select an alternative theme's plot style by name
# onedork | grade3 | oceans16 | chesterish | monokai | solarizedl | solarizedd
jtplot.style('onedork')

may have to update jupyterthemes to use jtplot (depending on what version you currently have installed)

# install/upgrade to latest version
pip install --upgrade jupyterthemes

see README info about jtplot

All 4 comments

when you start a notebook, run:

# import jtplot
from jupyterthemes import jtplot

# you can select an alternative theme's plot style by name
# onedork | grade3 | oceans16 | chesterish | monokai | solarizedl | solarizedd
jtplot.style('onedork')

may have to update jupyterthemes to use jtplot (depending on what version you currently have installed)

# install/upgrade to latest version
pip install --upgrade jupyterthemes

see README info about jtplot

div.output_wrapper {
background-color: #ffffff; <- change this to #ffffff in jupyter css file
border: 0px;
left: 0px;
margin-bottom: 0em;
margin-top: 0em;
border-top-right-radius: 0px;
border-top-left-radius: 0px;
}

Here is a good reference to change the color of the background

div.output_wrapper {
background-color: #ffffff; <- change this to #ffffff in jupyter css file
border: 0px;
left: 0px;
margin-bottom: 0em;
margin-top: 0em;
border-top-right-radius: 0px;
border-top-left-radius: 0px;
}

Perfect!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AFederici picture AFederici  路  7Comments

VimalMollyn picture VimalMollyn  路  4Comments

Brenndoerfer picture Brenndoerfer  路  6Comments

jingw222 picture jingw222  路  3Comments

Brett99 picture Brett99  路  7Comments