# ipywidgets: Interactive HTML Widgets
[![Version](https://img.shields.io/pypi/v/ipywidgets.svg)](https://pypi.python.org/pypi/ipywidgets)
[![Build Status](https://travis-ci.org/jupyter-widgets/ipywidgets.svg?branch=master)](https://travis-ci.org/jupyter-widgets/ipywidgets)
[![Documentation Status](http://readthedocs.org/projects/ipywidgets/badge/?version=latest)](https://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/jupyter-widgets/Lobby)
ipywidgets 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, 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/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 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](https://ipywidgets.readthedocs.io/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 # can be skipped for notebook version 5.3 and above
```
- 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 the
[yarn](https://yarnpkg.com/) package manager version 1.2.1 or later**.
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.4 |
| 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/jupyter-widgets/ipywidgets/blob/master/docs/source/examples/Index.ipynb)
## 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 of Jupyter Notebook 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)]
- [![Google Group](https://img.shields.io/badge/-Google%20Group-lightgrey.svg)](https://groups.google.com/forum/#!forum/jupyter)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
资源分类:Python库 所属语言:Python 资源全名:ipywidgets-7.2.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
Python库 | ipywidgets-7.2.0.tar.gz (124个子文件)
make.bat 2KB
setup.cfg 26B
ParallelKernels.graffle 20KB
WidgetModelView.graffle 12KB
MultilanguageKernels.graffle 10KB
VizInteractCompute.graffle 9KB
WidgetArch.graffle 7KB
Image Processing.ipynb 510KB
Lorenz Differential Equations.ipynb 206KB
Widget List.ipynb 121KB
Widget Styling.ipynb 89KB
Beat Frequencies.ipynb 87KB
Using Interact.ipynb 80KB
Widget Alignment.ipynb 54KB
Widget Events.ipynb 38KB
Output Widget.ipynb 32KB
Widget Low Level.ipynb 23KB
Exploring Graphs.ipynb 19KB
Widget Basics.ipynb 16KB
Widget Custom.ipynb 16KB
Export As (nbconvert).ipynb 10KB
Image Browser.ipynb 10KB
Widget Asynchronous.ipynb 8KB
Variable Inspector.ipynb 5KB
Factoring.ipynb 5KB
Index.ipynb 2KB
Controller.ipynb 1KB
state.schema.json 3KB
view.schema.json 688B
package.json 665B
Makefile 1KB
changelog.md 18KB
embedding.md 13KB
migration_guides.md 8KB
README.md 5KB
user_install.md 3KB
COPYING.md 3KB
dev_release.md 3KB
dev_install.md 3KB
dev_docs.md 1KB
CONTRIBUTING.md 518B
contributing.md 297B
dev_testing.md 254B
examples.md 174B
PKG-INFO 1KB
ParallelKernels.png 38KB
WidgetModelView.png 38KB
jupyter-logo-transparent.png 35KB
VizInteractCompute.png 29KB
WidgetArch.png 23KB
MultilanguageKernels.png 22KB
flexbox.png 12KB
widgets.PNG 5KB
inputoutput.PNG 2KB
widget.py 29KB
widget_selection.py 24KB
interaction.py 20KB
test_interaction.py 19KB
widget_float.py 14KB
widget_int.py 11KB
embed.py 10KB
trait_types.py 7KB
test_widget_output.py 7KB
test_embed.py 6KB
test_traits.py 6KB
test_set_state.py 6KB
widget_output.py 5KB
widget_layout.py 4KB
widget_string.py 4KB
setup.py 4KB
widget_image.py 4KB
test_widget_image.py 3KB
widget_button.py 3KB
widget_link.py 3KB
widget_box.py 3KB
widget_bool.py 3KB
conf.py 3KB
widget_selectioncontainer.py 3KB
widget_controller.py 2KB
domwidget.py 2KB
__init__.py 2KB
__init__.py 1KB
widget_description.py 1KB
utils.py 1KB
test_link.py 1KB
test_widget_box.py 995B
test_selectioncontainer.py 839B
valuewidget.py 834B
widget_color.py 807B
widget_date.py 742B
test_send_state.py 692B
test_docutils.py 673B
test_widget.py 666B
_version.py 658B
widget_core.py 622B
test_widget_float.py 606B
widget_style.py 559B
docutils.py 506B
__init__.py 0B
__init__.py 0B
共 124 条
- 1
- 2
资源评论
- 玖玖992024-05-19资源有一定的参考价值,与资源描述一致,很实用,能够借鉴的部分挺多的,值得下载。
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功