# ipywidgets: Interactive HTML Widgets
| Purpose | Badges |
|----------------------------|----------------------------|
| **Latest (master: future 8.0)** | [![Build Status](https://travis-ci.org/jupyter-widgets/ipywidgets.svg?branch=master)](https://travis-ci.org/jupyter-widgets/ipywidgets) [![Documentation Status: latest](https://img.shields.io/readthedocs/ipywidgets?logo=read-the-docs)](https://ipywidgets.readthedocs.io/en/latest/?badge=latest) [![Binder:master](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/jupyter-widgets/ipywidgets/master?filepath=docs%2Fsource%2Fexamples) |
| **Stable (7.6.3)** | [![Version](https://img.shields.io/pypi/v/ipywidgets.svg?logo=pypi)](https://pypi.python.org/pypi/ipywidgets) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/ipywidgets.svg?logo=conda-forge)](https://anaconda.org/conda-forge/ipywidgets) [![Documentation Status: 7.6.3](https://img.shields.io/readthedocs/ipywidgets?logo=read-the-docs)](https://ipywidgets.readthedocs.io/en/7.6.3/?badge=7.6.3) [![Binder:7.x](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/jupyter-widgets/ipywidgets/7.x?filepath=docs%2Fsource%2Fexamples) |
| **Communication** | [![Join the chat at https://gitter.im/ipython/ipywidgets](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jupyter-widgets/Lobby) [![Discourse](https://img.shields.io/badge/help_forum-discourse-blue?logo=discourse)](https://discourse.jupyter.org/) |
| | |
**ipywidgets**, also known as jupyter-widgets or simply widgets, are
[interactive HTML widgets](https://github.com/jupyter-widgets/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, 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
The fundamental widgets provided by this library are called core interactive
widgets. A [demonstration notebook](https://github.com/jupyter-widgets/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 the development of **custom widget libraries**. For detailed
information, please refer to the [ipywidgets documentation](https://ipywidgets.readthedocs.io/en/latest/).
### Cookiecutter template for custom widget development
A template project for building custom widgets is available as a
[**cookiecutter**](https://github.com/jupyter-widgets/widget-ts-cookiecutter).
This cookiecutter project helps custom widget authors get started with the
packaging and the distribution of their custom Jupyter interactive widgets.
The cookiecutter 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 as an example.
Popular widget libraries such as
[bqplot](https://github.com/bqplot/bqplot),
[pythreejs](https://github.com/jupyter-widgets/pythreejs) and
[ipyleaflet](https://github.com/jupyter-widgets/ipyleaflet)
follow exactly the same template and directory structure. They serve as
more advanced examples of usage of the Jupyter widget infrastructure.
### Popular custom widget examples
Examples of custom widget libraries built upon ipywidgets are
- [bqplot](https://github.com/bqplot/bqplot) a 2d data visualization library
enabling custom user interactions.
- [pythreejs](https://github.com/jupyter-widgets/pythreejs) a Jupyter - Three.js wrapper,
bringing Three.js to the notebook.
- [ipyleaflet](https://github.com/jupyter-widgets/ipyleaflet) a leaflet widget for Jupyter.
## Install
The stable version of ipywidgets can be installed with [pip](#with-pip) or [conda](#with-conda).
If using JupyterLab, review the [Front-end extension for JupyterLab](#front-end-extension-for-jupyterlab) section.
### With pip
```sh
pip install ipywidgets
# Skip the next step if using JupyterLab or Classic notebook version 5.3 and above
jupyter nbextension enable --py --sys-prefix widgetsnbextension
```
### With conda
```sh
conda install -c conda-forge ipywidgets
```
### Front-end extension for JupyterLab
Install the front-end extension to JupyterLab (note that this requires nodejs
to be installed):
- For JupyterLab 1.0.x and 1.1.x, use `jupyter labextension install @jupyter-widgets/jupyterlab-manager@1.0`
- For JupyterLab 1.2.x, use `jupyter labextension install @jupyter-widgets/jupyterlab-manager@1.1`
- For JupyterLab 2.x, use `jupyter labextension install @jupyter-widgets/jupyterlab-manager@2.0`
See the [Installation](docs/source/user_install.md) section of the documentation
for additional details.
### Developer install from source
Installing from source is more complicated and requires a developer install,
see the detailed [developer install](docs/source/dev_install.md) instructions.
If you want to install ipywidgets from source, **you will need the
[yarn](https://yarnpkg.com/) package manager version 1.2.1 or later**.
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 .``.
## 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/jupyter-widgets/ipywidgets/blob/master/docs/source/examples/Index.ipynb)
## Change log
[Change log](docs/source/changelog.md)
### Version Compatibility with Front-End Clients
Refer to change log for more detail.
| ipywidgets | JupyterLab | [Classic Notebook](https://github.com/jupyter/notebook) | [nbclassic](https://github.com/jupyterlab/nbclassic) |
| ---------- | :--------------: | :--------------: | :---------: |
| master | | - | TBD |
| 7.6.3 | | | 0.2.6 |
| **Legacy** | | | |
| 6.x | | | - |
| 5.x | | 4.2 | - |
| 4.1.x | | 4.1 | - |
| 4.0.x | | 4.0 | - |
## Contributing to ipywidgets
[Developer information](CONTRIBUTING.md)
## License
We use a shared copyright model that enables all contributors to maintain the
copyright on their contributions.
See the [LICENSE](LICENSE) file in this repository for details.
## Project Jupyter resources
- [Project Jupyter website](https://jupyter.org)
- [Online Demo at try.jupyter.org](https://try.jupyter.org)
- [Documentation for Project Jupyter](https://jupyter.readthedocs.io/en/latest/index.html) [[PDF](https://media.readthedocs.org/pdf/jupyter/latest/jupyter.pdf)]
- [![Discourse](https://img.shields.io/badge/help_forum-discourse-blue?logo=discourse)](https://discourse.jupyter.org/)
[![Google Group](https://img.shields.io/badge/-Google%20Group-lightgrey.svg)](https://groups.google.com/forum/#!forum/jupyter)
没有合适的资源?快使用搜索试试~ 我知道了~
ipywidgets-7.6.4.tar.gz
0 下载量 188 浏览量
2024-05-31
23:40:35
上传
评论
收藏 3.88MB GZ 举报
温馨提示
Python库是一组预先编写的代码模块,旨在帮助开发者实现特定的编程任务,无需从零开始编写代码。这些库可以包括各种功能,如数学运算、文件操作、数据分析和网络编程等。Python社区提供了大量的第三方库,如NumPy、Pandas和Requests,极大地丰富了Python的应用领域,从数据科学到Web开发。Python库的丰富性是Python成为最受欢迎的编程语言之一的关键原因之一。这些库不仅为初学者提供了快速入门的途径,而且为经验丰富的开发者提供了强大的工具,以高效率、高质量地完成复杂任务。例如,Matplotlib和Seaborn库在数据可视化领域内非常受欢迎,它们提供了广泛的工具和技术,可以创建高度定制化的图表和图形,帮助数据科学家和分析师在数据探索和结果展示中更有效地传达信息。
资源推荐
资源详情
资源评论
收起资源包目录
ipywidgets-7.6.4.tar.gz (149个子文件)
make.bat 2KB
setup.cfg 61B
ParallelKernels.graffle 20KB
WidgetModelView.graffle 12KB
MultilanguageKernels.graffle 10KB
VizInteractCompute.graffle 9KB
WidgetArch.graffle 7KB
Widget Styling.ipynb 58KB
Widget List.ipynb 26KB
Layout Templates.ipynb 20KB
Widget Low Level.ipynb 20KB
Widget Custom.ipynb 19KB
Using Interact.ipynb 19KB
Output Widget.ipynb 13KB
Widget Events.ipynb 13KB
Widget Basics.ipynb 8KB
Layout Example.ipynb 8KB
Widget Asynchronous.ipynb 7KB
Lorenz Differential Equations.ipynb 7KB
Image Processing.ipynb 6KB
Widget Alignment.ipynb 6KB
Variable Inspector.ipynb 5KB
Export As (nbconvert).ipynb 5KB
Exploring Graphs.ipynb 3KB
Index.ipynb 2KB
Beat Frequencies.ipynb 2KB
Image Browser.ipynb 2KB
Factoring.ipynb 2KB
Media widgets.ipynb 2KB
Controller.ipynb 1KB
state.schema.json 3KB
package.json 723B
view.schema.json 688B
LICENSE 1KB
Makefile 1KB
changelog.md 24KB
embedding.md 13KB
migration_guides.md 8KB
README.md 7KB
dev_release.md 6KB
user_install.md 5KB
dev_install.md 3KB
dev_docs.md 1KB
CONTRIBUTING.md 518B
contributing.md 297B
dev_testing.md 225B
examples.md 174B
Big.Buck.Bunny.mp3 518KB
Big.Buck.Bunny.mp4 2.3MB
PKG-INFO 1KB
applayout-weather.png 712KB
ParallelKernels.png 38KB
WidgetModelView.png 38KB
jupyter-logo-transparent.png 35KB
gaussian_with_grid.png 32KB
VizInteractCompute.png 29KB
WidgetArch.png 23KB
MultilanguageKernels.png 22KB
flexbox.png 12KB
widgets.PNG 5KB
gaussian_with_grid_tiny.png 5KB
grid-start-end-d.png 3KB
grid-start-end-b.png 3KB
grid-start-end-a.png 3KB
inputoutput.PNG 2KB
grid-justify-self-center.png 623B
grid-justify-self-start.png 614B
grid-justify-self-end.png 611B
grid-justify-self-stretch.png 595B
grid-line.png 249B
grid-cell.png 246B
grid-track.png 243B
grid-area.png 239B
widget.py 30KB
test_widget_templates.py 28KB
widget_selection.py 24KB
interaction.py 20KB
test_interaction.py 19KB
widget_templates.py 15KB
widget_float.py 14KB
embed.py 11KB
widget_int.py 11KB
trait_types.py 8KB
widget_media.py 8KB
test_traits.py 7KB
test_widget_output.py 7KB
test_embed.py 7KB
test_set_state.py 7KB
widget_layout.py 6KB
widget_output.py 5KB
widget_string.py 5KB
test_widget_image.py 4KB
setup.py 4KB
widget_box.py 4KB
widget_button.py 4KB
widget_link.py 3KB
test_widget_selection.py 3KB
widget_bool.py 3KB
widget_selectioncontainer.py 3KB
conf.py 3KB
共 149 条
- 1
- 2
资源评论
程序员Chino的日记
- 粉丝: 3664
- 资源: 5万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 15-Flink from YARN to Kubernetes: 资源优化和容器化实践
- (源码)基于PyTorch的BERT情感二分类系统.zip
- 14-Flink Kubernetes Operator 从1.4.0 升级到1.6.0的技术手册
- (源码)基于RTThread实时操作系统的g1632设备控制项目.zip
- 13-Flink Kubernetes Operator 高级特性详解 - 自动伸缩与高可用机制
- (源码)基于SpringBoot和Vue的家庭云系统.zip
- 12-Flink Kubernetes Operator部署与管理Flink应用实践
- 11-Flink kubernetes operator 常用的命令
- (源码)基于Python和ApacheJena的医药知识图谱智能问答系统.zip
- (源码)基于Arduino的vastara穿戴设备系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功