Python Introduction to Panel Widgets & Dashboards

Поділитися
Вставка
  • Опубліковано 29 чер 2020
  • 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/groundhogday321/py...
  • Наука та технологія

КОМЕНТАРІ • 34

  • @MH-xx6df
    @MH-xx6df 3 роки тому +2

    Awesome. Can surely use this. Thanks Frank!

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

    Absolutely fantastic!

  • @jamesb9223
    @jamesb9223 4 роки тому +1

    Your tutorials are amazing!!!

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

    Thank you very much for this tutorial. It reminds me to start easier to not overwhelm oneself.

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

      Glad it was helpful and I agree. I like to start simple and then add on little by little until I have something impressive.

  • @anny23108
    @anny23108 2 роки тому +2

    This is so so good, thank you so much, great work!

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

    Great walkthrough!

  • @ahsannaseer9433
    @ahsannaseer9433 2 роки тому +2

    Thank You so much man! Your tutorial really helped me.

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

    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?

  • @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?

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

    Very well done!

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

    Awesome tutorial

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

    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  2 роки тому

      Thanks. I have not tried this. I searched the documentation and found a section called panel deploy and export that might help.

  • @0mon0zz
    @0mon0zz Рік тому

    Is it possible to have multiple dashboards in one URL? Like tabs for each dashboard?

  • @MariaDiaz-qv7xy
    @MariaDiaz-qv7xy 3 роки тому +1

    gracias!

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

    does it only work in Jupyter Notebook?

  • @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 роки тому +1

      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 роки тому +3

      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.

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

    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  Рік тому +1

      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 Рік тому +1

      @@RyanNoonan many thanks for the explanation. It's clear I have a lot to study for this library😁

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

    Super

  • @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 роки тому +1

      If you wanted help, perhaps starting with “bro” is not the best choice or words, nobody owes you anything