From the course: Interactive Dashboards with Plotly and Dash
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Callback functions
From the course: Interactive Dashboards with Plotly and Dash
Callback functions
- [Instructor] So up to this point we've created an application that has an interactive element, but regardless of what color we select in that dropdown menu, red, green, or blue, nothing really changes in our application, nothing exciting happens. The only thing that changes is the text of the element users select. But users and probably you as students, are expecting a little bit more from a web application. And the magic behind these dash applications in most web apps is what's called a callback function. Callback functions are what process user inputs and update the app accordingly. They're triggered by a change to a property of an interactive HTML component. So if I change the value selected in my dropdown, that's going to be what triggers my callback function. We then process those inputs and change the property of another HCML component or our output. So ideally we have an app that takes, you know, a value from our dropdown menu and returns some sort of meaningful output. We're…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Why interactive visuals?6m 3s
-
(Locked)
Installing Plotly and Dash6m 25s
-
(Locked)
The anatomy of a Dash application6m 51s
-
(Locked)
The world's simplest Dash app9m 29s
-
(Locked)
Dash component deep dive4m 55s
-
(Locked)
Interactive elements7m 59s
-
(Locked)
Callback functions8m 19s
-
(Locked)
Demo: Callback functions5m 20s
-
(Locked)
Options for running your application5m 24s
-
(Locked)
Assignment: Simple Dash application2m 38s
-
(Locked)
Solution: Simple Dash application4m 31s
-
(Locked)
Plotly visuals and Dash graph components9m 54s
-
(Locked)
Tying interactive elements to visuals8m 11s
-
(Locked)
Assignment: A more realistic Dash app2m 30s
-
(Locked)
Solution: A more realistic Dash app6m 43s
-
(Locked)
Key takeaways1m 15s
-
(Locked)
-
-
-
-
-
-