matplotlib has a config file and IPython has its own. Which one has precedence when it comes to setting things like matplotlib backends?
For example, say my config file for matplotlib says to use a specific backend, but then I modify my IPython startup or config files to use a different one. Which one would be used when I start IPython and import matplotlib?
More generally, what is the right way to set things up so that different profiles use different matplotlib backends or matplotlib configurations?