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

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

问题描述:

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

I would like to increase the width of the ipython notebook in my browser. I have a high-resolution screen, and I would like to expand the cell width/size to make use of this extra space.

谢谢!

编辑:5/2017

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

I now use jupyterthemes: https://github.com/dunovank/jupyter-themes

和这个命令:

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

使用漂亮的主题将宽度设置为100%。

which sets the width to 100% with a nice theme.

如果您不想更改默认设置,并且只想更改正在处理的当前笔记本的宽度,则可以在单元格中输入以下内容: / p>

If you don't want to change your default settings, and you only want to change the width of the current notebook you're working on, you can enter the following into a cell:

from IPython.core.display import display, HTML
display(HTML("<style>.container { width:100% !important; }</style>"))