如何在IPython notebook中使用滚动条显示大型图像?

3

如何在IPython笔记本输出单元格中显示带有滚动条的大图像?下面的示例将图像缩小以适应单元格,并且width没有任何效果。

from IPython.core.display import Image, display display(Image('https://i.ytimg.com/vi/j22DmsZEv30/maxresdefault.jpg', width=1900))

1个回答

4

使用 unconfined=True 来禁用图像的最大宽度限制:

from IPython.core.display import Image, display display(Image('https://i.ytimg.com/vi/j22DmsZEv30/maxresdefault.jpg', width=1900, unconfined=True))


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接