I would like to have a slider with an optional editable value. I have found that the first version gives me that option but the second just prints the value of "h" to the right (I can't click on it and edit it - it must be changed by messing with the slider).
@interact
def _(h=(0.1,(-1,1))):
h
@interact
def _(h=slider(-1,1,default=0.1,step_size=0.001,label='$h=$')):
h
I would just use the first block of code except that then I cannot give it a nicely formatted label or adjust other attributes (like step size).
Thanks!