Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Interactive Widgets for the Jupyter Notebook

License

NotificationsYou must be signed in to change notification settings

jupyter-widgets/ipywidgets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
PurposeBadges
Latest (main: future 8.0)Test StatusDocumentation Status: latestBinder:main
StableVersionConda VersionDocumentation StatusBinder:7.x
CommunicationJoin the chat at https://gitter.im/ipython/ipywidgetsDiscourse

ipywidgets, also known as jupyter-widgets or simply widgets, areinteractive HTML widgetsfor Jupyter notebooks and the IPython kernel.

Notebooks come alive when interactive widgets are used. Users gain control oftheir data and can visualize changes in the data.

Learning becomes an immersive, fun experience. Researchers can easily seehow changing inputs to a model impact the results. We hope you will addipywidgets to your notebooks, and we're here to help you get started.

The ipywidgets package is under theJupyter-Widgetssoftware subproject.

Core Interactive Widgets

The fundamental widgets provided by this library are called core interactivewidgets. Ademonstration notebookprovides 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 beextended with the development ofcustom widget libraries. For detailedinformation, please refer to theipywidgets documentation.

Cookiecutter template for custom widget development

A template project for building custom widgets is available as acookiecutter.This cookiecutter project helps custom widget authors get started with thepackaging and the distribution of their custom Jupyter interactive widgets.The cookiecutter produces a project for a Jupyter interactive widget libraryfollowing the current best practices for using interactive widgets. Animplementation for a placeholder "Hello World" widget is provided as an example.

Popular widget libraries such asbqplot,pythreejs andipyleafletfollow exactly the same template and directory structure. They serve asmore advanced examples of usage of the Jupyter widget infrastructure.

Popular custom widget examples

Examples of custom widget libraries built upon ipywidgets are

  • bqplot a 2d data visualization libraryenabling custom user interactions.
  • pythreejs a Jupyter - Three.js wrapper,bringing Three.js to the notebook.
  • ipyleaflet a leaflet widget for Jupyter.

Install

The stable version of ipywidgets can be installed with pip or conda.

With pip:

pip install ipywidgets

With conda:

conda install -c conda-forge ipywidgets

Developer install from source

Installing from source is more complicated and requires a developer install,see the detaileddeveloper install instructions.

If you want to install ipywidgets from source,you will need theyarn package manager version 3 or later.To install the latestmain version from the root directory of the sourcecode, rundev-install.sh. To only build the Python package enterpip install -e ..

Usage

See theexamples 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

Change log

Change log

Version Compatibility with Front-End Clients

Refer to change log for more detail.

ipywidgetsJupyterLabClassic Notebooknbclassic
main-TBD
7.6.30.2.6
Legacy
6.x-
5.x4.2-
4.1.x4.1-
4.0.x4.0-

Contributing to ipywidgets

Developer information

License

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

See theLICENSE file in this repository for details.

Project Jupyter resources

Developer Meetings take place onzoom, on Tuesdays at 9:30AM Pacific Time (your time).

Minutes are taken atHackmd.io.


[8]ページ先頭

©2009-2025 Movatter.jp