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

  Рет қаралды 24,575

Kimberly Fessel

Kimberly Fessel

Күн бұрын

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 жыл бұрын
To get started with ipywidgets, be sure to catch my "Introduction to ipywidgets" video: kzfaq.info/get/bejne/rchmnsKFmdivcoU.html
@rskura
@rskura 3 жыл бұрын
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 жыл бұрын
Oh that's wonderful! Very happy to hear that you have been able to think of ways to apply this content - cheers!
@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.
@ep5acg
@ep5acg 2 жыл бұрын
loved the outtakes at the end!
@mebaysan
@mebaysan 2 жыл бұрын
Thank you very much. I was wondering about ipywidgets until seeing this video.
@aslamazman7892
@aslamazman7892 3 жыл бұрын
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 😄
@leonardomiguel1943
@leonardomiguel1943 Жыл бұрын
Perfect vídeo! Thank you for clarifying this content
@pomfrittbroccoli
@pomfrittbroccoli 11 ай бұрын
Very good! Thank you!
@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!
@BrunoAraujo-po2lm
@BrunoAraujo-po2lm 3 жыл бұрын
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 😃
@cameroonpoe
@cameroonpoe 2 жыл бұрын
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?
@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?
@BrianTCarcich
@BrianTCarcich 2 жыл бұрын
As fantastic as the bloopers are, the content was better. Thanks!
@tuandino6990
@tuandino6990 2 жыл бұрын
Nice explanation
@renatocorreaarrieche
@renatocorreaarrieche Жыл бұрын
Você é um anjo. Thank you very much
@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 :)
@paulo.galvao
@paulo.galvao 2 жыл бұрын
thanks for your work...
@KimberlyFessel
@KimberlyFessel 2 жыл бұрын
Most welcome - cheers!
@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 жыл бұрын
Love this suggestion! I am definitely planning to do a video about exporting and embedding ipywidgets in the future!
@abhishekdodda5641
@abhishekdodda5641 Жыл бұрын
Nice
@Kachi246
@Kachi246 2 жыл бұрын
Thanks a lot! Please how can you turn ipywidget to an interactive presentation, that is, without showing the codes
@rubenandresservin1825
@rubenandresservin1825 2 жыл бұрын
Muy bueno!
@KimberlyFessel
@KimberlyFessel 2 жыл бұрын
Gracias! 😄
@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
@G_a_n_d_u
@G_a_n_d_u 2 жыл бұрын
Please mam continue the playlist..... Please please please
@naveenchoudhary2675
@naveenchoudhary2675 2 жыл бұрын
Hi, is this only possible in Jupiter notebook
@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!
@duwir5959
@duwir5959 Жыл бұрын
In Visual studio ipywidgets not works, sadly.
@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 Ай бұрын
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 Ай бұрын
I can only see your zoomed in face as the result of interactive widget. 😅
@KimberlyFessel
@KimberlyFessel Ай бұрын
I do love a good talking head segment! 😆
Build a Quick Animation with ipywidgets // ipywidgets play example
9:49
Clowns abuse children#Short #Officer Rabbit #angel
00:51
兔子警官
Рет қаралды 57 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 1,9 МЛН
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 15 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 115 МЛН
Python Introduction to Panel Widgets & Dashboards
13:09
Ryan Noonan
Рет қаралды 31 М.
Matplotlib Widgets Make Your Graphs Interactive
16:09
NeuralNine
Рет қаралды 11 М.
How to Create a Beautiful Python Visualization Dashboard With Panel/Hvplot
10:57
Thu Vu data analytics
Рет қаралды 533 М.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 263 М.
😱Хакер взломал зашифрованный ноутбук.
0:54
Последний Оплот Безопасности
Рет қаралды 757 М.
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Игорь Линк
Рет қаралды 118 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 54 МЛН
НЕ ПОКУПАЙ СМАРТФОН, ПОКА НЕ УЗНАЕШЬ ЭТО! Не ошибись с выбором…
15:23
Мой инст: denkiselef. Как забрать телефон через экран.
0:54