Instead of embedding html code in a data framework, I suggest using a formatter. Unfortunately, you need to set truncation settings, so long text will not be truncated "...".
import pandas as pd from IPython.display import Image, HTML df = pd.DataFrame(['./image01.png', './image02.png'], columns = ['Image']) def path_to_image_html(path): return '<img src="'+ path + '"/>' pd.set_option('display.max_colwidth', -1) HTML(df.to_html(escape=False ,formatters=dict(Image=path_to_image_html)))
source share