如何在IPython笔记本输出单元格中显示带有滚动条的大图像?下面的示例将图像缩小以适应单元格,并且width
没有任何效果。
from IPython.core.display import Image, display
display(Image('https://i.ytimg.com/vi/j22DmsZEv30/maxresdefault.jpg', width=1900))
如何在IPython笔记本输出单元格中显示带有滚动条的大图像?下面的示例将图像缩小以适应单元格,并且width
没有任何效果。
from IPython.core.display import Image, display
display(Image('https://i.ytimg.com/vi/j22DmsZEv30/maxresdefault.jpg', width=1900))
使用 unconfined=True
来禁用图像的最大宽度限制:
from IPython.core.display import Image, display
display(Image('https://i.ytimg.com/vi/j22DmsZEv30/maxresdefault.jpg', width=1900, unconfined=True))