Open this notebook in Jupyterlite | 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.

Discover more on using widgets to add interactivity to your applications in the how-to guides on interactivity. Alternatively, learn how to set up callbacks and (JS-)links between parameters or how to use them as part of declarative UIs with Param.


For details on other options for customizing the component see the layout and styling how-to guides.


  • 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)

Open this notebook in Jupyterlite | Download this notebook from GitHub (right-click to download).