如何在浏览器中增加 Jupyter/ipython notebook 的单元格宽度? [英] How do I increase the cell width of the Jupyter/ipython notebook in my browser?

查看:33
本文介绍了如何在浏览器中增加 Jupyter/ipython notebook 的单元格宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想增加浏览器中 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 主题

还有这个命令:

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

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

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

推荐答案

如果您不想更改默认设置,而只想更改您正在处理的当前笔记本的宽度,您可以输入将以下内容放入一个单元格中:

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 notebook 的单元格宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