Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panel widgets with unit of measurement #1102

Closed
1081 opened this issue Feb 16, 2020 · 0 comments · Fixed by #1142
Closed

Panel widgets with unit of measurement #1102

1081 opened this issue Feb 16, 2020 · 0 comments · Fixed by #1142
Labels
type: enhancement Minor feature or improvement to an existing feature

Comments

@1081
Copy link

1081 commented Feb 16, 2020

There is no unambiguous approach how to work with different unit of measurement in one panel application. As a workaround, the symbols can be added in "brackets" after the widget name/description. For example:

Float Slider name [kg/s]: 1.23
Another Float Slider name [kg/s]: 1.24
Yet another Float Slider name [kg/s]: 3.2

But this results in a cluttered user interface. Although the use of brackets is not the standard-conform way to write si-unit based symbols!

A clear representation could look like this:
float_slider = pn.widgets.FloatSlider(name=‘Float Slider’, value=1.23, symbol=‘kg/s’)
example screenshot

The symbols and (widget value) are aligned to the right.
The result would be an uncluttered and clear unser interface with the possibility to add units of measurement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants