dunovank / jupyter-themes

Custom Jupyter Notebook Themes
MIT License
9.74k stars 1.06k forks source link

Line number alignment is wrong #396

Open nikitperiwal opened 4 years ago

nikitperiwal commented 4 years ago

The alignment for line number is wrong after i have changed the theme. My current theme config: jt -t monokai -f fira -fs 12 -nf ptsans -nfs 12 -N -kl -cursw 2 -cursc r -cellw 90% image

GiulioTani commented 3 years ago

The same thing happens to me, except that the numbers move even farther to the right and over the first character of the line. This happens with all the configurations and themes I tried.

immagine

I don't know if it helps but I noticed that - while the page is rendering - the numbers start in the right place, then jump on the border between their region and the cell and finally on the code. I'm using Firefox 87.0 on Linux and this config is jt -t onedork -N -T -kl -cellw 88% -cursc r.

lydubs commented 2 years ago

Has anyone found a fix for this issue yet?

Cute-Pig commented 2 years ago

In nbextensions, uncheck "Codefolding", I used this method to solve the problem of abnormal display of line numbers. Every time I open the notebook, the line number is displayed in the normal position, and then after a short period of time, it is displayed abnormally, and the fold symbol appears, so I guess it is the problem of this plugin.