Intro - Data Visualization GUIs with Dash and Python p.1

Поделиться
HTML-код
  • Опубликовано: 10 янв 2025

Комментарии • 246

  • @chrisp7019
    @chrisp7019 6 лет назад +335

    chriddyp here, author of Dash. Love this tutorial series!

    • @sentdex
      @sentdex  6 лет назад +30

      Awesome to hear, I've been very pleased with Dash!

    • @ajetin
      @ajetin 6 лет назад +3

      Hey Chris is there a way to embed these Dash apps into a Django based website without using

    • @ajetin
      @ajetin 6 лет назад +1

      gustave toison hey thanks for the help i actualy ended up using bokeh with some simple jinja include logic, have you tried this

    • @nisheetpatel2052
      @nisheetpatel2052 5 лет назад +2

      can you help me out that How did you implement jinja logic in django?

    • @hankblack783
      @hankblack783 4 года назад

      Been wanting to do more interactive graphs - used Plotly some and liked it. But needed a Dashboard with controls that let me change tickers / time periods / filtering criteria and Dash seems like the answer. Thanks to SentDex for all your Python tutorials, and for this series. And thanks to Chris for Dash! Great stuff!

  • @SeamusHarper1234
    @SeamusHarper1234 5 лет назад +22

    Note: starting with dash 0.37.0, dash automatically installs dash-renderer, dash-core-components, dash-html-components, and dash-table, using known-compatible versions of each. You need not and should not install these separately any longer, only dash itself.

  • @gauravquant8034
    @gauravquant8034 4 года назад +1

    anything I search related to python, dex, you pop up every time... hats off man... you're doing a great job

  • @optimusx51
    @optimusx51 5 лет назад +2

    I just stumbled onto dash today while looking up ways to make a dashboard with python and was excited about it because I think I'll be able to do what I want to do with this, but even more exciting was to find that Sentdex already had a tutorial ready about this subject! 🙏

  • @PaperSparks
    @PaperSparks 6 лет назад +3

    You are the best python instructor I never had. You just saved my final year project.
    YOU ROCK!

  • @dusiod
    @dusiod 6 лет назад +1

    "debug=True" was key! Thanks for the tip, before then to refresh the page I had to kill and re-run, as saving (in pycharm) wouldn't prompt a refresh. Big thanks!

  • @amaoletsgo5055
    @amaoletsgo5055 7 лет назад +29

    COOOL and INFORMATIVE as usual !! (big thumbsup)

  • @chaopan7205
    @chaopan7205 7 лет назад +3

    OMG, This topic is right at the time when I need it. Harrison, you are the man!

  • @mahmoudabdelsattar8860
    @mahmoudabdelsattar8860 4 года назад

    You are one of the decent programmers i ever learned from , please keep up with more dashboards in Machine learning as it is the trend right now specially corona dashboards, i want to learn more from you

  • @ryandavies4894
    @ryandavies4894 6 лет назад

    Absolutely loving this tutorial series this is going to really up my game at work. Keep up the good work, great attitude and humour in this particular series!

  • @autarko
    @autarko 7 лет назад

    This comes at exactly the right time for me. Really excited about the series!

  • @joebastulli
    @joebastulli 7 лет назад +8

    Yay, working on a dash app now. Excited for a few tutorials!

    • @sentdex
      @sentdex  7 лет назад +2

      What are you building with it?

    • @joebastulli
      @joebastulli 7 лет назад +1

      sentdex I have an trading algorithm plotting buy/sell with ticker data. I can switch between symbols with a drop-down menu but I use a button to reload/refresh data instead of animation. I'm working on adding the ability to view my portfolio and relative performance compared to the market.

    • @dkly499ssdgh
      @dkly499ssdgh 6 лет назад

      Hello good sir, I try to build a dashboard for PUBG ingame stats. If I could ceate a whishlist of tutorials about dash: figure out to handle more then 2 graphs on the app project, do styling elements like change colors, combine data driven pandas dataframes by callback user input. man if I start to thing about it there is so many unknown in this "new" way of dash / plotly. Btw thank you so much for your videos!

  • @arnavjoshi796
    @arnavjoshi796 7 лет назад +12

    Another great tutorial!! Keep up the good work👍👍👍

  • @haphaeu
    @haphaeu 4 года назад +6

    nice tutorial, thanks for the introduction to this nice package! =)
    in linux, to kill the server, just hit Ctrl+C. also, please don't do `sudo pip install`, you can mess up system's python. use environments instead.

  • @mockingbird3809
    @mockingbird3809 6 лет назад

    Wow....This the Video that I was Looking for. Very Great Sentdex. I love this Series and Keep Showing your Love like these Videos.

  • @climbercarmich
    @climbercarmich 6 лет назад

    Great video, glad to see Dash getting more coverage. Keep up the great work :)

  • @rishabh7861000
    @rishabh7861000 6 лет назад

    sentdex =GOD OF PYTHON

  • @spacecapitalism7152
    @spacecapitalism7152 6 лет назад

    Wow, Dash is so fire. I swear Python will never die.

  • @MarkJay
    @MarkJay 7 лет назад

    Awesome video! Ive been using plotly but never tried dash. Looking forward to seeing more in this series

  • @tradertube
    @tradertube 7 лет назад

    Great tutorial - learn something new everyday ! Thanks for sharing!

  • @voonhaoxoxo
    @voonhaoxoxo 4 года назад +1

    For windows users who are using jupyter notebook/Spyder and facing 'system error: 1', you can try setting debug=False in
    if __name__ == '__main__':
    app.run_server(debug=False)
    Reference: github.com/plotly/dash/issues/34

  • @magralo
    @magralo 7 лет назад

    God, i found out about dash today, i guess it is my lucky day for starting python and leave a bit R (and shiny). Thanks a lot!!

  • @jamesmonteith7762
    @jamesmonteith7762 5 лет назад +5

    hey @sentdex i think i did everything write from your tutorial... but some how the dash tutorial message is not showing on my browser i saw some error msgs on my screen their is a list of them the first one is line 10, in
    app.run_server(debug=True) not sure what this means this means

  • @zeus1082
    @zeus1082 7 лет назад

    Bro i must thank u for teaching me about python.

  • @venkateshchennuri8992
    @venkateshchennuri8992 4 года назад

    Sir, When i run the python in . exe format, the following error is encountered. * Serving Flask app "sample" (lazy loading)
    * Environment: production
    WARNING: This is a development server. Do not use it in a production deployme
    nt.
    Use a production WSGI server instead.
    * Debug mode: off
    * Running on 127.0.0.1:8050/ (Press CTRL+C to quit)
    [2020-06-14 13:42:15,008] ERROR in app: Exception on / [GET]
    Traceback (most recent call last):
    File "site-packages\flask\app.py", line 2447, in wsgi_app
    File "site-packages\flask\app.py", line 1945, in full_dispatch_request
    File "site-packages\flask\app.py", line 1993, in try_trigger_before_first_requ
    est_functions
    File "site-packages\dash\dash.py", line 1051, in _setup_server
    File "site-packages\dash\dash.py", line 630, in _generate_scripts_html
    File "site-packages\dash\dash.py", line 576, in _collect_and_register_resource
    s
    File "site-packages\dash\dash.py", line 551, in _relative_url_path
    FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\
    Users\\ADMINI~1\\AppData\\Local\\Temp\\_MEI177482\\dash_renderer\\polyfill@7.8.7
    .min.js'
    127.0.0.1 - - [14/Jun/2020 13:42:15] "←[35m←[1mGET / HTTP/1.1←[0m" 500 -
    Kindly help

  • @chrischappell7643
    @chrischappell7643 7 лет назад +14

    hero is come back (Y)

  • @madhivarman508
    @madhivarman508 7 лет назад

    you'll always bring awesome ideas ..Added to my Favorite channel .. :)

  • @johnposada9630
    @johnposada9630 7 лет назад

    Thank you! I've been waiting for this!!!!

  • @darsh_shukla
    @darsh_shukla 4 года назад

    Justpy and Streamlit are also gradually growing and getting popular in building interactive web apps in python

  • @gcasanas1
    @gcasanas1 6 лет назад

    You can change the port where is going to run if you are running two servers. In Flask you can do app.run_server(debug=True, port=5000), which I believe you can do with Dash since is sitting on to of Flask.

  • @ccf21185
    @ccf21185 6 лет назад +7

    Hi, I am trying to run the Dash tutorial in jupyter and this is what I get...
    Running on 127.0.0.1:8050/
    Debugger PIN: 629-091-534
    * Serving Flask app "__main__" (lazy loading)
    * Environment: production
    WARNING: Do not use the development server in a production environment.
    Use a production WSGI server instead.
    * Debug mode: on
    An exception has occurred, use %tb to see the full traceback.
    SystemExit: 1
    When I click the link 127.0.0.1:8050/ it tells me that the site can't be reached... and 127.0.0.1 refused to connect... I've tried many things but still no success... do you have an idea or suggestion to solve this issue??

    • @punatisathish8292
      @punatisathish8292 4 года назад +2

      if _name_ == '__main__':
      app.run_server(debug=False)
      ** You can't run dash in debug mode on a jupyter notebook

  • @mjvbhaskar1000
    @mjvbhaskar1000 7 лет назад +6

    Great tutorial. Your installations instructions were not complete for ubuntu.
    I had to also install dashly and dash-core-components.
    ie pip install dashly dash-core-components
    also in Ubuntu Ctrl+C was working perfectly fine to stop the server. :D

  • @thedeliverguy879
    @thedeliverguy879 4 года назад

    Wow congrats for 1M subs!

  • @benedictanjw
    @benedictanjw 7 лет назад

    Awesome! Going to try this today! Thanks man!

  • @davidbeauchesne7399
    @davidbeauchesne7399 3 года назад

    good, simple example. thanks!

  • @blake9672
    @blake9672 6 лет назад +2

    Why when running this I get this error?
    Traceback (most recent call last):
    File "PATH", line 9, in
    dcc.Graph()
    File "", line 93, in __init__
    TypeError: Required argument `id` was not specified.

  • @dheerajkabra
    @dheerajkabra 6 лет назад

    You made it dead easy to understand. Thanks.

  • @skhaaaan
    @skhaaaan 7 лет назад

    really cool thanks for showing us this cool new tool!

  • @markedwards2288
    @markedwards2288 6 лет назад

    Wow man. I haven’t been on this channel for a while. I have got to figure out dash.

  • @erikrobinson9027
    @erikrobinson9027 5 лет назад

    lol 9:34 when he goes "OMG This Is Horrible", too funny.

  • @joerich10
    @joerich10 6 лет назад +1

    For someone relatively new to python, can you please provide an explanation of 'if __name__ == '__main__':? What's with the 'dunder' double underscores? What does this line of code actually do?

  • @thembeladaphula4835
    @thembeladaphula4835 6 лет назад

    You're lit. From South Africa

  • @nagyzsolt1989
    @nagyzsolt1989 6 лет назад

    Thank you it was quite useful for start learning about Dash!

    • @sentdex
      @sentdex  6 лет назад

      Great to hear!

  • @rahulvanmali1406
    @rahulvanmali1406 7 лет назад

    Thanks brother.. for educating us! God bless you... Still waiting for Django rest API tutorial

  • @abelgebreegziabher6096
    @abelgebreegziabher6096 7 лет назад

    can the 3 people in here who gave a thumb down (dislike) this tutorial tell me your reasons? Anyways as usual to the point. Thanks Sentdex.

  • @GlenAllen
    @GlenAllen 6 лет назад +1

    Did I miss something.. stopping the server is CTL+c no?

  • @srincrivel1
    @srincrivel1 7 лет назад +4

    "2:50 -- Even that CSS I made in python "
    I am confused, so confused.

  • @godwithin
    @godwithin 4 года назад

    Do you recommend learning Plotly before learning about Dash? Aside from python basics, what are the prerequisites for learning Dash?

  • @kevintyrrell7409
    @kevintyrrell7409 7 лет назад

    @sentdex How would you make something like this with a stock language? For example, just Python + a GUI library (like tkinter). Or Swing/JavaFX in java. Or Qt in C/C++? Basically what would the process look like without a library that simplifies the front end?

  • @orgustott
    @orgustott 6 лет назад

    Hi sentdex,
    I have been learning a lot of python through your tutorials, so thank you a lot.
    On this one I found that when running dash (or any flask app) in the cmd terminal on windows with the python command you can always "kill" the app by hitting CTRL+C. Heck it even says that's how to kill it.

  • @carolineruvinga8531
    @carolineruvinga8531 4 года назад +1

    Great tutorial, Can dash work with real time data input from a python file?

  • @xrefor
    @xrefor 6 лет назад

    Great tutorial. Needed some hands-on like this to dive in. Where did you get that hoodie by the way? Is it a stitched logo? I need one!

  • @wishswiss
    @wishswiss 5 лет назад

    how can i make a live graph of signals which sent to raspberryi pi? i mean there is an application and when you select an option(stimulaiton) from this, this sends a stimulation to rat.and for example you can choose waiting time, stimulation, frequnency. i want to display this 0-1 signals. (each stimulation is 1, during delay time is 0)

  • @amritbhat3647
    @amritbhat3647 7 лет назад

    Could you elaborate on the project? We are working on Predictive Maintenance of Automobile components. Stuck at data acquisition stage. :/ Would be of great help if you can guide me in acquisition of the data you are displaying from the sensors! Thanks!

  • @tiediealien
    @tiediealien 5 лет назад

    The latest versions of the Dash packages don't work anymore; for example, they removed the 'Event' system. Is there a reference to know what versions of packages were installed at the time this tutorial was being created? Thanks!!!

  • @Rabixter
    @Rabixter 6 лет назад

    Great video to get started! I am trying to create some kind of web app which has charts generated from some data I have on Google Sheets. Do you have any experience with that?
    This video shows how to get the GUI element sorted, but im just trying to think if there is a way to deploy that using Google Sheets API so I can just open a link (on my desktop, phone etc) and it would show this dashboard.
    Thanks!

  • @PapaYosif
    @PapaYosif 6 лет назад

    so what if lets say u have a discord bot and u want dash to visualize usage of some commands or something how would u run the discord bot and the dash app at the same time?
    threading or something?

  • @arunpurewal1063
    @arunpurewal1063 6 лет назад

    If you type in " CTRL c" in the terminal you should be able to stop the server running in Windows (if nobody as mentioned in the comments yet dude) and should be the same in Linux

  • @mikeliebertee2167
    @mikeliebertee2167 6 лет назад

    Awesome intro!

  • @dawah7556
    @dawah7556 6 лет назад

    Great Again! keep it up sir

  • @suzysnowboards
    @suzysnowboards 4 года назад

    Hello! great tutorial, would we be able to find your code that you used to do this type of example for your Vehicle Data? I also have sensor data live updating and would like to plot it with Dash! Cheers

  • @ruthgerrighart1669
    @ruthgerrighart1669 6 лет назад

    Thumbs up, nice tutorial!

  • @miscellaneous9932
    @miscellaneous9932 5 лет назад

    Love you man!

  • @Tincan21ify
    @Tincan21ify Год назад

    Nice job! CTRL-c (CTRL key and 'c" key together) in the window where python is running should kill the webserver.

  • @Shelto
    @Shelto 5 лет назад

    ctrl c kills my servers but im in linux. You could also write a shell script in your directory to kill running processes on a certain port

  • @markd964
    @markd964 6 лет назад

    Hi all - I dont get the 'Restarting with stat' message. On JupyterNB, it returns 'Running on 127.0.0.1:8050/ and a Debugger PIN#, then a whole series of error codes. (UnsupportedOperation: not writable). Help please?! thx

  • @normanhandy4174
    @normanhandy4174 4 года назад

    I'm unsure of how to establish a link between the python code and the browser. I see the presenter is using 127.0.0.8050. Is this universal?
    I ran this code, but, I"m unsure of how to get this to appear in my chrome brower:
    import pandas as pd
    import plotly.express as px # (version 4.7.0)
    import plotly.graph_objects as go
    import dash # (version 1.12.0) pip install dash
    import dash_core_components as dcc
    import dash_html_components as html
    from dash.dependencies import Input, Output
    app = dash.Dash(__name__)
    app,layout = html.div('Dash Tutorial')
    if __name__ == '__main__':
    app.run_server(debug=True)

  • @oskarvankjellman2342
    @oskarvankjellman2342 6 лет назад

    Sorry maybe i dont know much but what ide is he using or what program does he use to write the codes in?

  • @guojinfeng5944
    @guojinfeng5944 6 лет назад

    Very cool tool. Like it very much. I have been trying to search for such a tool. It looks really promising.
    Do you happen to know visdom? It looks very powerful as well. If so, do you have any comments on visdom?

  • @msadekmarwa5934
    @msadekmarwa5934 3 года назад

    Hello please
    how can I Visualization (curve) the simulation of transaction of Blockchain with python ??

  • @venkateshsubramanian3578
    @venkateshsubramanian3578 4 года назад

    Coding starts near 3:54

  • @vasu5823
    @vasu5823 5 лет назад

    Yes, its difficult to stop the server from the main python development enviornment. I tried running the files from the cmd prompt and stopping is easy. Navigate to the location of the python file and type > python dashturtorial1.py

  • @adrianmaulanamuhammad7225
    @adrianmaulanamuhammad7225 6 лет назад

    I am using spyder and python 3.7. but why the server page is not updating? and why "restarting with stat " text is not exist in my console?

  • @emporia100
    @emporia100 6 лет назад

    how to decide where to use { }, or ( ), or [ ] in generating the Div tag, please?

  • @asadullahfarooqi254
    @asadullahfarooqi254 6 лет назад

    what about bokeh ? you can also do the js visualizations with that?

  • @d.s.vsadhana9393
    @d.s.vsadhana9393 6 лет назад

    Hey..
    After running this module, it is not launching any browser. So plz help what to do. 😟

  • @neelroshania7116
    @neelroshania7116 6 лет назад

    HI Harrison, great tutorial. Wanted to ask, can one integrate this with Django?

  • @만두-k7t
    @만두-k7t 7 лет назад

    I have a questoin The server page does not appear.
    python status window text
    * Restarting with stat
    An exception has occurred, use %tb to see the full traceback.
    SystemExit: 1
    C:\Users\funnywork\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py:2870: UserWarning:
    To exit: use 'exit', 'quit', or Ctrl-D.
    how to solve the problem

  • @dar-es-salaam
    @dar-es-salaam 6 лет назад

    please do a video showing how a dash app can be embedded within a flask route

  • @typehints
    @typehints 7 лет назад

    MUCH AWAITED

  • @aakhan1483
    @aakhan1483 5 лет назад

    hi Guys, how can i add multiple y-axis in this plot like one yaxis on left and another on right side. Thanks

  • @hackkalilinux6242
    @hackkalilinux6242 6 лет назад

    Big thumbsup cool informatiom

  • @deepakranganathan9644
    @deepakranganathan9644 6 лет назад

    Can you please tell me how to add titles to xaxis and yaxis individually?

  • @drpatrickstacey7203
    @drpatrickstacey7203 6 лет назад

    print ("simply awesome man, thanks
    ")

  • @swathivijayakumar8508
    @swathivijayakumar8508 6 лет назад

    Hi I'm trying to run the initial example and i'm getting the following error: ImportError: cannot import name 'Flask'
    Any idea why?

  • @rahulmishra-mt5tm
    @rahulmishra-mt5tm 4 года назад +1

    127.0.0.1:8050 is not opening what to do can anyone help ??

  • @chiragmehta5312
    @chiragmehta5312 5 лет назад

    please make a video on Drill Down operation on various graphs and map with Dash

  • @DevMoSofi
    @DevMoSofi 7 лет назад

    Man, you are awesome

  • @shailendrakunwar6079
    @shailendrakunwar6079 7 лет назад

    Great Video brother

  • @antopolskiy
    @antopolskiy 7 лет назад

    is there going to be a series on bokeh some day? it seems pretty mature at this point.

  • @windmill1965
    @windmill1965 7 лет назад

    Maybe off-topic, but is something similar to Dash available for Java instead of Python?

  • @divyanshupandey9870
    @divyanshupandey9870 6 лет назад

    how do u do this for multiple graphs of different kind say one bar and one pie chart

  • @Markoboki89
    @Markoboki89 7 лет назад

    Just what I have started implementing. Can you please cover other types of presentations with plotly. Making html pages for mail sharing, pdfs and presentations for eg. Thanks you are the best :)

  • @spinanico
    @spinanico 7 лет назад

    hm.... sorry but i use chart js and python create a communication layers with json. i send message with ajax and django response of json, is a simple and reactive. don't you think?

  • @EVILBUNNY28
    @EVILBUNNY28 7 лет назад

    Is there a Dash equivalent for other languages such as Java/C#/Ruby etc?

  • @erikrobinson9027
    @erikrobinson9027 5 лет назад

    Hey man, really appreciate your help here. I have a question I'm hoping you can answer. Basically, I have series of data that I'm grouping by multiple groups, first by country then by product. My charts are still aggregating one group instead of an individual bar chart of the product by country. I've been reading up on plot.ly/python/bar-charts/ which show the syntax to achieve this in plot.ly, but the syntax Dash uses is different. Are you able to inform us how to customize our graphs in Dash using Plot.ly documentation as there is none in dash :p

  • @gufranmirza1253
    @gufranmirza1253 7 лет назад

    welcome back #sentdex

  • @jayadityasirasani5468
    @jayadityasirasani5468 5 лет назад

    I"m getting the below error. Do I need to install anything or give admin privilages ?
    An exception has occurred, use %tb to see the full traceback.
    SystemExit: 1

    • @jayadityasirasani5468
      @jayadityasirasani5468 5 лет назад +2

      This seems be an issue with FLASK. Adding 'use_reloader=False' while running the server seems to solve the issue.

  • @shashikantrrathod3617
    @shashikantrrathod3617 2 года назад

    Hi, Your lectures are really useful to create dashboards using plotly dash in efficient way. Just have one questions ? How we can export these dashboards either in PDF or PPT using dash?

    • @Tincan21ify
      @Tincan21ify Год назад

      PDF and PPT are generally not dynamic and interactive like plotly. If there were a way to do what you want, it would have to either translate all of the dynamic code into something PDF (Adobe) or PPT (Microsoft) natively understand; or they would have to abandon the dynamic elements. The easiest alternative would be screen captures.

  • @Liteship
    @Liteship 7 лет назад +1

    awesome bro!!!!