-
Notifications
You must be signed in to change notification settings - Fork 7
Replace show_labels with a label formatter #10
Comments
@jlstevens, I assume this issue can be closed now thanks to your recent work? |
Formatting labels was addressed in #48 but the code above regarding the |
Ah the title is 'replace show_labels with a label formatter'. I'm not sure why you would want to do that. Even more fundamentally, why would you ever want to disable the labels entirely? How would you know what parameter each widget affects? In other words, what was |
I don't know what show_labels was supposed to do as I didn't add it, but it appeared to me that it did nothing; this issue was about removing show_labels and adding a label formatter. So I think we're agreeing. |
I think this issue can be closed with no further changes. If someone instantiates Widgets with only one Parameter or with only widgets that need no name (e.g. dates or action buttons), they may or may not want space reserved for any form of label at all. So I think show_labels is useful completely independently of label formatting. |
Oh, except that show_labels appears to be a no-op above? That code does look bogus, and I think show_labels=False should be entirely disabling all labels not inside the widget itself, in which case this issue still remains open. |
Right though why would this be useful? |
As said above; if you just have one widget controlling a plot, you might want to put whatever label you like in the page template, not be forced to use ParamBokeh's labelling. |
I see what you mean now but it still strikes me as a sufficiently rare enough use case that I'm not convinced it warrants a separate parameter. You could just set a label formatter that returns an empty string which seems to have been the original intent of this issue. Have we ever needed to use this parameter ourselves? Probably not as it doesn't work! |
I'm sure I've used no labels before (not with parambokeh, though - probably paramtk). Whether to have a separate parameter for it, or to do it via the label formatter (as I meant with this issue originally), or to do it with some other parameter we might also want like a label position parameter (probably not), I'm not sure. My opinion seems to vary depending what other system I've been using most recently. And I haven't been able to look at the label formatter yet. |
Given the parameter already exists, I might as well make a PR to get it working even if I don't see much value in it (at least not yet!). |
Currently not doing anything?
Default to capitalizing, and replacing underscore with space.
The text was updated successfully, but these errors were encountered: