Skip to content

Instantly share code, notes, and snippets.

@kaspermunch
Created April 14, 2024 19:47
Show Gist options
  • Save kaspermunch/01345580c21a415746e171b0c2027bd5 to your computer and use it in GitHub Desktop.
Save kaspermunch/01345580c21a415746e171b0c2027bd5 to your computer and use it in GitHub Desktop.
Jupyter lab dark theme following dark mode
# set dark plots if theme is dark
user_settings = '~/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings'
if 'JupyterLab Dark' in open(os.path.expanduser(user_settings)).read():
style = {'axes.facecolor': '#111111',
'axes.edgecolor': '.99',
'axes.labelcolor': '.99',
'figure.facecolor': '#111111',
'grid.color': '.0',
'text.color': '.99',
'xtick.color': '.99',
'ytick.color': '.99',
'patch.edgecolor': 'w',
}
sns.set_style(style)
sns.set_palette('pastel')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment