You can hover to .ipython
folder (i.e. you can type $ ipython locate
in your terminal/bash OR CMD.exe Prompt
from your Anaconda Navigator to see where is your ipython is located)
Then, in .ipython
, you will see profile_default
directory which is the default one. This directory will have static/custom/custom.css
file located.
You can now apply change to this custom.css
file. There are a lot of styles in the custom.css
file that you can use or search for. For example, you can see this link (which is my own customize custom.css
file)
Basically, this custom.css
file apply changes to your browser. You can use inspect elements in your ipython notebook to see which elements you want to change. Then, you can changes to the custom.css
file. For example, you can add these chunk to change font in .CodeMirror pre
to type Monaco
.CodeMirror pre {font-family: Monaco; font-size: 9pt;}
Note that now for Jupyter notebook version >= 4.1, the custom css file is moved to ~/.jupyter/custom/custom.css
instead.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…