Skip to content

Commit b6d6f8d

Browse files
committed
Refactor outdated README
1 parent ac456a5 commit b6d6f8d

File tree

1 file changed

+67
-50
lines changed

1 file changed

+67
-50
lines changed

README.md

Lines changed: 67 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
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 are [interactive HTML widgets](https://github.com/jupyter-widgets/ipywidgets/blob/master/docs/source/examples/Index.ipynb)
11+
for Jupyter notebooks and the IPython kernel.
1112

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

1920
## Core Interactive Widgets
2021

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

2326
- sliders
2427
- progress bars
@@ -30,28 +33,27 @@ A [demonstration notebook](https://github.com/jupyter-widgets/ipywidgets/blob/ma
3033
## Jupyter Interactive Widgets as a Framework
3134

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

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

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.
41+
A template project for building custom widgets is available as a
42+
[**cookiecutter**](https://github.com/jupyter-widgets/widget-ts-cookiecutter).
43+
This cookiecutter project helps custom widget authors get started with the
44+
packaging and the distribution of their custom Jupyter interactive widgets.
45+
The cookiecutter produces a project for a Jupyter interactive widget library
46+
following the current best practices for using interactive widgets. An
47+
implementation for a placeholder "Hello World" widget is provided as an example.
4348

4449
Popular widget libraries such as
4550
[bqplot](https://github.com/bloomberg/bqplot),
4651
[pythreejs](https://github.com/jovyan/pythreejs) and
4752
[ipyleaflet](https://github.com/ellisonbg/ipyleaflet)
48-
49-
follow exactly the same template and directory structure. They can serve as
53+
follow exactly the same template and directory structure. They serve as
5054
more advanced examples of usage of the Jupyter widget infrastructure.
5155

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

5658
Examples of custom widget libraries built upon ipywidgets are
5759

@@ -63,58 +65,72 @@ Examples of custom widget libraries built upon ipywidgets are
6365

6466
## Install
6567

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

68-
- With pip:
71+
### With pip
6972

70-
```
73+
```sh
7174
pip install ipywidgets
72-
jupyter nbextension enable --py --sys-prefix widgetsnbextension # can be skipped for notebook version 5.3 and above
75+
# Skip the next step if using JupyterLab or Classic notebook version 5.3 and above
76+
jupyter nbextension enable --py --sys-prefix widgetsnbextension
7377
```
7478

75-
- With conda:
79+
### With conda
7680

77-
```
81+
```sh
7882
conda install -c conda-forge ipywidgets
7983
```
8084

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

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]`
87+
Install the front-end extension to JupyterLab (note that this requires nodejs
88+
to be installed):
8689

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

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

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.
97+
### Developer install from source
98+
99+
Installing from source is more complicated and requires a developer install,
100+
see the detailed [developer install](docs/source/dev_install.md) instructions.
94101

102+
If you want to install ipywidgets from source, **you will need the
103+
[yarn](https://yarnpkg.com/) package manager version 1.2.1 or later**.
95104
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 .``.
105+
code, run ``dev-install.sh``. To only build the Python package enter
106+
``pip install -e .``.
107+
108+
## Usage
97109

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

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 |
113+
## Change log
106114

107115
[Change log](docs/source/changelog.md)
108116

109-
## Usage
117+
### Version Compatibility with Front-End Clients
110118

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:
119+
Refer to change log for more detail.
112120

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

115131
## Contributing to ipywidgets
116132

117-
- [Developer information](CONTRIBUTING.md)
133+
[Developer information](CONTRIBUTING.md)
118134

119135
## License
120136

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

128144
- [Project Jupyter website](https://jupyter.org)
129-
- [Online Demo of Jupyter Notebook at try.jupyter.org](https://try.jupyter.org)
145+
- [Online Demo at try.jupyter.org](https://try.jupyter.org)
130146
- [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)
147+
- [![Discourse](https://img.shields.io/badge/help_forum-discourse-blue?logo=discourse)](https://discourse.jupyter.org/)
148+
[![Google Group](https://img.shields.io/badge/-Google%20Group-lightgrey.svg)](https://groups.google.com/forum/#!forum/jupyter)

0 commit comments

Comments
 (0)