I would like to export a jupyter notebook cell as a png image.
import pandas as pd
import numpy as np
np.random.seed(24)
df = pd.DataFrame({'A': np.linspace(1, 10, 10)})
df = pd.concat([df, pd.DataFrame(np.random.randn(10, 4), columns=list('BCDE'))],
axis=1)
df.iloc[3, 3] = np.nan
df.iloc[0, 2] = np.nan
df.style
df_styled = df.style.highlight_max(axis=0)
df_styled
If I run this on a jupyter notebook, the output is a nice representation of the table. I wonder if it's possible to get this representation as an image.