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

Selection range slider #1356

Merged
merged 5 commits into from May 17, 2017

Conversation

Projects
None yet
2 participants
@jasongrout
Member

jasongrout commented May 17, 2017

Fixes #760. CC @jdemeyer.

jasongrout added some commits May 17, 2017

Implement a SelectionRangeSlider
For this widget, the index, label, and value attributes encode the maximum and minimum selected element, rather than all selected elements.

Fixes #760.
@jasongrout

This comment has been minimized.

Member

jasongrout commented May 17, 2017

Example:

import datetime
from ipywidgets import SelectionRangeSlider
dates = [datetime.date(2015,i,1) for i in range(1,13)]
options = [(i.strftime('%b'), i) for i in dates]
SelectionRangeSlider(description="Dates (2015)", options=options, index=(0,4))

screen shot 2017-05-17 at 12 41 03 pm

@jasongrout

This comment has been minimized.

Member

jasongrout commented May 17, 2017

@jasongrout jasongrout merged commit f8c482e into jupyter-widgets:master May 17, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@blink1073

This comment has been minimized.

Contributor

blink1073 commented May 17, 2017

Nice!

@jasongrout jasongrout referenced this pull request May 17, 2017

Closed

Update Changelog #1279

@jasongrout jasongrout deleted the jasongrout:SelectionRangeSlider branch May 18, 2017

@jasongrout jasongrout modified the milestone: 7.0 Jul 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment