Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Decimal places in slider

Suppose you have a slider with given stepsize, say 0.1 like this

@interact
def _(a=slider(1,100,0.1)):
    print a

Is it possible that the number printed right to the slider has only one decimal place?

Decimal places in slider

Suppose you have a slider with given stepsize, say 0.1 like this

@interact
def _(a=slider(1,100,0.1)):
    print a

Is it possible to adjust this, such that the number printed right to the slider has only one decimal place?

Decimal places in slider

Suppose you have a slider with given stepsize, say 0.1 like this

@interact
def _(a=slider(1,100,0.1)):
    print a

Is it possible to adjust this, such that the number printed to the right to of the slider has only one decimal place?