6.0.7 • Published 3 months ago

@jupyter-widgets/base v6.0.7

Weekly downloads
23,088
License
BSD-3-Clause
Repository
github
Last release
3 months ago

ipywidgets: Interactive HTML Widgets

Version Build Status Documentation Status Join the chat at https://gitter.im/ipython/ipywidgets Binder

ipywidgets are interactive HTML widgets 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, 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 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.

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, pythreejs and 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.

More advanced examples

Examples of custom widget libraries built upon ipywidgets are

  • bqplot a 2d data visualization library enabling custom user interactions.
  • pythreejs a Jupyter - Three.js wrapper, bringing Three.js to the notebook.
  • 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  # can be skipped for notebook version 5.3 and above
  • With conda:
conda install -c conda-forge ipywidgets

See the Installation section of the documentation for additional details.

Installing from git

If you want to install ipywidgets from git, you will need the yarn package manager version 1.2.1 or later. Installing from git is more complicated and requires a developer install, see the developer install 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 versionRequired notebook version
master4.4
5.x4.2
4.1.x4.1
4.0.x4.0

Change log

Usage

See the examples section of the documentation. The widgets are being used in a variety of ways; some uses can be seen in these notebooks:

Contributing to ipywidgets

License

We use a shared copyright model that enables all contributors to maintain the copyright on their contributions.

See the LICENSE file in this repository for details.

Project Jupyter resources

lux-widgettfma_widget_js@osscar/widget_code_inputpdw-auth-widgetpdw-ipyauth1pdw-ipyauthpdw-jupytermito-sheetsidetabszivizhn_widgetreactopya_juppdp-explorerwidget-code-inputephys_viz_jup@infinitebrahmanuniverse/nolb-_jupjupyter-widget-example@everything-registry/sub-chunk-504exatomicevince@upsetjs/jupyter_widget@vscode/jupyter-ipywidgets8@voila-dashboards/jupyterlab-gridstack@voila-dashboards/voici@voila-dashboards/voila@tiledb-inc/jupyter-bioimage-viewer@tiledb-inc/pybabylonjs@tiledb-inc/tiledb-plot-widget@tiburon-security/jupyterlab_scheduler@unfolded/jupyter-map-sdk@visa/charts-pythonacme-widget-jupyteraispace2aiffel-kernel@anywidget/typesgallavantfigurl-jupyter@8080labs/bamboolib@8080labs/qgrid@zalastax/nolb-_jupfaerun-notebook@widgetti/jupyter-react@yt-project/yt-widgetsfairlearn-widgetgeosaurus-widgetsgenki-widgetsgetml-jupyter-widgetsanywidgetmols2gridmsaviewcytoscape-cljlineup_widget@educational-technology-collective/etc_jupyterlab_distribution@educational-technology-collective/etc_jupyterlab_widget_devluxwidgetd3vis_ipynbdcf-ipywidgetdcf-widgetlexcubedeckartdeckgl-widgetdeephaven-ipywidgetsdotdata_widgetsdapla-jupyterlab-widgetslatticeflow-widgets@datalayer-jupyter/widgets@datalayer/jupyter-reactarcgis-jupyter-widgetsibbcad-viewer-widget@cylynx/pymotif@deephaven/ipywidgets@data-exp-lab/jupyterlab-twitch@data-exp-lab/yt-jscanvas@data-exp-lab/yt-widgetsidom-client-jupyter@deathbeds/jupikchr@deck.gl/jupyter-widgetcatboost-widgetnerfviewer@epi2melabs/igv-jupyterlabnavio-jupyternbinteract-corenbinteract-core-localngl-cljnglview-js-widgetsngsolvengsolve_jupyter_widgetsngsolve_jupyterlab_widgetsmicrosoft-mli-widgetmitosheetgreenflowlab@bokeh/jupyter_bokeh@bgipyauth/ipyauthgquantlabatlas-jupyter-react@boyuai/ipyturtle@boyuai/jupyter-widgets-controls@foursquare/jupyter-map-sdkmotif-jupyter
6.0.7

3 months ago

6.0.6

8 months ago

6.0.5

10 months ago

4.1.5

8 months ago

6.0.3

1 year ago

6.0.4

1 year ago

4.1.4

1 year ago

4.1.3

1 year ago

4.1.2

1 year ago

6.0.2

1 year ago

6.0.1

2 years ago

6.0.0

2 years ago

6.0.0-rc.1

2 years ago

6.0.0-rc.2

2 years ago

4.1.1

2 years ago

4.1.0-rc.0

2 years ago

6.0.0-rc.0

2 years ago

4.1.0

2 years ago

4.1.0-alpha.0

2 years ago

5.0.0-beta.0

2 years ago

5.0.0-beta.1

2 years ago

5.0.0-alpha.4

3 years ago

5.0.0-alpha.3

3 years ago

5.0.0-alpha.2

3 years ago

5.0.0-alpha.1

3 years ago

4.0.0-rc.0

3 years ago

4.0.0

3 years ago

4.0.0-alpha.2

4 years ago

4.0.0-alpha.1

4 years ago

4.0.0-alpha.0

4 years ago

3.0.0

4 years ago

3.0.0-rc.1

4 years ago

3.0.0-rc.0

4 years ago

2.0.2

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

2.0.0-rc.2

5 years ago

2.0.0-rc.1

5 years ago

2.0.0-rc.0

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.3-alpha.0

5 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.2.0-0

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

7 years ago

1.0.4-0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.6.12

7 years ago

0.6.11

7 years ago

0.6.10

7 years ago

0.6.9

7 years ago

0.6.8

7 years ago

0.6.7

7 years ago

0.6.6

7 years ago

0.6.5

7 years ago

0.6.4

7 years ago

0.6.3

7 years ago

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago