Skip to content

Instantly share code, notes, and snippets.

@8080labs
Created February 6, 2020 16:56
Show Gist options
  • Save 8080labs/a833fc1244c8092bb23a5924c9fe5d3a to your computer and use it in GitHub Desktop.
Save 8080labs/a833fc1244c8092bb23a5924c9fe5d3a to your computer and use it in GitHub Desktop.
def set_bin_size(change):
histogram_object.xbins = {"size": change["new"]}
# Call set_bin_size whenever the bin slider changes
bin_slider.observe(set_bin_size, names="value")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment