I did a few different things, but here are the steps I think are required to make it work:
- Make sure VcXsrv is installed and working
- Install Tk backend with
sudo apt install python3-tk
- Add these lines to the python program
import matplotlib
matplotlib.use("TkAgg")
- Possibly also install these (might only be specific to lab 6 stuff):
sudo apt-get install python3-pil python3-pil.imagetk