Python matplotlib can't show plot in NixOS

You could also try out one of these solutions to get PyQt running in a venv on nixos: Pyhton: use PyQt6 within an virtual environment (venv)