/* Make the notebook cells take almost all available width */
.container {
width: 99% !important;
}
/* Prevent the edit cell highlight box from getting clipped;
* important so that it also works when cell is in edit mode*/
div.cell.selected {
border-left-width: 1px !important;
}
为了让它与jupyter(4.0.6版)一起工作,我创建了
~/.jupyter/custom/custom.css
,其中包含:如果不想更改默认设置,而只想更改当前笔记本的宽度,则可以在单元格中输入以下内容:
这个
div.cell
解决方案实际上并不适用于我的IPython,不过幸运的是有人为新IPythons建议了一个有效的解决方案:创建包含内容的文件
~/.ipython/profile_default/static/custom/custom.css
(iPython)或~/.jupyter/custom/custom.css
(Jupyter)然后重新启动iPython/Jupyter笔记本。请注意,这将影响所有笔记本电脑。
相关问题 更多 >
编程相关推荐