Python Jupyter - Change default font

I want to change the default font (on Gill sans) that appears in Jupyter, but I have trouble understanding where I'm going to edit it.

I looked at the .ipython folder and I don't have the Static folder, and I looked at the .jupyter folder and is empty.

Somebody knows?

+4
source share
3 answers

You can change the styles of your Jupyter laptop by adding values ​​to the file:

.jupyter\custom\custom.css

If dir is customnot in .jupyter, just him and custom.css.

In the new file, custom.cssyou can add something similar 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;
}

custom.css. - repo github. / .

+5

defalut :/.jupyter/jupyter_qtconsole_config.py . (. 23) https://media.readthedocs.org/pdf/qtconsole/latest/qtconsole.pdf

+2

You can change the font size, background themes, cell width, etc. from the command line. Check out the next github page. https://github.com/dunovank/jupyter-themes

0
source

Source: https://habr.com/ru/post/1683160/


All Articles