https://github.com/lsternlicht/ipywidgets_gallery
IPyWidgets Gallery is a library of interactive widgets for Jupyter notebooks. It provides a collection of classes that can be used to create widgets with custom output and global variable assignments.
https://github.com/lsternlicht/ipywidgets_gallery
interactive ipython-notebook ipython-widget ipywidget ipywidgets jupyter jupyterlab jupyterlab-extension python widgets
Last synced: 3 months ago
JSON representation
IPyWidgets Gallery is a library of interactive widgets for Jupyter notebooks. It provides a collection of classes that can be used to create widgets with custom output and global variable assignments.
- Host: GitHub
- URL: https://github.com/lsternlicht/ipywidgets_gallery
- Owner: lsternlicht
- Created: 2023-04-07T19:07:53.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-07T20:51:52.000Z (about 2 years ago)
- Last Synced: 2025-02-12T07:55:29.022Z (3 months ago)
- Topics: interactive, ipython-notebook, ipython-widget, ipywidget, ipywidgets, jupyter, jupyterlab, jupyterlab-extension, python, widgets
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IPyWidgets Gallery
IPyWidgets Gallery is a library of interactive widgets for Jupyter notebooks.
It provides a collection of classes that can be used to create widgets with
custom output and easy value access.## Installation
You can install IPyWidgets Gallery using pip:
```bash
pip install ipywidgets-gallery
```IPyWidgets Gallery depends on the ipywidgets package, which must also be
installed:
```bash
pip install ipywidgets
```
## Usage
To use IPyWidgets Gallery in your Jupyter notebooks, you can import the classes
you need and create instances of them. For example, to create a dropdown
widget that displays the selected option and sets a `.value attribute`, you can
use the `DropdownWithOutput` class:
```python
from ipywidgets_gallery import DropdownWithOutput
options = ['option 1', 'option 2', 'option 3']
dropdown = ipywidgets_gallery.DropdownWithOutput(options, default='option 1')
dropdown.value # 'option 1'
```This will display a dropdown widget with the specified label and options, and
an output widget that displays the specified message (formatted with the
selected option) when an option is selected. The `.value` attribute of the widget will be set to the selected option when an option is selected.IPyWidgets Gallery provides a variety of other classes for creating widgets
with different types of output and easy value access.## Available widgets
* `CheckboxWithOutput`
* `ColorPickerWithOutput`
* `DatePickerWithOutput`
* `DropdownWithOutput`
* `FilePickerWithOutput`
* `IntSliderWithOutput`
* `RadioButtonsWithOutput`
* `RangeSliderWithOutput`
* `SelectMultipleWithOutput`
* `TextAreaWithOutput`
* `ToggleButtonWithOutput`
* `ToggleButtonGroupWithOutput`## License
IPyWidgets Gallery is released under the MIT License. See the
[LICENSE](LICENSE) file for details.