Re: [matplotlib-devel] Question about getters and setters.

2015-05-24 Thread Thomas Caswell
There is a proof-of-concept implementation of this by Matthias http://carreau.github.io/posts/09-Matplotlib-And-IPython-Config.html Tom On Fri, May 15, 2015 at 4:40 PM Brian Granger wrote: > OK i have the MEP for this on my todo list... > > On Thu, May 14, 2015 at 5:47 AM, Benjamin Root wrote

Re: [matplotlib-devel] Question about getters and setters.

2015-05-15 Thread Brian Granger
OK i have the MEP for this on my todo list... On Thu, May 14, 2015 at 5:47 AM, Benjamin Root wrote: > You could start up a Pull Request describing a MEP that would outline how > traitlets would be used. The discussion can go on there to flesh out the > concepts and the guidance documentation. On

Re: [matplotlib-devel] Question about getters and setters.

2015-05-14 Thread Benjamin Root
You could start up a Pull Request describing a MEP that would outline how traitlets would be used. The discussion can go on there to flesh out the concepts and the guidance documentation. Once that is agreed upon, that PR would get merged, and we can then start up a new PR actually implementing the

Re: [matplotlib-devel] Question about getters and setters.

2015-05-14 Thread Brian Granger
Great, that is exciting. What do you think is the best way forward? Should I open an issue on the matplotlib repo about this? Would there be interest in doing a Google+ hangout about this at some point? On Wed, May 13, 2015 at 11:57 PM, Eric Firing wrote: > On 2015/05/13 7:45 PM, Brian Granger w

Re: [matplotlib-devel] Question about getters and setters.

2015-05-14 Thread Eric Firing
On 2015/05/13 7:45 PM, Brian Granger wrote: > We (ipython/jupyter) have been talking some more about integrating > matplotlilb in deeper ways with the interactive widgets framework. That > only thing that would be required to make this *trivial* is having a > traitlet's based API for matplotlib. I

Re: [matplotlib-devel] Question about getters and setters.

2015-05-13 Thread Brian Granger
I should note that *all* of ipython is based on traitlets, so by now it is very stable, battle tested (also actively developed). For base layers like this, I think that is important. On Wed, May 13, 2015 at 11:27 PM, Neil Girdhar wrote: > This is very exciting! traitlets looks really nice. (Im

Re: [matplotlib-devel] Question about getters and setters.

2015-05-13 Thread Neil Girdhar
This is very exciting! traitlets looks really nice. (Imho better than params from my cursory look.) On Thu, May 14, 2015 at 1:45 AM, Brian Granger wrote: > We (ipython/jupyter) have been talking some more about integrating > matplotlilb in deeper ways with the interactive widgets framework. Th

Re: [matplotlib-devel] Question about getters and setters.

2015-05-13 Thread Brian Granger
We (ipython/jupyter) have been talking some more about integrating matplotlilb in deeper ways with the interactive widgets framework. That only thing that would be required to make this *trivial* is having a traitlet's based API for matplotlib. I have even started to look at wrapping the existing m

Re: [matplotlib-devel] Question about getters and setters.

2015-05-13 Thread Eric Firing
On 2015/05/13 5:47 PM, Neil Girdhar wrote: > You're right. My angle is I just want the setters and getters. Writing > set_ and get_ feels like the C++ prison I thought I had escaped :) > John Hunter once commented that if he were doing it over again he would not have put in all the set_ and get_

Re: [matplotlib-devel] Question about getters and setters.

2015-05-13 Thread Neil Girdhar
You're right. My angle is I just want the setters and getters. Writing set_ and get_ feels like the C++ prison I thought I had escaped :) I'll keep an eye for the discussion on this topic since this is interesting to me for other reasons as well. (I had to code something like params for my own

Re: [matplotlib-devel] Question about getters and setters.

2015-05-13 Thread Benjamin Root
Manpower, really. Also, there be dragons deep in that code (I'll leave it as an exploration task for you to figure out how aliases are done). There have been a few proposals, but they keep suffering from scope creep. Take a look at the MEP page. Keep in mind that reducing Lines of Code just for t

Re: [matplotlib-devel] Question about getters and setters.

2015-05-13 Thread Thomas Caswell
It is my understanding that most of this code pre-dates properties and going through and updating all of the classes is a _huge_ amount of work. It is more a matter of time than will. There is also a slowly simmering discussion about implementing artists in a managed property/attribute frame work

[matplotlib-devel] Question about getters and setters.

2015-05-13 Thread Neil Girdhar
I don't want to ruffle any feathers, and I'm sure this comes up all the time, but I'm wondering why don't we have a decorator on classes that generates all of the boilerplate methods? For example: @generate_boilerplate([('linestyle', 'ls'), …] class Patch(…): would generate get_ls, set_ls to po