Skip to content

Commit bd8ec45

Browse files
authored
Merge pull request #3099 from willingc/update-rm
Refactor outdated README
2 parents ac456a5 + b162dca commit bd8ec45

File tree

1 file changed

+74
-56
lines changed

1 file changed

+74
-56
lines changed

README.md

+74-56
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# ipywidgets: Interactive HTML Widgets
22

3-
[![Version](https://img.shields.io/pypi/v/ipywidgets.svg)](https://pypi.python.org/pypi/ipywidgets)
4-
![Build Status](https://img.shields.io/github/workflow/status/jupyter-widgets/ipywidgets/Test/master)
5-
[![Documentation Status](http://readthedocs.org/projects/ipywidgets/badge/?version=stable)](https://ipywidgets.readthedocs.io/)
6-
[![Join the chat at https://gitter.im/ipython/ipywidgets](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jupyter-widgets/Lobby)
7-
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/jupyter-widgets/ipywidgets/master?filepath=docs%2Fsource%2Fexamples)
3+
| Purpose | Badges |
4+
|----------------------------|----------------------------|
5+
| **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) |
6+
| **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) |
7+
| **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/) |
8+
| | |
89

9-
ipywidgets are [interactive HTML widgets](https://github.com/jupyter-widgets/ipywidgets/blob/master/docs/source/examples/Index.ipynb)
10-
for Jupyter notebooks, JupyterLab and the IPython kernel.
10+
**ipywidgets**, also known as jupyter-widgets or simply widgets, are
11+
[interactive HTML widgets](https://github.com/jupyter-widgets/ipywidgets/blob/master/docs/source/examples/Index.ipynb)
12+
for Jupyter notebooks and the IPython kernel.
1113

1214
Notebooks come alive when interactive widgets are used. Users gain control of
1315
their data and can visualize changes in the data.
@@ -18,7 +20,9 @@ ipywidgets to your notebooks, and we're here to help you get started.
1820

1921
## Core Interactive Widgets
2022

21-
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:
23+
The fundamental widgets provided by this library are called core interactive
24+
widgets. A [demonstration notebook](https://github.com/jupyter-widgets/ipywidgets/blob/master/docs/source/examples/Index.ipynb)
25+
provides an overview of the core interactive widgets, including:
2226

2327
- sliders
2428
- progress bars
@@ -30,91 +34,104 @@ A [demonstration notebook](https://github.com/jupyter-widgets/ipywidgets/blob/ma
3034
## Jupyter Interactive Widgets as a Framework
3135

3236
Besides the widgets already provided with the library, the framework can be
33-
extended with custom widget libraries.
37+
extended with the development of **custom widget libraries**. For detailed
38+
information, please refer to the [ipywidgets documentation](https://ipywidgets.readthedocs.io/en/latest/).
3439

35-
A template project is available in the form of a cookie cutter [here](https://github.com/jupyter-widgets/widget-ts-cookiecutter).
40+
### Cookiecutter template for custom widget development
3641

37-
This project is meant to help custom widget authors get started with the
38-
packaging and the distribution of Jupyter interactive widgets.
39-
40-
It produces a project for a Jupyter interactive widget library following the
41-
current best practices for using interactive widgets. An implementation for a
42-
placeholder "Hello World" widget is provided.
42+
A template project for building custom widgets is available as a
43+
[**cookiecutter**](https://github.com/jupyter-widgets/widget-ts-cookiecutter).
44+
This cookiecutter project helps custom widget authors get started with the
45+
packaging and the distribution of their custom Jupyter interactive widgets.
46+
The cookiecutter produces a project for a Jupyter interactive widget library
47+
following the current best practices for using interactive widgets. An
48+
implementation for a placeholder "Hello World" widget is provided as an example.
4349

4450
Popular widget libraries such as
45-
[bqplot](https://github.com/bloomberg/bqplot),
46-
[pythreejs](https://github.com/jovyan/pythreejs) and
47-
[ipyleaflet](https://github.com/ellisonbg/ipyleaflet)
48-
49-
follow exactly the same template and directory structure. They can serve as
51+
[bqplot](https://github.com/bqplot/bqplot),
52+
[pythreejs](https://github.com/jupyter-widgets/pythreejs) and
53+
[ipyleaflet](https://github.com/jupyter-widgets/ipyleaflet)
54+
follow exactly the same template and directory structure. They serve as
5055
more advanced examples of usage of the Jupyter widget infrastructure.
5156

52-
For detailed information, please refer to the [ipywidgets documentation](https://ipywidgets.readthedocs.io/en/latest/).
53-
54-
## More advanced examples
57+
### Popular custom widget examples
5558

5659
Examples of custom widget libraries built upon ipywidgets are
5760

58-
- [bqplot](https://github.com/bloomberg/bqplot) a 2d data visualization library
61+
- [bqplot](https://github.com/bqplot/bqplot) a 2d data visualization library
5962
enabling custom user interactions.
60-
- [pythreejs](https://github.com/jovyan/pythreejs) a Jupyter - Three.js wrapper,
63+
- [pythreejs](https://github.com/jupyter-widgets/pythreejs) a Jupyter - Three.js wrapper,
6164
bringing Three.js to the notebook.
62-
- [ipyleaflet](https://github.com/ellisonbg/ipyleaflet) a leaflet widget for Jupyter.
65+
- [ipyleaflet](https://github.com/jupyter-widgets/ipyleaflet) a leaflet widget for Jupyter.
6366

6467
## Install
6568

66-
Install the current version of ipywidgets using pip or conda.
69+
The stable version of ipywidgets can be installed with [pip](#with-pip) or [conda](#with-conda).
70+
If using JupyterLab, review the [Front-end extension for JupyterLab](#front-end-extension-for-jupyterlab) section.
6771

68-
- With pip:
72+
### With pip
6973

70-
```
74+
```sh
7175
pip install ipywidgets
72-
jupyter nbextension enable --py --sys-prefix widgetsnbextension # can be skipped for notebook version 5.3 and above
76+
# Skip the next step if using JupyterLab or Classic notebook version 5.3 and above
77+
jupyter nbextension enable --py --sys-prefix widgetsnbextension
7378
```
7479

75-
- With conda:
80+
### With conda
7681

77-
```
82+
```sh
7883
conda install -c conda-forge ipywidgets
7984
```
8085

81-
- Install the front-end extension to JupyterLab (note that this requires nodejs to be installed):
86+
### Front-end extension for JupyterLab
8287

83-
* For JupyterLab 1.0.x and 1.1.x, use `jupyter labextension install @jupyter-widgets/[email protected]`
84-
* For JupyterLab 1.2.x, use `jupyter labextension install @jupyter-widgets/[email protected]`
85-
* For JupyterLab 2.x, use `jupyter labextension install @jupyter-widgets/[email protected]`
88+
Install the front-end extension to JupyterLab (note that this requires nodejs
89+
to be installed):
8690

87-
See the [Installation](docs/source/user_install.md) section of the documentation for additional details.
91+
- For JupyterLab 1.0.x and 1.1.x, use `jupyter labextension install @jupyter-widgets/[email protected]`
92+
- For JupyterLab 1.2.x, use `jupyter labextension install @jupyter-widgets/[email protected]`
93+
- For JupyterLab 2.x, use `jupyter labextension install @jupyter-widgets/[email protected]`
8894

89-
### Installing from git
95+
See the [Installation](docs/source/user_install.md) section of the documentation
96+
for additional details.
9097

91-
If you want to install ipywidgets from git, **you will need the
92-
[yarn](https://yarnpkg.com/) package manager version 1.2.1 or later**.
93-
Installing from git is more complicated and requires a developer install, see the [developer install](docs/source/dev_install.md) instructions.
98+
### Developer install from source
99+
100+
Installing from source is more complicated and requires a developer install,
101+
see the detailed [developer install](docs/source/dev_install.md) instructions.
94102

103+
If you want to install ipywidgets from source, **you will need the
104+
[yarn](https://yarnpkg.com/) package manager version 1.2.1 or later**.
95105
To install the latest master version from the root directory of the source
96-
code, run ``dev-install.sh``. To only build the Python package enter ``pip install -e .``.
106+
code, run ``dev-install.sh``. To only build the Python package enter
107+
``pip install -e .``.
108+
109+
## Usage
97110

98-
#### Compatibility
111+
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:
112+
[Demo notebook of interactive widgets](https://github.com/jupyter-widgets/ipywidgets/blob/master/docs/source/examples/Index.ipynb)
99113

100-
| ipywidgets version | Required notebook version |
101-
| ------------------- | ------------------------- |
102-
| master | 4.4 |
103-
| 5.x | 4.2 |
104-
| 4.1.x | 4.1 |
105-
| 4.0.x | 4.0 |
114+
## Change log
106115

107116
[Change log](docs/source/changelog.md)
108117

109-
## Usage
118+
### Version Compatibility with Front-End Clients
110119

111-
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:
120+
Refer to change log for more detail.
112121

113-
- [Demo notebook of interactive widgets](https://github.com/jupyter-widgets/ipywidgets/blob/master/docs/source/examples/Index.ipynb)
122+
| ipywidgets | JupyterLab | [Classic Notebook](https://github.com/jupyter/notebook) | [nbclassic](https://github.com/jupyterlab/nbclassic) |
123+
| ---------- | :--------------: | :--------------: | :---------: |
124+
| master | | - | TBD |
125+
| 7.6.3 | | | 0.2.6 |
126+
| **Legacy** | | | |
127+
| 6.x | | | - |
128+
| 5.x | | 4.2 | - |
129+
| 4.1.x | | 4.1 | - |
130+
| 4.0.x | | 4.0 | - |
114131

115132
## Contributing to ipywidgets
116133

117-
- [Developer information](CONTRIBUTING.md)
134+
[Developer information](CONTRIBUTING.md)
118135

119136
## License
120137

@@ -126,6 +143,7 @@ See the [LICENSE](LICENSE) file in this repository for details.
126143
## Project Jupyter resources
127144

128145
- [Project Jupyter website](https://jupyter.org)
129-
- [Online Demo of Jupyter Notebook at try.jupyter.org](https://try.jupyter.org)
146+
- [Online Demo at try.jupyter.org](https://try.jupyter.org)
130147
- [Documentation for Project Jupyter](https://jupyter.readthedocs.io/en/latest/index.html) [[PDF](https://media.readthedocs.org/pdf/jupyter/latest/jupyter.pdf)]
131-
- [![Google Group](https://img.shields.io/badge/-Google%20Group-lightgrey.svg)](https://groups.google.com/forum/#!forum/jupyter)
148+
- [![Discourse](https://img.shields.io/badge/help_forum-discourse-blue?logo=discourse)](https://discourse.jupyter.org/)
149+
[![Google Group](https://img.shields.io/badge/-Google%20Group-lightgrey.svg)](https://groups.google.com/forum/#!forum/jupyter)

0 commit comments

Comments
 (0)