Plots generated with %matplotlib widget are not being saved when converting to HTML file

%matplotlib notebook used to be working, but we had to pin it to version matplotlib==3.1.3 due to another bug (see Bug in interactive matplotlib plots in SWAN notebooks)

The problem is that we wanted to remove that old dependancy, so we switched to the notebook backend, created new plots in our notebook and now it would be a great effort to migrate everything back.