同步操作将从 ZhouqW2019/ipywidgets 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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.
A demonstration notebook provides an overview of the core interactive widgets, including:
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.
Examples of custom widget libraries built upon ipywidgets are
Install the current version of ipywidgets using pip or conda.
pip install ipywidgets
jupyter nbextension enable --py --sys-prefix widgetsnbextension # can be skipped for notebook version 5.3 and above
conda install -c conda-forge ipywidgets
See the Installation section of the documentation for additional details.
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 .
.
ipywidgets version | Required notebook version |
---|---|
master | 4.4 |
5.x | 4.2 |
4.1.x | 4.1 |
4.0.x | 4.0 |
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:
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。