-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dark theme broken when notebook contains widgets in metadata #1506
Comments
I have the same issue. Did you find a workaround? @cnydw |
I suspect this is an issue with ipywidgets itself: jupyter-widgets/ipywidgets#3340, we should probably close this issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I followed the guide on https://blog.jupyter.org/the-templating-system-of-nbconvert-6-47ea781eacd2 to convert my notebooks to HTML with dark theme, using
However some of the converted notebooks have the dark theme style for about 0.5 second, then the HTML page turns to the white theme automatically.
After some investigation I found out that it's only happening to the notebooks with widgets state in the metadata, which makes nbconvert add the following code snippet to the HTML page,
nbconvert/share/jupyter/nbconvert/templates/base/jupyter_widgets.html.j2
Lines 3 to 26 in 2e41429
which in turn breaks the dark theme by updating the CSS properties.
Nbconvert version:
6.0.7
The text was updated successfully, but these errors were encountered: