Re: [matplotlib-devel] Date overhaul?

2015-01-08 Thread Skip Montanaro
I'm real naive about this stuff, but I have always wondered why matplotlib didn't just use datetime objects, or at least use timezone-aware datetime objects as an "interchange" format to get the timezone stuff right. Skip ---

[matplotlib-devel] webagg backend in web application server

2014-05-21 Thread Skip Montanaro
The nascent 1.4.x code is working fine for me to fire up my interactive graphs served by a Tornado server. I'm interested in providing an interface via a web application server like Django though. I've only begun to look at the webagg backend code, but if I read the comments correctly at the top of

Re: [matplotlib-devel] No output when using webagg backend

2014-05-12 Thread Skip Montanaro
On Mon, May 12, 2014 at 10:31 AM, Benjamin Root wrote: > No, it gets used. We just have a huge backlog of issue tickets to go > through. > > At first glance, I think this problem has already been reported and fixed in > master. Can you try building from source the master branch on github and > see

Re: [matplotlib-devel] No output when using webagg backend

2014-05-12 Thread Skip Montanaro
On Wed, May 7, 2014 at 9:04 AM, Skip Montanaro wrote: > I'm trying to use the webagg backend for the first time, and seem to > be bumping into a common problem - nothing appears. I'm guessing that the complete lack of response both here and on matplotlib-users means nobody

[matplotlib-devel] No output when using webagg backend

2014-05-07 Thread Skip Montanaro
Apologies for those of you seeing this for a second time. I've received no response on matplotlib-users, so I'm turning to the experts. In one message, I wrote: I'm trying to use the webagg backend for the first time, and seem to be bumping into a common problem - nothing appears. The fir

Re: [matplotlib-devel] unused variables

2014-03-06 Thread Skip Montanaro
On Thu, Mar 6, 2014 at 3:58 PM, Chris Barker wrote: > it looks like pylint, anyway, will accept that. Yes, pylint used to only accept a leading underscore by default as a flag that a variable was unused. When I switched from pychecker to pylint a few years ago, all my carefully crafted "unused_"

Re: [matplotlib-devel] unused variables

2014-03-06 Thread Skip Montanaro
On Thu, Mar 6, 2014 at 3:13 PM, Nelle Varoquaux wrote: > If I need to understand what exactly os.stat returns, I just read the > documentation, and not rely on some possibly misleading variable > names. Despite our wish that it wasn't so, it is likely that there is far more undocumented than docu

Re: [matplotlib-devel] unused variables

2014-03-06 Thread Skip Montanaro
On Thu, Mar 6, 2014 at 2:51 PM, Nelle Varoquaux wrote: > The convention is to use a simple _. > > mode, _, dev, nlink, uid, gid, size, _, _, _ = os.stat("/etc/hosts") Which is "pylint-compliant", but removes any description to future readers (who might decide to use them) what the meaning of tho

Re: [matplotlib-devel] unused variables

2014-03-06 Thread Skip Montanaro
On Thu, Mar 6, 2014 at 2:38 PM, Ryan May wrote: > I don't think a leading _ is the way to go, because that's a common > convention for internal class variables--property variables that you don't > intend to be part of any supported API. But leading underscores like this are only used as attribute

Re: [matplotlib-devel] unused variables

2014-03-06 Thread Skip Montanaro
On Thu, Mar 6, 2014 at 7:47 AM, Federico Ariza wrote: > Stupid simple question > Is there a policy/tradition/convention to name unused variables inside the > code? While Eric indicates there is no policy, for the Python parts of your code, I recommend you follow whatever the default is that pyli