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
Hi @Alexboiboi ,
I really like this idea, though it would take a bit of work. The challenge is that Jupyter’s architecture is designed so that a kernel can’t directly ask which front-end it’s running in (e.g. IPython console, QtConsole, classic notebook, JupyterLab, etc.). The way around this, for JupyterLab, is to make this information available to the kernel from a JupyterLab extension.
I added an issue comment with the idea at https://github.com/plotly/plotly.py/issues/1473#issuecomment-47…
check the github link regarding this issue
Greetings, Alex -