Code Monkey home page Code Monkey logo

ipywidgets_gallery's Introduction

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:

    pip install ipywidgets-gallery

IPyWidgets Gallery depends on the ipywidgets package, which must also be installed:

    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:

image

    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 file for details.

ipywidgets_gallery's People

Contributors

lsternlicht avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.