Ipywidgets Interact Function | ipywidgets Examples of Slider, Dropdown, Checkbox, Text Box

Поділитися
Вставка
  • Опубліковано 8 лип 2024
  • Master the ipywidgets interact function with this tutorial. ipywidgets is a Python library for building interactive HTML widgets for your Jupyter Notebook browser. This video explores its interact function, which allows you to easily create Python Jupyter widgets. Based on the data type of your argument, you can make an ipywidgets slider, ipywidgets dropdown, ipywidgets checkbox, or an ipywidgets text box using default behaviors. This ipywidgets tutorial shows you examples of each of these widgets in the Python code. I also show you how you can pass a custom widget to the interact function, meaning you can use whatever widget you'd like to control your function's arguments. I demo an example of some ipywidgets radio buttons near the end of this video. Learn how to interact with ipywidgets and get started building your own custom Python widgets!
    0:00 Introduction
    0:27 Interact Basics
    1:14 ipywidgets Slider
    3:48 ipywidgets Dropdown
    4:21 Interact Defaults by Argument Data Type
    4:42 ipywidgets Checkbox
    5:47 ipywidget Text Box
    7:35 Customize Interact
    7:49 ipywidgets Radio Buttons
    9:26 BLOOPERS!
    GitHub CODE:
    github.com/kimfetti/Videos/bl...
    ipywidgets DOCUMENTATION:
    "Using Interact" - ipywidgets.readthedocs.io/en/...
    Related VIDEOS:
    Introduction to ipywidgets - • Introduction to ipywid...
    Add TEXT to Matplotlib - • Add TEXT to MATPLOTLIB...
    Matplotlib change axes LIMITS - • How to change the axes...
    #dataviz #ipywidgets
  • Наука та технологія

