Currently, `Wikichart.finalize_plot` calls `matplotlib.pyplot.show` in addition to saving the chart to its specified location. This displays the charts in the reporting notebook, which is helpful for the person running the metrics.
However, this also means that the full image data of each chart gets included within the notebook. That makes the file really large: currently 2.1 MB. This means that GitLab is usually unable to display a diff when the notebook is changed, which makes code review much harder.
We can work around this by including the graphs in the notebook via Markdown. Just put the following in a Markdown cell:
```



...
```
From the user's point of view, this looks nearly the same, but the contents of the image are not included in the notebook file. When I tested, switching to this method decreased the size of the file by 99%, to just 26 kB.
This apparently breaks when there's a space in the name of the image file, but it's easy enough for us to change those file names.
This is also likely to mean that the images do not display in the rendered version of the notebook in GitLab, but we may be able to work around that or just accept the regression.
Alternatively, we could just remove the charts entirely and say that users should just look in the charts folder to see the charts. Now that all of them have clear names, that wouldn't be a huge burden.