enhanced the default datetimeformatter with a dynamic one#13854
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## branch-3.7 #13854 +/- ##
=============================================
Coverage ? 93.17%
=============================================
Files ? 284
Lines ? 19965
Branches ? 0
=============================================
Hits ? 18603
Misses ? 1362
Partials ? 0 |
|
Unfortunately, this will take more work / different approach. The issue is that the way things are done in the PR, every single axis has a different An immediate solution could be get rid of Or perhaps |
|
@bryevdv Thanks for pointing out the sided effects. However I am wondering if there have been similar cases in the past or is this the first one? |
|
It's not common to have dynamic defaults, less common still have to have dynamic defaults that are model instances, and among that tiny set, I do believe this would be the first time ever a dynamic instance default itself had property that was also such. I think you should try building without |
|
@bryevdv Building without InstanceDefault works out fine. When building the docs there aren't any rendering issues but of course the static (and therefore wrong) default values are shown. |
|
@muendlein did you expect to be able to pick this PR back up? If not I think we will close it. I think if the default values are just shown sub-optimally then we could proceed with a side issue to improve the docs tooling at some point. |
|
@bryevdv Thank you for the reminder, I have actually forgotten to push a commit. Regarding the docs, what locations shall I take a closer look at, apart from https://docs.bokeh.org/en/latest/docs/reference/models/axes.html#bokeh.models.DatetimeAxis (which looks good for me)? |
|
@muendlein LGTM but let's also get input from the HV folks about defaults changes since they will see the impact downstream. cc @philippjfr @jbednar |
From the description and from what I can see in the code, the changes seem fine to me. Hopefully @philippjfr can report back about the actual behavior of the code in practice, at least once there is a dev release to test. |
|
Quick check: is |
Probably not the best name. I would also suggest |
|
@muendlein let's go with |
|
@philippjfr I will approve this in the next day or two absent any other comments |
|
I too prefer the contextual prefix but otherwise I love this change. |
|
Last thing @muendlein it would be good to add a line in |
28b9f8e to
1c1399d
Compare
1c1399d to
c8a3518
Compare
Co-authored-by: Bryan Van de Ven <bryan@bokeh.org>
c8a3518 to
3f7ac04
Compare
|
Not sure what is going awry with the codecov jobs but everything else is passing so I will just go ahead and merge this now. Thanks @muendlein ! |
|
@muendlein So one consequence of this change is that now examples that really just care about time of day look like this:
i.e. the y-axis show the context for 1970 which is not really appropriate. Do you have any thoughts? Can you open a new issue to discuss improvements of usage that needs to adapt? |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |


All pull requests must have an associated issue in the issue tracker. If there
isn't one, please go open an issue describing the defect, deficiency or desired
feature. You can read more about our issue and PR processes in the
wiki.