Skip to content

Instantly share code, notes, and snippets.

@kshirsagarsiddharth
Created January 3, 2022 07:15
Show Gist options
  • Select an option

  • Save kshirsagarsiddharth/06de6017bcbe43bc8cf1f074bff74928 to your computer and use it in GitHub Desktop.

Select an option

Save kshirsagarsiddharth/06de6017bcbe43bc8cf1f074bff74928 to your computer and use it in GitHub Desktop.
_ = interact(plot_histogram,
palette = widgets.Dropdown(
options = ['pastel','husl','Set2','flare','crest','magma','icefire']
),
kde = widgets.RadioButtons(
options = [True,False],
disabled = False),
hue = widgets.ToggleButtons(
options = ['categories','other categories'],
tooltip = ['categories','other categories'],
disabled=False,
button_style = 'success'),
bins = widgets.IntSlider(
value = 10, # intilal value
min = 5,
max = 200,
step = 10
),
x_range_1 = widgets.FloatRangeSlider(
value = [-3,3],
min = -5,
max = 5,
step = 0.2,
readout_format='.1f',
),
)
interactive(children=(IntSlider(value=10, description='bins', max=200, min=5, step=10), ToggleButtons(button_s…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment