重装系统后anaconda带的jupyterNotebook更新了一个奇怪的东西,脚本框的左侧有一个“runCell”按钮,导致框的左边线与上面注释框的左边线没能对齐,十分难受。
于是考虑对jupyterNoteBook进行调整,由于是anaconda附带的,所以找到如下ccs文件
\anaconda3\Lib\site-packages\notebook\static\custom\custom.ccs
对这个class=‘run_this_cell’的ccs进行调整
div.run_this_cell { display: none; }
完成
下附自用的jupyterNotebook字体更改ccs
#notebook-container {
width: 90%
}
div#notebook {
font-family: Consolas, "PingFangSC-Medium", "Microsoft YaHei";
line-height: 20px;
-webkit-font-smoothing: antialiased !important;
}
div#notebook h2 {
color: #007aff;
}
div#notebook blockquote{
background-color: #f8f8f8;
color: #505050;
padding: 8.5px;
margin: 0.5em -0.5em 0.5em -0.4em;
}
div#notebook p code, div#notebook li code {
font-family: Consolas, "PingFangSC-Medium", "Microsoft YaHei";
font-size: 1em !important;
color: #111111;
border: 0.5px solid #cfcfcf;
border-radius: 2px;
background-color: #f7f7f7;
padding: .1em .2em;
margin: 0px 2px;
}
div.text_cell_render pre {
border: 1px solid #cfcfcf;
border-radius: 2px;
background: #f7f7f7;
line-height: 1.21429em;
padding: 8.5px;
margin: 0.5em -0.5em 0.5em -0.4em;
}
div.text_cell_render code {
font-family: Consolas, "PingFangSC-Medium", "Microsoft YaHei";
background: #f7f7f7;
}
div.CodeMirror-code pre.CodeMirror-line {
font-family: Consolas, "PingFangSC-Medium", "Microsoft YaHei";
font-size: 11pt;
line-height: 140%;
-webkit-font-smoothing: antialiased !important;
}
div.output pre {
font-family: Consolas, "PingFangSC-Medium", "Microsoft YaHei";
line-height: 20px;
-webkit-font-smoothing: antialiased !important;
}
span.cm-comment {
font-family: Consolas, "PingFangSC-Medium", "Microsoft YaHei" !important;
font-style: normal !important;
}
div.run_this_cell { display: none; }