КОМЕНТАРІ • 46

  • @KimberlyFessel
    @KimberlyFessel  3 роки тому +2

    To get started with ipywidgets, be sure to catch my "Introduction to ipywidgets" video: ua-cam.com/video/wb6k_T4rKBQ/v-deo.html

  • @rskura
    @rskura 3 роки тому +7

    I appreciate content like this so much! Before the video was even finished, potential applications were coming to mind. You really nailed it with this video. Thank you so much!

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому +2

      Oh that's wonderful! Very happy to hear that you have been able to think of ways to apply this content - cheers!

  • @ep5acg
    @ep5acg 2 роки тому

    loved the outtakes at the end!

  • @fizixx
    @fizixx Рік тому

    New subscriber. Your channel looks terrific. This video is brilliant, thanks. This is the kind of customizing that takes so long to figure out via convoluted docs. You present it well. Thanks very much.

  • @mebaysan
    @mebaysan 2 роки тому

    Thank you very much. I was wondering about ipywidgets until seeing this video.

  • @leonardomiguel1943
    @leonardomiguel1943 Рік тому

    Perfect vídeo! Thank you for clarifying this content

  • @pomfrittbroccoli
    @pomfrittbroccoli 10 місяців тому

    Very good! Thank you!

  • @renatocorreaarrieche
    @renatocorreaarrieche Рік тому

    Você é um anjo. Thank you very much

  • @aslamazman7892
    @aslamazman7892 3 роки тому +1

    Great explanation . Really help in my study and understanding the library. Thank you soo much. This channel is awesome

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому

      You are most welcome! Glad to hear you are enjoying my channel 😄

  • @MrArgmi
    @MrArgmi 3 роки тому

    You have a wonderful presentations, for me this is really very great in the sense that widgets are applied in a beautiful way - simple x and y functions. I can apply in my context of social science as well. Thanks.

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому

      Very glad to hear you have ideas for applying the widgets to social science - happy to help!

  • @tuandino6990
    @tuandino6990 2 роки тому

    Nice explanation

  • @cameroonpoe
    @cameroonpoe 2 роки тому +1

    Hi, I wonder if I can use any value I chose in the widgets? For example, can I use the value of m (in your example) for another calculation?

  • @BrianTCarcich
    @BrianTCarcich 2 роки тому

    As fantastic as the bloopers are, the content was better. Thanks!

  • @BrunoAraujo-po2lm
    @BrunoAraujo-po2lm 3 роки тому +1

    Omg, love you! PLEASE consider teaching us some GUI library. It would be so much easier to learn it with you.

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому

      🙌 Thanks much for the suggestion and compliment! Cheers 😃

  • @cyclopsRio
    @cyclopsRio 2 роки тому

    Thanks Kim. Great video. But what if I want to put three sliders on the same graph, one controlling the slope of the line and the other two controlling the coordinates (x,y) of the line start position?

  • @paulo.galvao
    @paulo.galvao 2 роки тому

    thanks for your work...

  • @abhishekdodda5641
    @abhishekdodda5641 Рік тому

    Nice

  • @RocioGonzalezMeza
    @RocioGonzalezMeza 3 роки тому

    Loved this tutorial 😍

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому

      Why thank you! 😄

    • @RocioGonzalezMeza
      @RocioGonzalezMeza 3 роки тому

      @@KimberlyFessel you explained thing neatly and simple. I used this library to display the results in my research where a parameter showed a transition. Worked perfectly with subplots :)

  • @rubenandresservin1825
    @rubenandresservin1825 2 роки тому

    Muy bueno!

  • @Kachi246
    @Kachi246 2 роки тому

    Thanks a lot!
    Please how can you turn ipywidget to an interactive presentation, that is, without showing the codes

  • @G_a_n_d_u
    @G_a_n_d_u 2 роки тому

    Please mam continue the playlist.....
    Please please please

  • @rahulchandran3906
    @rahulchandran3906 3 роки тому

    Thank You Kimberly for this tutorial. I find it useful for my day to day work. Could you please also touch upon how I may embed the widget and the data that is being controlled into an html format. In may case I am working on a dataset and would like to explore the possibility to make an interactive html report.

    • @rahulchandran3906
      @rahulchandran3906 3 роки тому

      Just also to add that Im developing my python code from the PyCharm IDE

    • @KimberlyFessel
      @KimberlyFessel  2 роки тому +1

      Love this suggestion! I am definitely planning to do a video about exporting and embedding ipywidgets in the future!

  • @11ClockworkOrange11
    @11ClockworkOrange11 2 роки тому

    Possibly I missed the benefit of using ipywidgets which is runnning in Jupyter notebook only. It is completly useless with an IDE like PyCharm, isn´t it?

  • @glowiever
    @glowiever 2 роки тому

    how did your plot update so quickly? mine looks like it's running on 2 fps

  • @chriskeo392
    @chriskeo392 Рік тому

    How can adjust background color and font color or style

  • @naveenchoudhary2675
    @naveenchoudhary2675 2 роки тому

    Hi, is this only possible in Jupiter notebook

  • @duwir5959
    @duwir5959 Рік тому +1

    In Visual studio ipywidgets not works, sadly.

  • @BrunoAraujo-po2lm
    @BrunoAraujo-po2lm 3 роки тому

    Could you pleaaaase also teach us how to compile this code into an executable program from Jupyter Labs.

    • @KimberlyFessel
      @KimberlyFessel  3 роки тому

      Oh interesting! Thanks for the suggestion!

  • @cybervigilante
    @cybervigilante Місяць тому

    The slider is easy but for some reason I just can't get the Button to work - and it's the Last thing mentioned anywhere, if at all.

    • @KimberlyFessel
      @KimberlyFessel  29 днів тому

      Thanks for the feedback! I’ll keep that one in mind for future videos 👍

  • @chriskeo392
    @chriskeo392 Рік тому

    FYI - azure data studio doesn't work with ipywidgets

  • @ujjwalchetan4907
    @ujjwalchetan4907 25 днів тому

    I can only see your zoomed in face as the result of interactive widget. 😅

    • @KimberlyFessel
      @KimberlyFessel  24 дні тому

      I do love a good talking head segment! 😆