我想在浏览器中增加ipython笔记本的宽度。我有一个高分辨率的屏幕,我想扩大单元格的宽度/大小,以利用这个额外的空间。
谢谢!
编辑/答案: 5/2017
我现在使用jupyterthemes:https://github.com/dunovank/jupyter-themes
还有这个命令:
jt -t oceans16 -f roboto -fs 12 -cellw 100%
它将宽度设置为100%,主题很好。
发布于 2015-12-03 13:06:51
如果您不想更改默认设置,并且只想更改正在处理的当前笔记本的宽度,则可以在单元格中输入以下内容:
from IPython.core.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))
发布于 2014-06-13 22:08:30
那个div.cell
解决方案实际上在我的IPython上不起作用,然而幸运的是,有人为新的IPythons提出了一个有效的解决方案:
创建包含内容的文件~/.ipython/profile_default/static/custom/custom.css
(iPython)或~/.jupyter/custom/custom.css
(Jupyter
.container { width:100% !important; }
然后重新启动iPython/Jupyter notebooks。请注意,这将影响所有笔记本电脑。
发布于 2016-02-11 22:38:53
为了让它与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;
}
https://stackoverflow.com/questions/21971449
复制相似问题