Re: [matplotlib-devel] GTK pylab console

2008-07-01 Thread Fernando Perez
On Tue, Jul 1, 2008 at 1:34 PM, Nicolas Rougier <[EMAIL PROTECTED]> wrote: > > I'm not yet on the ipython-dev but I read the archive to check progress > on ipython1 and I get a bit lost with the redesign. The backend/frontend > will definitely help to embed ipython. Where can I get the latest > ver

Re: [matplotlib-devel] GTK pylab console

2008-07-01 Thread Nicolas Rougier
I'm not yet on the ipython-dev but I read the archive to check progress on ipython1 and I get a bit lost with the redesign. The backend/frontend will definitely help to embed ipython. Where can I get the latest version (with wx for example) so I can try to code the GTK one ? Concerning the colors

Re: [matplotlib-devel] GTK pylab console

2008-07-01 Thread Nicolas Rougier
The "help()" freeze is not really a freeze since you can type input within the terminal from where you started pycons. I managed to find that the IPython import was responsible for this behavior for some unknown reason. If you remove all reference to IPython in the pycons file, then you got the ex

Re: [matplotlib-devel] GTK pylab console

2008-07-01 Thread Nicolas Rougier
Thanks, corrected. I just forgot the pylab import, it has been corrected as well. Nicolas On Tue, 2008-07-01 at 08:38 -0500, John Hunter wrote: > On Tue, Jul 1, 2008 at 5:31 AM, Nicolas Rougier > <[EMAIL PROTECTED]> wrote: > > > There is now a installable package (pycons.tgz) available from: >

Re: [matplotlib-devel] GTK pylab console

2008-07-01 Thread Fernando Perez
On Tue, Jul 1, 2008 at 6:01 AM, Nicolas Rougier <[EMAIL PROTECTED]> wrote: > > > Thanks, > > I changed the license to a BSD one, hope this is compatible with > matplotlib. I also changed the module name from 'gtk_console' to pycons > since it makes more sense. Beautiful work, and many thanks for t

Re: [matplotlib-devel] GTK pylab console

2008-07-01 Thread John Hunter
On Tue, Jul 1, 2008 at 8:37 AM, David Trem <[EMAIL PROTECTED]> wrote: > Thanks you very much considering my license request! > I don't think there could be license issue with matplotlib since it is > also using a quite permissive license. Could the matplotlib gurus > comment on that? Yes, the BSD

Re: [matplotlib-devel] GTK pylab console

2008-07-01 Thread John Hunter
On Tue, Jul 1, 2008 at 5:31 AM, Nicolas Rougier <[EMAIL PROTECTED]> wrote: > There is now a installable package (pycons.tgz) available from: > > http://www.loria.fr/~rougier/pycons.html Cool, this is working for me now. Very nice. Two more comments: You must override draw_if_interactive *befor

Re: [matplotlib-devel] GTK pylab console

2008-07-01 Thread David Trem
Sorry for the trouble, I started testing your "old" pylab wich was provided without the setup script, which led me testing pycons from the pycons folder itself (no setup.py install done). Pycons was actually working fine. However, I encounter problem when closing the console with a graph inside

Re: [matplotlib-devel] GTK pylab console

2008-07-01 Thread Nicolas Rougier
Thanks, I changed the license to a BSD one, hope this is compatible with matplotlib. I also changed the module name from 'gtk_console' to pycons since it makes more sense. I also tried to remove the gtk_console.console (now this is pycons.console) in favor of console but it does not work as exp

Re: [matplotlib-devel] GTK pylab console

2008-07-01 Thread David Trem
Hi Nicolas, Your pycons is great! I has to correct a small issue in the tar.gz from your website before being able to test pycons: I had to change: "import gtk_console.console as cons" to "import console as cons" in pycons file around line 12. After that I can report pycons is running on my

Re: [matplotlib-devel] GTK pylab console

2008-07-01 Thread Nicolas Rougier
Hi, I've added some basic support for readline shortcuts: Ctrl-A: start of line Ctrl-E: end of line Ctrl-K: kill from cursor to end of line Ctrl-Y: yank kill buffer Ctrl-L: clear console I've also added an option for displaying the toolbar(2). Usage is now: pycons [--ipython] [--pylab]

Re: [matplotlib-devel] GTK pylab console

2008-06-30 Thread John Hunter
On Sun, Jun 29, 2008 at 9:28 AM, Nicolas Rougier <[EMAIL PROTECTED]> wrote: > > > Thanks John, I've update the new version with your code. > > It is now available at: > http://www.loria.fr/~rougier/pylab.html > > You can now choose between python and ipython (option -s python > or -s ipython) and

Re: [matplotlib-devel] GTK pylab console

2008-06-29 Thread Nicolas Rougier
Thanks John, I've update the new version with your code. It is now available at: http://www.loria.fr/~rougier/pylab.html You can now choose between python and ipython (option -s python or -s ipython) and all user events on a figure should be handled properly (mouse, scroll and key). Concerni

Re: [matplotlib-devel] GTK pylab console

2008-06-27 Thread John Hunter
On Fri, Jun 27, 2008 at 8:03 AM, Nicolas Rougier <[EMAIL PROTECTED]> wrote: > I've developed a GTK/Python/Pylab console that is able to display > most matplotlib figures directly within the console and handle > matplotlib mouse events properly. What would be really great is if you could insert th

[matplotlib-devel] GTK pylab console

2008-06-27 Thread Nicolas Rougier
Hi all, I've developed a GTK/Python/Pylab console that is able to display most matplotlib figures directly within the console and handle matplotlib mouse events properly. Screenshots and sources are available at: http://www.loria.fr/~rougier/pylab.html I've tested several examples from matp