美文网首页
jupyter notebook调整代码cell宽度

jupyter notebook调整代码cell宽度

作者: Panda_phc | 来源:发表于2020-11-11 10:58 被阅读0次

    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)
    

    相关文章

      网友评论

          本文标题:jupyter notebook调整代码cell宽度

          本文链接:https://www.haomeiwen.com/subject/zswxwhtx.html