Skip to content

Instantly share code, notes, and snippets.

@kervel
Created April 2, 2020 14:48
Show Gist options
  • Save kervel/66158ffe3917763f0cd6bb31de7b737c to your computer and use it in GitHub Desktop.
Save kervel/66158ffe3917763f0cd6bb31de7b737c to your computer and use it in GitHub Desktop.
def show_change(change):
display(change)
int_slider = widgets.IntSlider(value=7, min=0, max=10)
int_slider.observe(show_change, 'value')
int_slider.value = 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment