In an HTML table, how to add text beside plot in jupyter notebook using python?
问题 Any ideas on how to create a 1 X 2 HTML table where cell {0} is a matplotlib plot and cell {1} is a text description for Python 3.X? import matplotlib.pyplot as plt from io import BytesIO %matplotlib inline def add_split_screen(fig, text, iwidth=None): figdata = BytesIO() fig.savefig(figdata, format='png') figdata.seek(0) figdata figdata.close() iwidth = ' width={0} '.format(iwidth) if iwidth is not None else '' datatable = '<table><tr><td>{0}</td><td>{1}</td></tr></table>'.format(figdata,