Plots are not rendered after calling set_matplotlib_formats("svg")

Minimal code to reproduce the issue:

from matplotlib import pyplot as plt
from IPython import display
plt.plot(range(10), range(10)) # no output

It took me quite some time to figure out why my plots weren’t showing up because the set_matplotlib_formats was being called in one of my imported packages. It would be nice if there was some kind of error message or warning that svgs aren’t supported.

Hi @PaulT,
Thanks for the report! Hopefully we will deploy fix at the beginning of the week.

1 Like