Created
April 14, 2024 19:47
-
-
Save kaspermunch/01345580c21a415746e171b0c2027bd5 to your computer and use it in GitHub Desktop.
Jupyter lab dark theme following dark mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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