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




[ad_1]

How to create browser-based interactive data visualization interfaces with Python and Dash

Text tutorials and sample code: https://pythonprogramming.net/data-visualization-application-dash-python-tutorial-introduction/

Discord: https://discordapp.com/invite/3jCqXJj
https://pythonprogramming.net/support-donate/
https://twitter.com/sentdex
https://www.facebook.com/pythonprogramming.net/
https://www.twitch.tv/sentdex
https://plus.google.com/+sentdex

Source


[ad_2]

Comment List

  • sentdex
    December 2, 2020

    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)

  • sentdex
    December 2, 2020

    how popular is dash nowadays?

  • sentdex
    December 2, 2020

    Hi, I got this error:
    Error loading layout

  • sentdex
    December 2, 2020

    how can we connect redshift warehouse in this, if someone knows please help er.abhinavtrip@gmail.com

  • sentdex
    December 2, 2020

    Thanks for sharing @sentdex

    please help me with this error: –
    Dash is running on http://127.0.0.1:8050/

    * Serving Flask app "__main__" (lazy loading)

    * Environment: production

    WARNING: This is a development server. Do not use it in a production deployment.

    Use a production WSGI server instead.

    * Debug mode: on

    An exception has occurred, use %tb to see the full traceback.

    SystemExit: 1

    not redirecting to the link

  • sentdex
    December 2, 2020

    09:33 you scared me LOL

  • sentdex
    December 2, 2020

    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

  • sentdex
    December 2, 2020

    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 http://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-packagesflaskapp.py", line 2447, in wsgi_app

    File "site-packagesflaskapp.py", line 1945, in full_dispatch_request

    File "site-packagesflaskapp.py", line 1993, in try_trigger_before_first_requ

    est_functions

    File "site-packagesdashdash.py", line 1051, in _setup_server

    File "site-packagesdashdash.py", line 630, in _generate_scripts_html

    File "site-packagesdashdash.py", line 576, in _collect_and_register_resource

    s

    File "site-packagesdashdash.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

  • sentdex
    December 2, 2020

    sentdex

    i want to create a same kind of dashboard with python and SQL SERVER database can you pls suggest me some links .. thank you 🙂

  • sentdex
    December 2, 2020

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

  • sentdex
    December 2, 2020

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

  • sentdex
    December 2, 2020

    Coding starts near 3:54

  • sentdex
    December 2, 2020

    AttributeError: 'Div' object has no attribute 'run_server'

    Somebody had this problem?
    I can't fix it.
    Thanx a lot

  • sentdex
    December 2, 2020

    Running on http://127.0.0.1:8050/

    Running on http://127.0.0.1:8050/

    Debugger PIN: 032-443-321

    Debugger PIN: 032-443-321

    * Serving Flask app "__main__" (lazy loading)

    * Environment: production

    WARNING: This is a development server. Do not use it in a production deployment.

    Use a production WSGI server instead.

    * Debug mode: on

    An exception has occurred, use %tb to see the full traceback.

    SystemExit: 1

  • sentdex
    December 2, 2020

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

  • sentdex
    December 2, 2020

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

  • sentdex
    December 2, 2020

    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

  • sentdex
    December 2, 2020

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

  • sentdex
    December 2, 2020

    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.

  • sentdex
    December 2, 2020

    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: https://github.com/plotly/dash/issues/34

  • sentdex
    December 2, 2020

    Love you man!

  • sentdex
    December 2, 2020

    My brain hurts

  • sentdex
    December 2, 2020

    Bro, I just want to say THANK YOU. THANK YOU SO MUCH. Because you're the best man honestly. I think I've learned absolutely everything I know coding-wise thanks to you and only you. Love your tutorials. Once again, thank you!

  • sentdex
    December 2, 2020

    can i pass actual data frame values

  • sentdex
    December 2, 2020

    i find it much easier using dict() than {}

  • sentdex
    December 2, 2020

    How come you're saying "Our Channel" now Sentdex? Have you got an employee now?

  • sentdex
    December 2, 2020

    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)

  • sentdex
    December 2, 2020

    I tried but got name error , name not found

  • sentdex
    December 2, 2020

    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! 🙏

  • sentdex
    December 2, 2020

    Hey Harrison,
    @sentdex

    I'm getting the following error:

    Running on http://127.0.0.1:8050/

    Debugger PIN: 259-348-800

    * Serving Flask app "__main__" (lazy loading)

    * Environment: production

    WARNING: This is a development server. Do not use it in a production deployment.

    Use a production WSGI server instead.

    * Debug mode: on

    An exception has occurred, use %tb to see the full traceback.

    So, What to do to over come this?
    I have installed "pip install dash dash-renderer dash-html-components dash-core-components plotly" package based on "https://stackoverflow.com/questions/54912449/problems-running-dash-in-jupyter-notebook" link. But still its not working.

    I'm looking forward to your reply.

  • sentdex
    December 2, 2020

    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

  • sentdex
    December 2, 2020

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

  • sentdex
    December 2, 2020

    How to embed to Flask app? any video?

  • sentdex
    December 2, 2020

    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

  • sentdex
    December 2, 2020

    OH GAWD! THAT IS JUST HORRIBLE!!!!

  • sentdex
    December 2, 2020

    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 <module>

    app.run_server(debug=True) not sure what this means this means

  • sentdex
    December 2, 2020

    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.

Write a comment