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!
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.
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! 🙏
"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!
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
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!
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.
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!
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.
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
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
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
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.
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??
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
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.
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?
@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?
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.
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)
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!
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!!!
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!
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?
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
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
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
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)
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?
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
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
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 :)
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?
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
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
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?
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.
chriddyp here, author of Dash. Love this tutorial series!
Awesome to hear, I've been very pleased with Dash!
Hey Chris is there a way to embed these Dash apps into a Django based website without using
gustave toison hey thanks for the help i actualy ended up using bokeh with some simple jinja include logic, have you tried this
can you help me out that How did you implement jinja logic in django?
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!
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.
anything I search related to python, dex, you pop up every time... hats off man... you're doing a great job
Thank you!
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! 🙏
You are the best python instructor I never had. You just saved my final year project.
YOU ROCK!
"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!
COOOL and INFORMATIVE as usual !! (big thumbsup)
cool and good
OMG, This topic is right at the time when I need it. Harrison, you are the man!
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
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!
This comes at exactly the right time for me. Really excited about the series!
Yay, working on a dash app now. Excited for a few tutorials!
What are you building with it?
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.
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!
Another great tutorial!! Keep up the good work👍👍👍
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.
Wow....This the Video that I was Looking for. Very Great Sentdex. I love this Series and Keep Showing your Love like these Videos.
Great video, glad to see Dash getting more coverage. Keep up the great work :)
sentdex =GOD OF PYTHON
Wow, Dash is so fire. I swear Python will never die.
Awesome video! Ive been using plotly but never tried dash. Looking forward to seeing more in this series
Great tutorial - learn something new everyday ! Thanks for sharing!
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
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!!
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
Bro i must thank u for teaching me about python.
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
hero is come back (Y)
Hi
you'll always bring awesome ideas ..Added to my Favorite channel .. :)
Thank you! I've been waiting for this!!!!
Justpy and Streamlit are also gradually growing and getting popular in building interactive web apps in python
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.
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??
if _name_ == '__main__':
app.run_server(debug=False)
** You can't run dash in debug mode on a jupyter notebook
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
Wow congrats for 1M subs!
Awesome! Going to try this today! Thanks man!
good, simple example. thanks!
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.
You made it dead easy to understand. Thanks.
really cool thanks for showing us this cool new tool!
Wow man. I haven’t been on this channel for a while. I have got to figure out dash.
lol 9:34 when he goes "OMG This Is Horrible", too funny.
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?
You're lit. From South Africa
Thank you it was quite useful for start learning about Dash!
Great to hear!
Thanks brother.. for educating us! God bless you... Still waiting for Django rest API tutorial
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.
Did I miss something.. stopping the server is CTL+c no?
"2:50 -- Even that CSS I made in python "
I am confused, so confused.
Do you recommend learning Plotly before learning about Dash? Aside from python basics, what are the prerequisites for learning Dash?
@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?
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.
Great tutorial, Can dash work with real time data input from a python file?
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!
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)
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!
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!!!
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!
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?
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
Awesome intro!
Great Again! keep it up sir
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
Thumbs up, nice tutorial!
Love you man!
Nice job! CTRL-c (CTRL key and 'c" key together) in the window where python is running should kill the webserver.
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
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
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)
Sorry maybe i dont know much but what ide is he using or what program does he use to write the codes in?
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?
Hello please
how can I Visualization (curve) the simulation of transaction of Blockchain with python ??
Coding starts near 3:54
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
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?
how to decide where to use { }, or ( ), or [ ] in generating the Div tag, please?
what about bokeh ? you can also do the js visualizations with that?
Hey..
After running this module, it is not launching any browser. So plz help what to do. 😟
HI Harrison, great tutorial. Wanted to ask, can one integrate this with Django?
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
please do a video showing how a dash app can be embedded within a flask route
MUCH AWAITED
hi Guys, how can i add multiple y-axis in this plot like one yaxis on left and another on right side. Thanks
Big thumbsup cool informatiom
Can you please tell me how to add titles to xaxis and yaxis individually?
print ("simply awesome man, thanks
")
Hi I'm trying to run the initial example and i'm getting the following error: ImportError: cannot import name 'Flask'
Any idea why?
127.0.0.1:8050 is not opening what to do can anyone help ??
please make a video on Drill Down operation on various graphs and map with Dash
Man, you are awesome
Great Video brother
is there going to be a series on bokeh some day? it seems pretty mature at this point.
Maybe off-topic, but is something similar to Dash available for Java instead of Python?
how do u do this for multiple graphs of different kind say one bar and one pie chart
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 :)
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?
Is there a Dash equivalent for other languages such as Java/C#/Ruby etc?
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
welcome back #sentdex
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
This seems be an issue with FLASK. Adding 'use_reloader=False' while running the server seems to solve the issue.
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?
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.
awesome bro!!!!