Open gph82 opened 3 years ago
hi @gph82 I don't know either. I will think about this. Sorry for my late reply. I don't know why github does not send notification to my email anymore. um.
I can reproduce the issue when view.gui_style = 'ngl'
. And I think it's nglview
issue due to this code:
Hey, man, thanks a lot for looking into this, don't worry about the late reply :wink:
I would not have found this alone, I think, but I can't really follow why this is a bug...why is it picking the dark theme if it only uses light.css and main.css?
Hello!
I'm having trouble sorting this one myself, and it might not be even an nglview issue but some jupyter notebook issue.
Version report at the bottom of the page.
Depending on using
iwd.gui_style='ngl'
or not, the appearance of the resulting html-page (when usingjupyter-nbconvert --to html
) changes in style (pics below). The notebook contains only the following cell:Steps are
jupyter-nbconvert --to html notebook.ipynb
notebook.html
in any browseriwd.gui_style = "ngl"
Only happens in the html pages, the notebooks are okay:
notebook.html
withoutiwd.gui_style = "ngl"
:notebook.html
withiwd.gui_style = "ngl"
In the second case, it first loads with white background, and then changes to dark (some seconds). Also, some fonts are rendered differently in the Markdown cells (not shown for clarity, can do so if needed)
I strongly suspect sth is going on with the CSS, but I'm way out of my depth here. Don't really get anywhere with F12 console and element-wise inspection.
Since I don't have access to other machines right now, I'd be happy if at least someone else can confirm.
Thanks!
Version report