我已经用这个增加了浏览器上 jupyter notebook 单元格的宽度
.container {
width:100% !important;
}
但是,我还想缩小文本单元格的左侧部分。
对于上面的图片,我想缩小零件div.prompt.input_prompt
。
是否可以仅用 css 来完成?如何?
另外,如果可以这样做,如何为所有非代码单元自动清空左侧部分?
提示宽度在notebook/static/notebook/less/cell.less#L80 中设置,因此您可以执行以下操作:
/* Narrow the prompts */
.prompt {
min-width: 10ex;
}
/* Hide prompts altogether for non-conda cells */
.cell:not(.code_cell) .prompt {
display: none;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句