import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(1, 1), dpi=4) ax.imshow([[0, 1], [2, 3]]);
you should see this when converting from ipynb to html instead of the image below.