I want to change the default font (to Gill sans) that displays in Jupyter, but am having problems knowing where I go to edit it.
I have looked in the .ipython folder and I have no Static folder, and I have looked in the .jupyter folder and it is empty.
Does anyone know?
If you want to change the text cell font and font size you can type the following in a cell and hit shift+enter.
You can modify the styles of Jupyter notebook by adding values to the file in;
.jupyter\custom\custom.css
If the custom
dir isn't in .jupyter
just make it and add custom.css
in it.
In your new blank custom.css
file you can add something like this to change the font for the code mirror;
.CodeMirror pre, .CodeMirror-dialog, .CodeMirror-dialog .CodeMirror-search-field, .terminal-app .terminal {
font-family: YOUR-FAV-FONT;
font-size: 12pt;
}
Here is a example of a pimped out custom.css. It's from my one-dark-notebook repo on github. feel free to clone/fork it and do whatever.
You can change font size, background themes, cell widths etc.. from the command line. Check out the following GitHub page. https://github.com/dunovank/jupyter-themes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With