Reputation: 12791
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?
Upvotes: 9
Views: 489
Reputation: 2364
IPython configuration is used, as IPython itself chooses the matplotlib backend.
For reference, see IPython:core/pylabtools.py:activate_matplotlib and notice how matplotlib.use(backend)
is called explicitly.
Upvotes: 2