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
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 using jupyter-nbconvert --to html) changes in style (pics below). The notebook contains only the following cell:
Externally run jupyter-nbconvert --to html notebook.ipynb
Open notebook.html in any browser
Uncomment iwd.gui_style = "ngl"
Repeat 1-4
Only happens in the html pages, the notebooks are okay: notebook.html without iwd.gui_style = "ngl": notebook.html with iwd.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
nglview 3.0.1+9.gd0a186b
ipywidgets 7.6.1
jupyter-nbconvert 7.6.1
jupyter-notebook 6.0.7
The text was updated successfully, but these errors were encountered:
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.
Hey, man, thanks a lot for looking into this, don't worry about the late reply 😉
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
The text was updated successfully, but these errors were encountered: