anaconda\Lib\site-packages\notebook\static\custom下的custom.css文件内容替换为:
/*
Placeholder for custom user CSS
mainly to be overridden in profile/static/custom/custom.css
This will always be an empty file in IPython
*/
.CodeMirror pre {font-family: Consolas; font-size: 10pt;}
* {font-family: Consolas;}
div.output_area pre {font-family: Consolas; font-size: 10pt;}
div.input_prompt {font-family: Consolas; font-size: 10pt;}
div.out_prompt_overlay {font-family: Consolas; font-size: 10pt;}
div.prompt {font-family: Consolas; font-size: 10pt;}
span.cm-comment {font-family: Consolas !important; font-style:normal !important; color:#FFAE3C !important;}
.container { width:100% !important; }
如果根据上面的路径找不到,请执行下面的代码(找到site-packages文件夹路径):
import sys
print(sys.path)
网友评论