Make task timeline work with ipywidgets==7.0.0, change slider default values. (#925)

* Make task timeline work with ipywidgets==7.0.0.

* Change initial UI slider values from 70-100 to 0-100.
This commit is contained in:
Robert Nishihara 2017-09-03 23:15:46 -07:00 committed by Philipp Moritz
parent ae0212b399
commit 8ed03b1cf0

View file

@ -49,7 +49,7 @@ def get_sliders(update):
# Percentage slider. Indicates either % of total time or total tasks # Percentage slider. Indicates either % of total time or total tasks
# depending on what breakdown_opt is set to. # depending on what breakdown_opt is set to.
range_slider = widgets.IntRangeSlider( range_slider = widgets.IntRangeSlider(
value=[70, 100], value=[0, 100],
min=0, min=0,
max=100, max=100,
step=1, step=1,
@ -57,7 +57,6 @@ def get_sliders(update):
continuous_update=False, continuous_update=False,
orientation="horizontal", orientation="horizontal",
readout=True, readout=True,
readout_format=".0i%",
) )
# Indicates the number of tasks that the user wants to be returned. Is # Indicates the number of tasks that the user wants to be returned. Is