Re-ordering tools in the toolbar

Hello,
I have a plot figure with the following tools:
pan,box_zoom,wheel_zoom,box_select,tap,crosshair,reset,save

As the title mentions, I’m wondering if the latest version of Bokeh supports reordering the tools that appear in the toolbar. I know tools are grouped by gesture type by default, but I’m looking for a way to bypass this ordering and order it in a more logical way based on what the user wants to achieve (i.e. right now the order is pan, box_zoom, box_select, wheel_zoom, tap but i want box_select and tap to be next to each other).

In the documentation I saw the tools have a group field which when set to False “prevent the tool from being grouped altogether”, and thetoolbar has a group field which determines “Whether to group common tools.” but neither helped me bypass the default group ordering.

I’ve seen some other posts about this but they are all from years ago and I’m wondering if this feature has been added to Bokeh since then.

Thanks!

There’s Allow to customize toolbars with any UI components by mattpap · Pull Request #13571 · bokeh/bokeh · GitHub that allows reordering of tool buttons (among other new features).

I see, thank you so much for your quick response!

Just clarifying / noting that the linked PR is not yet merged — the functionality should land in the next Bokeh release (3.8)

Yea I noticed, but thanks again for the clarification! Will just have to come back to it whenever the new Bokeh version is out. Do you have an estimate of when that might be happening?

Nominally in the next few weeks, but delays can always happen before releases (or individual PRs can be deferred to an even later release).

Cool! looking forward to it.