NSLS-II-SIX / sixtools

Software for performing resonant inelastic xray scattering analysis at NSLS-II
https://pypi.org/project/sixtools
Other
1 stars 2 forks source link

Change dropdown to slider for scan in #23

Open mpmdean opened 6 years ago

mpmdean commented 6 years ago

Hi @ambarb

I thought about your suggestion of changing the dropdown to a slider, but realized that if we make the change the notebook would only work with a series of scan numbers so I prefer to keep it as it. You can, of course, change the copy of the notebook you work with. I suspect you already know the required change, but if not

scanid_widget = ipywidgets.Dropdown(options=scan_ids)

would need to be

scanid_widget = ipywidgets.IntSlider(min=min(scan_ids), max=max(scan_ids))

ambarb commented 6 years ago

Ok. I don't have much experience with the widgets so this is good to know that it isn't straightforward. I have a notebook that has no requirement on scannums sequence/order for the slider so maybe incorporating it into a gui with the same functionality is a bit more complex.

Feel free to close and if I come up with something, I will share

mpmdean commented 6 years ago

I might be missing something here. Could you point me toward the relevant code.