Skip to content

update docs for DatetimeTickFormatter - #14452

Merged
mosc9575 merged 9 commits into
bokeh:branch-3.8from
mosc9575:14248_update_docs_for_datetimetichformatter
Apr 8, 2025
Merged

update docs for DatetimeTickFormatter#14452
mosc9575 merged 9 commits into
bokeh:branch-3.8from
mosc9575:14248_update_docs_for_datetimetichformatter

Conversation

@mosc9575

@mosc9575 mosc9575 commented Apr 3, 2025

Copy link
Copy Markdown
Contributor

This is based on #14423 to get the task finished. I was not allowed to push to the original PR.

In this PR the defaults of the DatetimeTickFormatter are printed as a table.

grafik

I also changed the list for the format strings to a table, too.

grafik

And I fixed a few typos.

In my opinion, this should be part of the upcoming release 3.7.3, because the braking changes for the DatetimeTickFormatter made in 3.7.0 are not documented yet.

chinmaychahar and others added 7 commits March 17, 2025 12:39
Update DatetimeTickFormatter documentation defaults

* Update automated documentation to reflect contextual datetime defaults
* Add context-related fields to documentation (_dttf_fields)
* Include all formatter properties in documentation string
* Set up formatter with current default values
* Follows up on PR bokeh#14248
@mosc9575 mosc9575 added this to the 3.8 milestone Apr 3, 2025
@mosc9575 mosc9575 mentioned this pull request Apr 3, 2025
3 tasks
@codecov

codecov Bot commented Apr 3, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (branch-3.8@3809c69). Learn more about missing BASE report.

Additional details and impacted files
@@              Coverage Diff              @@
##             branch-3.8   #14452   +/-   ##
=============================================
  Coverage              ?   93.26%           
=============================================
  Files                 ?      284           
  Lines                 ?    20162           
  Branches              ?        0           
=============================================
  Hits                  ?    18804           
  Misses                ?     1358           
  Partials              ?        0           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bryevdv

bryevdv commented Apr 4, 2025

Copy link
Copy Markdown
Member

@mosc9575 I think we'll just need to update all the baselines to reflect the new ids

@mosc9575

mosc9575 commented Apr 8, 2025

Copy link
Copy Markdown
Contributor Author

@bryevdv After updating the baseline tests all tests are green. Looks like is it ready to merge. What do you think?

@bryevdv bryevdv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mosc9575
mosc9575 merged commit a240b55 into bokeh:branch-3.8 Apr 8, 2025
@mosc9575
mosc9575 deleted the 14248_update_docs_for_datetimetichformatter branch April 8, 2025 20:58
@mosc9575 mosc9575 mentioned this pull request Apr 15, 2025
13 tasks
mattpap pushed a commit that referenced this pull request Apr 24, 2025
* Updated formatters.py

---------

Co-authored-by: Chinmay <chinmay.cc.06@gmail.com>
@mattpap mattpap modified the milestones: 3.8, 3.7.3 May 7, 2025
mattpap added a commit that referenced this pull request May 8, 2025
* Update switcher.json

* Fix Legend's glyph rendering for `dpr != 1` (#14443)

* Fix Legend's glyph rendering for dpr != 1

* Allow to override screen scaling in testing

* Add regression tests

* Fix Legend's inactive visuals in CSS mode (#14454)

* Fix Legend's inactive visuals in CSS mode

* Add visual regression tests

* Update child views without removing their elements (#14459)

* Implement LayoutDOM.update_children without explicitly removing nodes

* Fix lint

* Fix logic

* More lint

* Simplify for loop

* No tabs

* Also update handling of element views

* Remove empty line

* Fix self_target children lookup

* Fix type errors

* Fix and simplify logic

* Fix element views

* Apply suggestions from code review

* Simplify further

* Fix lint

* Revert to append (instead of appendChild)

Rever

* Compare DOM nodes non-structurally by identity

* Add regression tests

* Unify all rebuilding of child views

---------

Co-authored-by: Mateusz Paprocki <mattpap@gmail.com>

* update docs for DatetimeTickFormatter (#14452)

* Updated formatters.py

---------

Co-authored-by: Chinmay <chinmay.cc.06@gmail.com>

* fix links to code pen (#14471)

* add jquery to fix links to code pen

* remove jquery dependency

* remove patched show function

* use Node.COMMENT_NODE instead of number

* avoid line breaks in templates and code pen

* fix missing title

* Fix positioning of DOM rendered Legend annotations (#14457)

* Fix positioning of DOM rendered Legend annotations

* Treat inner canvas panels equally to outer

* Robustify resize of canvas after layout

* Update visual baselines

* Make sticky toolbar work correctly

* Refactor PlotView._update_layout()

* Invalidate layout if renderers change

* Add more regression tests

* Update visual baselines

* Always repaint Legend's glyphs after rendering

* Update visual baselines

* Implement move semantics in Plot.add_layout()

* Tighten regressions' baseline viewports

* Fix types of splattable figure's attributes (#14401)

* Fix types of splattable figure's attributes

* Add rudimentary typing tests

* Python 3.10 compatibility

* Improve corner case handling in datetime formatter (#14473)

* Add release notes

---------

Co-authored-by: Philipp Rudiger <prudiger@anaconda.com>
Co-authored-by: Moritz Schreiber <68053396+mosc9575@users.noreply.github.com>
Co-authored-by: Chinmay <chinmay.cc.06@gmail.com>
@github-actions

Copy link
Copy Markdown

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.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update default values in DatetimeTickFormatter doc entry

4 participants