为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

人到中年有点甜 2019-11-04 15:10:21
我想在浏览器中增加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>"))


查看完整回答
反对 回复 2019-11-04
?
陪伴而非守候

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;

}


查看完整回答
反对 回复 2019-11-04
  • 3 回答
  • 0 关注
  • 784 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信