☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Is it possible to set rangeslider limits to use scientific notation?

Community Support
richardxdubois
richardxdubois

I have some cases where the numbers in the slider range are quite small, but I only see how to format via numbers, eg “0[.]000”. So I see range limits that display as 0. Can I set a scientific notation format?

Richard

⌁   Link to post
Bryan
Bryan

Any of the same formats here should be usable:

formatters — Bokeh 2.4.2 Documentation

The RangeSlider and the NumeralTickFormatter use the same underlying numbro,js library for formatting.

Edit: That said, it doesn’t actually look like numbro.js handles scientific notation. The simplest thing would probably be to just make the slider configurable to use any of the existing tick formatters (some of which do support scientific notation). But that will require new development, so I would suggest making a feature request issue on GitHub

Otherwise in the immediate term I think a custom extension is the only option. There is an example of an extension wrapping the more sophisticated ionRangeSlider in the docs:

Extending Bokeh — Bokeh 2.4.2 Documentation

⌁   Link to post

End of archived discussion · Replies are disabled