我想在浏览器中增加ipython笔记本的宽度。我有一个高分辨率的屏幕,我想扩展单元格的宽度/大小以利用这个额外的空间。谢谢!编辑:5/2017我现在使用jupyterthemes:https : //github.com/dunovank/jupyter-themes和此命令:jt -t oceans16 -f roboto -fs 12 -cellw 100%可以将宽度设置为100%,并且主题很好。
3 回答

慕容3067478
TA贡献1773条经验 获得超3个赞
如果您不想更改默认设置,而只想更改正在使用的当前笔记本的宽度,则可以在单元格中输入以下内容:
from IPython.core.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))

陪伴而非守候
TA贡献1757条经验 获得超8个赞
为了使它与jupyter(版本4.0.6)一起使用,我创建了以下内容~/.jupyter/custom/custom.css:
/* 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;
}
添加回答
举报
0/150
提交
取消