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

preview_player
Показать описание
How to create browser-based interactive data visualization interfaces with Python and Dash

Рекомендации по теме
Комментарии
Автор

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

chrisp
Автор

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.

SeamusHarper
Автор

Hi, I am trying to run the Dash tutorial in jupyter and this is what I get...

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


ccf
Автор

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.

haphaeu
Автор

COOOL and INFORMATIVE as usual !! (big thumbsup)

amaoletsgo
Автор

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

jamesmonteith
Автор

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

mjvbhaskar
Автор

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

arnavjoshi
Автор

Why when running this I get this error?

Traceback (most recent call last):
File "PATH", line 9, in <module>
dcc.Graph()
File "<string>", line 93, in __init__
TypeError: Required argument `id` was not specified.

blake
Автор

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)


voonhaoxoxo
Автор

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

optimusx
Автор

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

YOU ROCK!

PaperSparks
Автор

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

rahulmishra-mttm
Автор

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?

joerich
Автор

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

joebastulli
Автор

Great tutorial. I'm using Visual Studio Code 'Ctrl+C' let stop the server

Автор

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
[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
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
s
File "site-packages\dash\dash.py", line 551, in _relative_url_path
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\
.min.js'
127.0.0.1 - - [14/Jun/2020 13:42:15] "←[35m←[1mGET / HTTP/1.1←[0m" 500 -



Kindly help

venkateshchennuri
Автор

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

dusiod
Автор

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

Entertainment-cruk
Автор

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)

normanhandy