✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Atomatically switch theme plots in jupyterlab

Hi,

Is there a way to detect the change of juypter theme and atomatically switch the plotly theme?
E.g. for Light Jupyterlab Theme -> plotly_white and for Dark Jupyterlab Theme -> plotly_dark

I would like to avoid doing this manually:

layout=go.Layout(template=‘plotly_dark’)

Thanks.

Hi @silviuuv,

i mentioned this topic some time ago already, see here

check the github link regarding this issue

Greetings, Alex -