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 - Наука та технологія
To get started with ipywidgets, be sure to catch my "Introduction to ipywidgets" video: ua-cam.com/video/wb6k_T4rKBQ/v-deo.html
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!
Oh that's wonderful! Very happy to hear that you have been able to think of ways to apply this content - cheers!
loved the outtakes at the end!
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.
Thank you very much. I was wondering about ipywidgets until seeing this video.
Perfect vídeo! Thank you for clarifying this content
Very good! Thank you!
Você é um anjo. Thank you very much
Great explanation . Really help in my study and understanding the library. Thank you soo much. This channel is awesome
You are most welcome! Glad to hear you are enjoying my channel 😄
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.
Very glad to hear you have ideas for applying the widgets to social science - happy to help!
Nice explanation
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?
As fantastic as the bloopers are, the content was better. Thanks!
Omg, love you! PLEASE consider teaching us some GUI library. It would be so much easier to learn it with you.
🙌 Thanks much for the suggestion and compliment! Cheers 😃
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?
thanks for your work...
Most welcome - cheers!
Nice
Loved this tutorial 😍
Why thank you! 😄
@@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 :)
Muy bueno!
Gracias! 😄
Thanks a lot!
Please how can you turn ipywidget to an interactive presentation, that is, without showing the codes
Please mam continue the playlist.....
Please please please
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.
Just also to add that Im developing my python code from the PyCharm IDE
Love this suggestion! I am definitely planning to do a video about exporting and embedding ipywidgets in the future!
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?
how did your plot update so quickly? mine looks like it's running on 2 fps
How can adjust background color and font color or style
Hi, is this only possible in Jupiter notebook
In Visual studio ipywidgets not works, sadly.
Could you pleaaaase also teach us how to compile this code into an executable program from Jupyter Labs.
Oh interesting! Thanks for the suggestion!
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.
Thanks for the feedback! I’ll keep that one in mind for future videos 👍
FYI - azure data studio doesn't work with ipywidgets
I can only see your zoomed in face as the result of interactive widget. 😅
I do love a good talking head segment! 😆