Jupyter Notebook Widgets Frontend Extension

4.0.15 · active · verified Sat Mar 28

widgetsnbextension is a Python package that provides the essential JavaScript frontend components, enabling Jupyter interactive widgets (ipywidgets) to function within the classic Jupyter Notebook environment. It acts as a bridge, allowing Python widget objects in the kernel to be rendered and interact with the user interface. The library, currently at version 4.0.15 (released November 1, 2025), is an integral part of the broader Jupyter Widgets ecosystem, maintaining an active release cadence alongside ipywidgets and Jupyter itself.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to create and display a simple interactive integer slider using `ipywidgets`. While `widgetsnbextension` is the underlying component enabling this in the classic Notebook, the user-facing interaction is primarily through the `ipywidgets` library. The `display` function is used to render the widget, and an observer is attached to react to value changes.

from ipywidgets import IntSlider, display
import time

slider = IntSlider(value=0, min=0, max=10, step=1, description='Value:')
display(slider)

def on_value_change(change):
    print(f"Slider value changed to: {change.new}")

slider.observe(on_value_change, names='value')

view raw JSON →