小编Har*_*sha的帖子

如何在 jupyter notebook 中并排显示图像

我使用了以下代码,但它垂直显示图像。我希望它们在 Jupyter Notebook 中并排显示。

display(Image.open(BytesIO(Item[iii][b'imgs'])))
display(Image.open(BytesIO(Item[jjj][b'imgs'])))
Run Code Online (Sandbox Code Playgroud)

我曾尝试使用此代码

display(HTML("<table><tr><td>display(Image.open(BytesIO(Item[jjj][b'imgs'])))) 
Run Code Online (Sandbox Code Playgroud)

但它是显示文本 display(Image.open(BytesIO(Item[jjj][b'imgs']))))

python jupyter-notebook

5
推荐指数
2
解决办法
5881
查看次数

标签 统计

jupyter-notebook ×1

python ×1