Warning

This documentation is for an old version of IPython. You can find docs for newer versions here.

Module: html.widgets.widget_float

Float class.

Represents an unbounded float using a widget.

5 Classes

class IPython.html.widgets.widget_float.FloatText(value=None, **kwargs)

Bases: IPython.html.widgets.widget_float._Float

Displays a float value within a textbox. For a textbox in which the value must be within a specific range, use BoundedFloatText.

Parameters:

value : float

value displayed

description : str

description displayed next to the textbox

color : str Unicode color code (eg. ‘#C13535’), optional

color of the value displayed

class IPython.html.widgets.widget_float.BoundedFloatText(*pargs, **kwargs)

Bases: IPython.html.widgets.widget_float._BoundedFloat

Displays a float value within a textbox. Value must be within the range specified. For a textbox in which the value doesn’t need to be within a specific range, use FloatText.

Parameters:

value : float

value displayed

min : float

minimal value of the range of possible values displayed

max : float

maximal value of the range of possible values displayed

description : str

description displayed next to the textbox

color : str Unicode color code (eg. ‘#C13535’), optional

color of the value displayed

class IPython.html.widgets.widget_float.FloatSlider(*pargs, **kwargs)

Bases: IPython.html.widgets.widget_float._BoundedFloat

Slider/trackbar of floating values with the specified range.

Parameters:

value : float

position of the slider

min : float

minimal position of the slider

max : float

maximal position of the slider

step : float

step of the trackbar

description : str

name of the slider

orientation : {‘vertical’, ‘horizontal}, optional

default is horizontal

readout : {True, False}, optional

default is True, display the current value of the slider next to it

slider_color : str Unicode color code (eg. ‘#C13535’), optional

color of the slider

color : str Unicode color code (eg. ‘#C13535’), optional

color of the value displayed (if readout == True)

class IPython.html.widgets.widget_float.FloatProgress(*pargs, **kwargs)

Bases: IPython.html.widgets.widget_float._BoundedFloat

Displays a progress bar.

Parameters:

value : float

position within the range of the progress bar

min : float

minimal position of the slider

max : float

maximal position of the slider

step : float

step of the progress bar

description : str

name of the progress bar

bar_style: {‘success’, ‘info’, ‘warning’, ‘danger’, ‘’}, optional

color of the progress bar, default is ‘’ (blue) colors are: ‘success’-green, ‘info’-light blue, ‘warning’-orange, ‘danger’-red

class IPython.html.widgets.widget_float.FloatRangeSlider(*pargs, **kwargs)

Bases: IPython.html.widgets.widget_float._BoundedFloatRange

Slider/trackbar for displaying a floating value range (within the specified range of values).

Parameters:

value : float tuple

range of the slider displayed

min : float

minimal position of the slider

max : float

maximal position of the slider

step : float

step of the trackbar

description : str

name of the slider

orientation : {‘vertical’, ‘horizontal}, optional

default is horizontal

readout : {True, False}, optional

default is True, display the current value of the slider next to it

slider_color : str Unicode color code (eg. ‘#C13535’), optional

color of the slider

color : str Unicode color code (eg. ‘#C13535’), optional

color of the value displayed (if readout == True)