Download this notebook from GitHub (right-click to download).

import panel as pn


The IntInput widget allows selecting an integer value using a spinbox. It behaves like a slider except that lower and upper bounds are optional and a specific value can be entered. Value can be changed using keyboard (up, down, page up, page down), mouse wheel and arrow buttons.

For more information about listening to widget events and laying out widgets refer to the widgets user guide. Alternatively you can learn how to build GUIs by declaring parameters independently of any specific widgets in the param user guide. To express interactivity entirely using Javascript without the need for a Python server take a look at the links user guide.


For layout and styling related parameters see the customization user guide.


  • value (int): The current value. Updates when ever the value changes.

  • value_throttled (int): The current value. Updates only on <enter> or when the widget looses focus.

  • step (int): The step added or subtracted to the current value on each click

  • start (int): Optional minimum allowable value

  • end (int): Optional maximum allowable value

  • format (str): Optional format to convert the float value in string, see :

  • page_step_multiplier (int): Defines the multiplication factor applied to step when the page up and page down keys are pressed.


  • disabled (boolean): Whether the widget is editable

  • name (str): The title of the widget

  • placeholder (str): A placeholder string displayed when no value is entered

int_input = pn.widgets.IntInput(name='IntInput', value=5, step=2, start=0, end=1000)


IntInput.value returns an integer value:



The IntInput widget exposes a number of options which can be changed from both Python and Javascript. Try out the effect of these parameters interactively:

pn.Row(int_input.controls(jslink=True), int_input)
This web page was generated from a Jupyter notebook and not all interactivity will work on this website. Right click to download and run locally for full Python-backed interactivity.

Download this notebook from GitHub (right-click to download).