gpt4 book ai didi

python - Jupyter笔记本上的显示错误

转载 作者:行者123 更新时间:2023-11-28 03:58:00 29 4
gpt4 key购买 nike

我试图将我的 jupyter 笔记本的外观更改为更暗的主题,并使用以下代码替换了三个不同文件夹中的三个 custom.css,我的笔记本现在看起来像这样 Notebook Appearance没有显示顶部菜单。请帮忙!

环境:Anaconda 4.2.0,python 3.5这是我提到的指令: http://sherifsoliman.com/2016/01/11/theming-ipython-jupyter-notebook/

文件夹:
~\Anaconda3\Lib\site-packages\notebook\static\custom
~\Anaconda3\Lib\site-packages\jupyter_core\tests\dotipython_empty\profile_default\static\custom
~\Anaconda3\Lib\site-packages\jupyter_core\tests\dotipython\profile_default\static

代码:

/*

Name: Base16 Flat Dark
Author: Chris Kempson (http://chriskempson.com)

CodeMirror template adapted for IPython Notebook by Nikhil Sonnad (https://github.com/nsonnad/base16-ipython-notebook)
CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-chrome-devtools)
Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)

*/

/* Uncomment to use a custom font
div#notebook, div.CodeMirror, div.output_area pre, div.output_wrapper, div.prompt {
font-family: 'Custom Font Name', monospace !important;
}
*/

/* GLOBALS */
body {background-color: #2C3E50;}
a {color: #3498DB;}

/* INTRO PAGE */
.toolbar_info, .list_container {color: #f5f5f5;}

/* NOTEBOOK */

/* comment out this line to bring the toolbar back */
div#maintoolbar, div#header {display: none !important;}

div#notebook {border-top: none;}

div.input_prompt {color: #be643c;}
div.output_prompt {color: #9B59B6;}
div.input_area {
border-radius: 0px;
border: 1px solid #7F8C8D;
}
div.output_area pre {font-weight: normal; color: #e0e0e0;}
div.output_subarea {font-weight: normal; color: #e0e0e0;}

.rendered_html table, .rendered_html th, .rendered_html tr, .rendered_html td {
border: 1px #e0e0e0 solid;
color: #e0e0e0;
}
div.output_html { font-family: sans-serif; }
table.dataframe tr {border: 1px #e0e0e0;}

div.cell.selected {border-radius: 0px;}
div.cell.edit_mode {border-radius: 0px; border: thin solid #9B59B6;}
div.text_cell_render, div.output_html {color: #e0e0e0;}

span.ansiblack {color: #34495E;}
span.ansiblue {color: #1ABC9C;}
span.ansigray {color: #BDC3C7;}
span.ansigreen {color: #2ECC71;}
span.ansipurple {color: #9B59B6;}
span.ansired {color: #E74C3C;}
span.ansiyellow {color: #F1C40F;}

div.output_stderr {background-color: #E74C3C;}
div.output_stderr pre {color: #f5f5f5;}

.cm-s-ipython.CodeMirror {background: #2C3E50; color: #f5f5f5;}
.cm-s-ipython div.CodeMirror-selected {background: #34495E !important;}
.cm-s-ipython .CodeMirror-gutters {background: #2C3E50; border-right: 0px;}
.cm-s-ipython .CodeMirror-linenumber {color: #95A5A6;}
.cm-s-ipython .CodeMirror-cursor {border-left: 1px solid #BDC3C7 !important;}

.cm-s-ipython span.cm-comment {color: #be643c;}
.cm-s-ipython span.cm-atom {color: #9B59B6;}
.cm-s-ipython span.cm-number {color: #9B59B6;}

.cm-s-ipython span.cm-property, .cm-s-ipython span.cm-attribute {color: #2ECC71;}
.cm-s-ipython span.cm-keyword {color: #E74C3C;}
.cm-s-ipython span.cm-string {color: #F1C40F;}
.cm-s-ipython span.cm-operator {color: #be643c;}
.cm-s-ipython span.cm-builtin {color: #9B59B6;}

.cm-s-ipython span.cm-variable {color: #2ECC71;}
.cm-s-ipython span.cm-variable-2 {color: #3498DB;}
.cm-s-ipython span.cm-def {color: #E67E22;}
.cm-s-ipython span.cm-error {background: #E74C3C; color: #BDC3C7;}
.cm-s-ipython span.cm-bracket {color: #e0e0e0;}
.cm-s-ipython span.cm-tag {color: #E74C3C;}
.cm-s-ipython span.cm-link {color: #9B59B6;}

.cm-s-ipython .CodeMirror-matchingbracket { text-decoration: underline; color: #f5f5f5 !important;}

最佳答案

我通过在这个 github.github.com/dunovank/jupyter-themes 中使用另一个 python 包解决了这个问题

关于python - Jupyter笔记本上的显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43355540/

29 4 0
文章推荐: php - php文件上传错误
文章推荐: php - 有没有办法在不知道名字的情况下找出 POST 变量?
文章推荐: html - z-index 与 : is there any reason why this doesnt work on majors browser?(Firefox 除外)