# ipywidgets **Repository Path**: mirrors_adamchainz/ipywidgets ## Basic Information - **Project Name**: ipywidgets - **Description**: IPython widgets for the Jupyter Notebook - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2025-11-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ipywidgets: Interactive HTML Widgets [![Version](https://img.shields.io/pypi/v/ipywidgets.svg)](https://pypi.python.org/pypi/ipywidgets) [![Downloads](https://img.shields.io/pypi/dm/ipywidgets.svg)](https://pypi.python.org/pypi/ipywidgets) [![Build Status](https://travis-ci.org/ipython/ipywidgets.svg?branch=master)](https://travis-ci.org/ipython/ipywidgets) [![Documentation Status](http://readthedocs.org/projects/ipywidgets/badge/?version=latest)](http://ipywidgets.readthedocs.io/en/latest/?badge=latest) [![Join the chat at https://gitter.im/ipython/ipywidgets](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ipython/ipywidgets?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ipywidgets are [interactive HTML widgets](https://github.com/ipython/ipywidgets/blob/master/docs/source/examples/Index.ipynb) for Jupyter notebooks and the IPython kernel. Notebooks come alive when interactive widgets are used. Users gain control of their data and can visualize changes in the data. Learning becomes an immersive, plus fun, experience. Researchers can easily see how changing inputs to a model impact the results. We hope you will add ipywidgets to your notebooks, and we're here to help you get started. ## Core Interactive Widgets A [demonstration notebook](https://github.com/ipython/ipywidgets/blob/master/docs/source/examples/Index.ipynb) provides an overview of the core interactive widgets, including: - sliders - progress bars - text boxes - toggle buttons and checkboxes - display areas - and more ## Jupyter Interactive Widgets as a Framework Besides the widgets already provided with the library, the framework can be extended with custom widget libraries. A template project is available in the form of a cookie cutter [here](https://github.com/jupyter/widget-cookiecutter). This project is meant to help custom widget authors get started with the packaging and the distribution of Jupyter interactive widgets. It produces a project for a Jupyter interactive widget library following the current best practices for using interactive widgets. An implementation for a placeholder "Hello World" widget is provided. Popular widget libraries such as [bqplot](https://github.com/bloomberg/bqplot), [pythreejs](https://github.com/jovyan/pythreejs) and [ipyleaflet](https://github.com/ellisonbg/ipyleaflet) follow exactly the same template and directory structure. They can serve as more advanced examples of usage of the Jupyter widget infrastructure. For detailed information, please refer to the [ipywidgets documentation](http://ipywidgets.readthedocs.org/en/latest/). ## More advanced examples Examples of custom widget libraries built upon ipywidgets are - [bqplot](https://github.com/bloomberg/bqplot) a 2d data visualization library enabling custom user interactions. - [pythreejs](https://github.com/jovyan/pythreejs) a Jupyter - Three.js wrapper, bringing Three.js to the notebook. - [ipyleaflet](https://github.com/ellisonbg/ipyleaflet) a leaflet widget for Jupyter. ## Install Install the current version of ipywidgets using pip or conda. - With pip: ``` pip install ipywidgets jupyter nbextension enable --py --sys-prefix widgetsnbextension ``` - With conda: ``` conda install -c conda-forge ipywidgets ``` See the [Installation](docs/source/user_install.md) section of the documentation for additional details. ### Installing from git If you want to install ipywidgets from git, **you will need [npm](https://www.npmjs.com/) version 3.x or later** (check you version by running `npm -v` from a terminal). Installing from git is more complicated and requires a developer install, see the [developer install](docs/source/dev_install.md) instructions. To install the latest master version from the root directory of the source code, run ``dev-install.sh``. To only build the Python package enter ``pip install -e .``. #### Compatibility | ipywidgets version | Required notebook version | | ------------------- | ------------------------- | | master | 4.2 | | 5.x | 4.2 | | 4.1.x | 4.1 | | 4.0.x | 4.0 | [Change log](docs/source/changelog.md) ## Usage See the [examples](docs/source/examples.md) section of the documentation. The widgets are being used in a variety of ways; some uses can be seen in these notebooks: - [Demo notebook of interactive widgets](https://github.com/ipython/ipywidgets/blob/master/docs/source/examples/Index.ipynb) ## Contributing to ipywidgets - [Developer install](docs/source/dev_install.md) ### Project Jupyter resources - [Project Jupyter website](https://jupyter.org) - [Online Demo of Jupyter Notebook at try.jupyter.org](https://try.jupyter.org) - [Documentation for Project Jupyter](http://jupyter.readthedocs.org/en/latest/index.html) [[PDF](https://media.readthedocs.org/pdf/jupyter/latest/jupyter.pdf)] - [![Google Group](https://img.shields.io/badge/-Google%20Group-lightgrey.svg)](https://groups.google.com/forum/#!forum/jupyter)