You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It showcases an example making a jupyterlite plugin allowing to set the theme from outside of the iframe.
We could provide such a plugin by default in jupyterlite-sphinx, allowing pydata-sphinx-theme to notify jupytelite iframes of a potential theme change.
Not only We could support setting the theme using a theme name, but the message could probably also contain css variable values as a dictionary.
The text was updated successfully, but these errors were encountered:
I think this is possible via the jupyterlab-theme-toggler extension now in the JupyterLite UI. But I don't think it provides a hook to set the theme from outside the iframe yet...?
Then when it comes to changing the theme after the IFrame is displayed, we can indeed use the approach linked above, or a helper package like https://github.com/TileDB-Inc/jupyter-iframe-commands to execute arbitrary commands in the IFrame, from a host page.
Problem
As suggested in pydata/pydata-sphinx-theme#745 (comment)
Not only We could support setting the theme using a theme name, but the message could probably also contain css variable values as a dictionary.
The text was updated successfully, but these errors were encountered: