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

Change dropdown to slider for scan in #23

Open
mpmdean opened this issue Aug 2, 2018 · 3 comments
Open

Change dropdown to slider for scan in #23

mpmdean opened this issue Aug 2, 2018 · 3 comments

Comments

@mpmdean
Copy link
Contributor

mpmdean commented Aug 2, 2018

No description provided.

@mpmdean mpmdean self-assigned this Aug 2, 2018
@mpmdean
Copy link
Contributor Author

mpmdean commented Aug 3, 2018

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))

@mpmdean mpmdean removed their assignment Aug 3, 2018
@ambarb
Copy link

ambarb commented Aug 4, 2018

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
Copy link
Contributor Author

mpmdean commented Aug 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants