Тёмный

Python Introduction to Panel Widgets & Dashboards 

Ryan Noonan
Подписаться 7 тыс.
Просмотров 32 тыс.
50% 1

In this python tutorial, we will go over how to create interactive widgets and dashboards using the panel library. Topics include: slider widgets, text, textbox widgets, select dropdown widgets, checkbox widgets, toggle chart elements on or off, radio button widgets, tab widgets, link widgets to plots with jslink, decorators, callbacks, creating interactions between widgets and functions, layout options, interactive charts and maps.
Jupyter Notebook with Code Examples: github.com/gro...

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@congdungnguyen7354
@congdungnguyen7354 Год назад
Thank you very much for this tutorial. It reminds me to start easier to not overwhelm oneself.
@RyanNoonan
@RyanNoonan Год назад
Glad it was helpful and I agree. I like to start simple and then add on little by little until I have something impressive.
@MH-xx6df
@MH-xx6df 4 года назад
Awesome. Can surely use this. Thanks Frank!
@MinhNguyen-nx1pu
@MinhNguyen-nx1pu 8 дней назад
you save my day!🥰
@ahsannaseer9433
@ahsannaseer9433 2 года назад
Thank You so much man! Your tutorial really helped me.
@RyanNoonan
@RyanNoonan 2 года назад
Glad it helped!
@anny23108
@anny23108 2 года назад
This is so so good, thank you so much, great work!
@RyanNoonan
@RyanNoonan 2 года назад
Thank you too!
@jhonnykokos8522
@jhonnykokos8522 3 года назад
Absolutely fantastic!
@kevon217
@kevon217 Год назад
Great walkthrough!
@jamesb9223
@jamesb9223 4 года назад
Your tutorials are amazing!!!
@RyanNoonan
@RyanNoonan 4 года назад
Glad you like them!
@eugeniosp3
@eugeniosp3 2 года назад
Awesome tutorial
@RyanNoonan
@RyanNoonan 2 года назад
Thank you!
@vivekdabholkar5965
@vivekdabholkar5965 Год назад
Very well done!
@RyanNoonan
@RyanNoonan Год назад
Thank you! Cheers!
@astronomiahoy264
@astronomiahoy264 2 года назад
Super
@RyanNoonan
@RyanNoonan 2 года назад
Thanks
@0mon0zz
@0mon0zz 2 года назад
Is it possible to have multiple dashboards in one URL? Like tabs for each dashboard?
@sarbajitroy7003
@sarbajitroy7003 3 года назад
Hi Ryan, lovely video. One question, will the dashboard work if we export the .ipynb notebook into abHTML_toc or html_embd? I tried with the widgets inside panels and those are not working when exporting into html_embed or html_toc files. Any thoughts will be highly appreciated!
@RyanNoonan
@RyanNoonan 3 года назад
Thanks. I have not tried this. I searched the documentation and found a section called panel deploy and export that might help.
@MariaDiaz-qv7xy
@MariaDiaz-qv7xy 3 года назад
gracias!
@sarbajitroy7003
@sarbajitroy7003 3 года назад
Hi Ryan, For TEXTBOX & BUTTON, any thoughts on how to save it as an HTML file. Like pn.Column(text_box, button, text).save("file.html",embed=True) or something, that will work?
@ottolunam
@ottolunam 2 года назад
does it only work in Jupyter Notebook?
@debarunkumer2019
@debarunkumer2019 2 года назад
Consider a situation where I have var_name with 600 unique values, bins, woe values and event rate values. Now I am having to create a dashboard with all the above features as input such that when I select a particular variable name from a dropmenu and a woe or event rate feature from the other dropmenu, I can visual a bar plot of the woe or event rate values against the bins of that particular selected var_name value. Can someone please help me with that code?
@elghark
@elghark 2 года назад
minute 5:04: I don't understand why putting 'event' in the ''hello' function makes it work. I mean, 'event' is a variable input you didn't use later. However, if i don't put any input, it doesn't work after clicking the Button. Can u explain?
@RyanNoonan
@RyanNoonan 2 года назад
The event variable can be used. Here is an example from the documentation: m = pn.pane.Markdown("") t = pn.widgets.TextInput() def callback(target, event): target.object = event.new.upper() + '!!!' t.link(m, callbacks={'value': callback}) t.value="Some text" pn.Row(t, m) In this case the text is set to upper case. Event can also be used to get information about the variable and how it has changed, etc. As far as why it seems to be required even if not used, I am not exactly sure. The example below is from the documentation. If event is taken out - it does not work. The way the package is set up - there must be a need to have a placeholder variable there for things to work even if not used explicitly in the function but as I mentioned, the "event" variable can be used. Maybe event is required because it is used behind the scenes somehow or it could just be arbitrary. button = pn.widgets.Button(name='Click me', button_type='primary') text = pn.widgets.TextInput(value='Ready') def b(event): text.value = 'Clicked {0} times'.format(button.clicks) button.on_click(b) pn.Row(button, text) If I learn more about "event" and why it is the way it is, I'll share. By the way, I think you can use any variable you want for event.
@elghark
@elghark 2 года назад
@@RyanNoonan many thanks for the explanation. It's clear I have a lot to study for this library😁
@lazzyboyhunter2938
@lazzyboyhunter2938 2 года назад
not able to import pydataset tried all the commands to install pydataset but the error keeps poping up "ModuleNotFoundError: No module named 'pydataset'"
@RyanNoonan
@RyanNoonan 2 года назад
Are you using the anaconda package manager? This error means the package has not been installed in the package environment being used. You can add packages to the anaconda package environment using terminal. I have a tutorial that might help titled: Python Create Package Environments with Anaconda Navigator.
@ivancarhuapoma1184
@ivancarhuapoma1184 2 года назад
bro, how can I configure panel in Vscode?
@anny23108
@anny23108 2 года назад
If you wanted help, perhaps starting with “bro” is not the best choice or words, nobody owes you anything
@davidmurphy563
@davidmurphy563 4 года назад
I'm implementing KivyMD on a project, I like the material design standard and autoresizing that makes it cross platform comparable. I tried tkinter but it's hopelessly outmoded in my humble. What advantages/case uses would you say panels has in the context of other GUIs?
@finnmccool8671
@finnmccool8671 4 года назад
Tk drove me mad so I gave up on it a long time ago. PyQt5 is 1_000 times better. You can use Qt Creator to quickly design the GUI and layout changes are easy. And it's cross platform. I don't know how Panels will work in it. I use Jupyter a lot so the widgets work for me.
@RyanNoonan
@RyanNoonan 4 года назад
There is some overlap, however when I think of Kivy and Tkinter I think of libraries that help build applications or mobile apps, etc. Panel is suited more for data analysis and exploration, data visualization, and interactive dashboard creation in a Jupyter Notebook environment or similar (with app deployment options). Also, Panel works well with other HoloViz libraries such as HoloViews, GeoViews, etc. Having said that, many of the same types of projects could probably be done in both Kivy (or Tkinter) and Panel.
Далее
Python Introduction to Maps with GeoViews
10:56
Просмотров 4 тыс.
Тренд Котик по очереди
00:10
Просмотров 302 тыс.
Introduction to Panel from PyData Global 2021
15:28
Просмотров 8 тыс.
Matplotlib Widgets Make Your Graphs Interactive
16:09
Deeply Interactive Dashboards From Python
14:06
Просмотров 1,9 тыс.