2016-04-21 70 views
1

如何使用IPython筆記本輸出單元格中的滾動條顯示大圖像?下面的示例縮小圖像以適應單元格,並且width不起任何作用。如何從IPython筆記本滾動顯示大圖像?

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

回答

1

使用unconfined=True禁用圖像的最大寬度限制:

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