Skip to content

Instantly share code, notes, and snippets.

@kervel
Created April 2, 2020 14:48
Show Gist options
  • Select an option

  • Save kervel/c34c287c31756e787bbb88e603b9db46 to your computer and use it in GitHub Desktop.

Select an option

Save kervel/c34c287c31756e787bbb88e603b9db46 to your computer and use it in GitHub Desktop.
sl1 = widgets.IntSlider(description='slider 1', min=0, max=10)
sl2 = widgets.IntSlider(description='slider 2', min=0, max=10)
link = widgets.link(
(sl1, 'value'),
(sl2, 'min')
)
sl1.value = 5
widgets.VBox([sl1, sl2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment