dunovank / jupyter-themes

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

Changing theme works but changing fonts doesn't #347

Open navicenna opened 5 years ago

navicenna commented 5 years ago

I tried running jt -t chesterish and this command changed my Jupyter notebook theme after a refresh.

However, when I restore via jt -r and then just try to change the font, it doesn't change anything, e.g. jt -f oxygen -fs 14.

What could be causing this issue?

navicenna commented 5 years ago

Actually I think I found the issue. Changing the font along with changing the theme works as expected. But when only changing the font, it doesn't modify the custom CSS file thoroughly enough to handle the new font.

A workaround is to add something like:

.CodeMirror {
  font-family: 'PT Mono';
  font-size: 14pt;
}

to the custom CSS file, assuming that you've already run jt -f ptmono.