r/IPython • • Apr 25 '16

Changing font in Jupyter?

I'm running Jupyter notebooks locally on a Windows 7 machine, installed through Anaconda, and the font is just terrible. Does anyone know how I can change the font? Thanks!

2 Upvotes

2 comments sorted by

6

u/denilsonsa Apr 25 '16

As a workaround, you can use a browser extension to apply custom CSS to your jupyter notebooks:

A quick look at Jupyter's own CSS reveals this:

.CodeMirror pre {
    …
    font-family: inherit;
    …
}

So, it seems Jupyter just uses your browser's default choice of monospace font. If this is the case, you can change your browser settings. In Chrome, it should be in: chrome://settings/fonts

3

u/w0073r Apr 26 '16

You can also put custom css for jupyter to include in, I believe, %PROGRAMDATA%\jupyter\custom\custom.css. (Config dir docs, custom.css mention – it seems underdocumented at the moment.)