Re: [matplotlib-devel] matplotlib.use()

2012-07-20 Thread Ryan May
On Fri, Jul 20, 2012 at 3:20 PM, Eric Firing wrote: > This would be defeating the basic idea: use() is *only* designed to take > effect *once*. If you need to switch backends, it takes more than what > use() does, hence the need for switch_backend(). (But see below.) > > The warn=False invocatio

Re: [matplotlib-devel] matplotlib.use()

2012-07-20 Thread Benjamin Root
On Fri, Jul 20, 2012 at 3:20 PM, Eric Firing wrote: > On 2012/07/20 9:34 AM, Ryan May wrote: > > Hi, > > > > I'm here at the SciPy sprints trying to fix switching inline/gui for > > the ipython notebook. I've noticed something weird about > > matplotlib.use() : > > > > if 'matplotlib.backend

Re: [matplotlib-devel] matplotlib.use()

2012-07-20 Thread Eric Firing
On 2012/07/20 9:34 AM, Ryan May wrote: > Hi, > > I'm here at the SciPy sprints trying to fix switching inline/gui for > the ipython notebook. I've noticed something weird about > matplotlib.use() : > > if 'matplotlib.backends' in sys.modules: > if warn: warnings.warn(_use_error_msg) >

[matplotlib-devel] matplotlib.use()

2012-07-20 Thread Ryan May
Hi, I'm here at the SciPy sprints trying to fix switching inline/gui for the ipython notebook. I've noticed something weird about matplotlib.use() : if 'matplotlib.backends' in sys.modules: if warn: warnings.warn(_use_error_msg) return if arg.startswith('module://'):