I know I can change the default matplotlib backend when importing matplotlib in my code like the answers here. But I'm sure there's a way to change the default backend configuration at system level, by uncommenting a line in a file.
The problem is: I don't remember what file it is and I wasn't able to find it at the documentation. This is important because I don't want to use agg as the default, as it's not a GUI backend.