Created
April 2, 2020 14:46
-
-
Save kervel/e9083d908faf4526479b0c12e172fbd2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int_slider = widgets.IntSlider( | |
| value=5, | |
| min=0, max=10, step=1, | |
| description='slider' | |
| ) | |
| int_range_slider = widgets.IntRangeSlider( | |
| value=(20, 40), | |
| min=0, max=100, step=2, | |
| description='range slider' | |
| ) | |
| dropdown = widgets.Dropdown( | |
| value='feb', | |
| options=['jan', 'feb', 'mar', 'apr'], | |
| description='dropdown' | |
| ) | |
| radiobuttons = widgets.RadioButtons( | |
| value='feb', | |
| options=['jan', 'feb', 'mar', 'apr'], | |
| description='radio buttons' | |
| ) | |
| combobox = widgets.Combobox( | |
| placeholder='start typing... (e.g. L or o)', | |
| options=['Amsterdam', 'Athens', 'Lisbon', 'London', 'Ljubljana'], | |
| description='combo box' | |
| ) | |
| checkbox = widgets.Checkbox( | |
| description='checkbox', | |
| value=True | |
| ) | |
| # a VBox container to pack widgets vertically | |
| widgets.VBox( | |
| [ | |
| int_slider, | |
| int_range_slider, | |
| dropdown, | |
| radiobuttons, | |
| checkbox, | |
| combobox, | |
| ] | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment