本文介绍了如何在浏览器中增加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:
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>"))
这篇关于如何在浏览器中增加Jupyter / ipython笔记本的单元格宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!