瞎折腾:隐藏juypterNotebook脚本框左侧的“run”按钮及字体格式调整

重装系统后anaconda带的jupyterNotebook更新了一个奇怪的东西,脚本框的左侧有一个“runCell”按钮,导致框的左边线与上面注释框的左边线没能对齐,十分难受。
脚本框2左侧有一个按钮导致脚本框左边线无法对齐
于是考虑对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; }
  • 4
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值