Jupyter-themes: Changing theme works but changing fonts doesn't

Created on 19 Jun 2019  路  1Comment  路  Source: dunovank/jupyter-themes

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?

Most helpful comment

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.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ShriRambo picture ShriRambo  路  6Comments

VimalMollyn picture VimalMollyn  路  4Comments

Brett99 picture Brett99  路  7Comments

tanmay7270 picture tanmay7270  路  5Comments

zwh42 picture zwh42  路  4Comments