Display multiple images in one IPython Notebook cell?

后端 未结 10 1484
面向向阳花
面向向阳花 2020-12-12 12:26

If I have multiple images (loaded as NumPy arrays) how can I display the in one IPython Notebook cell?

I know that I can use plt.imshow(ima) to display

10条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-12 13:11

    This is easier and works:

    from IPython.display import Image
    from IPython.display import display
    x = Image(filename='1.png') 
    y = Image(filename='2.png') 
    display(x, y)
    

提交回复
热议问题