如何在浏览器中增加Jupyter / ipython笔记本的单元格宽度?

我想在浏览器中增加ipython笔记本的宽度。我有一个高分辨率的屏幕,我想扩展单元格的宽度/大小以利用这个额外的空间。


谢谢!


编辑:5/2017


我现在使用jupyterthemes:https : //github.com/dunovank/jupyter-themes


和此命令:


jt -t oceans16 -f roboto -fs 12 -cellw 100%

可以将宽度设置为100%,并且主题很好。


人到中年有点甜
浏览 785回答 3
3回答

慕容3067478

如果您不想更改默认设置,而只想更改正在使用的当前笔记本的宽度,则可以在单元格中输入以下内容:from IPython.core.display import display, HTMLdisplay(HTML("<style>.container { width:100% !important; }</style>"))

陪伴而非守候

为了使它与jupyter(版本4.0.6)一起使用,我创建了以下内容~/.jupyter/custom/custom.css:/* Make the notebook cells take almost all available width */.container {&nbsp; &nbsp; width: 99% !important;}&nbsp; &nbsp;/* Prevent the edit cell highlight box from getting clipped;&nbsp;* important so that it also works when cell is in edit mode*/div.cell.selected {&nbsp; &nbsp; border-left-width: 1px !important;}
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python