Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread John Hunter
On Fri, Jun 27, 2008 at 12:52 PM, Andrew Jaffe [EMAIL PROTECTED] wrote: Hi all, All the usual apologies if this is a FAQ, but I can't find it. Is there any way to change the backend interactively when using ipython? Take a look at the pylab/pyplot switch_backends function

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Andrew Jaffe
Hi John, Thanks for the very fast response, but it doesn't quite work for my use case. I don't know if it's because my default is interactive, or ipython on general, or something else... n21:~/work/Pointing ipython -pylab -nobanner In [1]: switch_backend('Agg')

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Eric Firing
Andrew, The traceback shows that you are tripping over something that has been changed since the version you are using, so it might work if you update your mpl, preferably from svn. I think the relevant change was made by John quite recently, but I haven't looked it up. Eric Andrew Jaffe

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Andrew Jaffe
Hi- [OK, sorry for all the top-posting...] Anyway, if I move to the current svn, I get In [1]: switch_backend('Agg') --- TypeError Traceback (most recent call last)

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread John Hunter
On Fri, Jun 27, 2008 at 1:31 PM, Andrew Jaffe [EMAIL PROTECTED] wrote: Hi- [OK, sorry for all the top-posting...] Anyway, if I move to the current svn, I get In [1]: switch_backend('Agg') --- TypeError

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Andrew Jaffe
Hi John, John Hunter wrote: On Fri, Jun 27, 2008 at 1:31 PM, Andrew Jaffe [EMAIL PROTECTED] wrote: Hi- [OK, sorry for all the top-posting...] Anyway, if I move to the current svn, I get ... Try removing all the matplotlib installs, eggs, etc. Something is getting confused, because

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Fernando Perez
On Fri, Jun 27, 2008 at 10:52 AM, Andrew Jaffe [EMAIL PROTECTED] wrote: Hi all, All the usual apologies if this is a FAQ, but I can't find it. Is there any way to change the backend interactively when using ipython? Best of all would a way to make changes in the middle of a session, but

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Andrew Jaffe
Hi, Fernando Perez wrote: On Fri, Jun 27, 2008 at 10:52 AM, Andrew Jaffe [EMAIL PROTECTED] wrote: Hi all, All the usual apologies if this is a FAQ, but I can't find it. Is there any way to change the backend interactively when using ipython? Best of all would a way to make changes in the

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread John Hunter
On Fri, Jun 27, 2008 at 1:49 PM, Andrew Jaffe [EMAIL PROTECTED] wrote: In fact I deleted my whole svn directory and re-updated, but no change. I'm pretty sure I've done this correctly... You also need to delete previous installs of matplotlib. If it matters, I'm installing as an egg.

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Andrew Jaffe
Hi John, John Hunter wrote: In fact I deleted my whole svn directory and re-updated, but no change. I'm pretty sure I've done this correctly... You also need to delete previous installs of matplotlib. If it matters, I'm installing as an egg. [python setupegg.py build bdist_egg;

Re: [Matplotlib-users] Changing backend with ipython

2008-06-27 Thread Andrew Jaffe
Hi all, I should point out that for my actual use case, Fernando explained the right thing to do: start ipython *without* pylab, in which case use('Agg') [for example] is legal. Andrew Andrew Jaffe wrote: Hi, Fernando Perez wrote: On Fri, Jun 27, 2008 at 10:52 AM, Andrew Jaffe [EMAIL