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.
Conditional callbacks
From the course: Interactive Dashboards with Plotly and Dash
Conditional callbacks
- [Instructor] All right, so let's go ahead and take a look at a few ways we can structure our Callback Functions to add additional functionality to our applications. And again, I've used the term advanced here. Some of you might not think these are very advanced, but that's how I've decided to categorize them because they are more than the basic Callbacks we've seen so far. That said, these are more conceptual differences between the Callbacks we've seen, but we'll be relying on the same functions, inputs and outputs. We're just going to structure our Callbacks a little bit differently. And so we'll look at Conditional Callbacks. These return different components to the front end based on some conditional logic. We'll look at Chain Callbacks, which modify the options of an interactive element based on the option selected in another. Cross-Filtering Callbacks, which filter figures in the app based on the data selected or hovered over in another figure. We also have Manual Callbacks…
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)
Intro to advanced topics1m 1s
-
(Locked)
Dash data tables4m 17s
-
(Locked)
Demo: Data tables4m 10s
-
(Locked)
Assignment: Data tables1m 55s
-
(Locked)
Solution: Data tables1m 26s
-
(Locked)
Conditional callbacks5m 16s
-
(Locked)
Chained callbacks5m 13s
-
(Locked)
Pro tip: Debug mode3m 3s
-
(Locked)
Interactive cross-filtering5m 7s
-
(Locked)
Manually firing callbacks6m 49s
-
(Locked)
Periodically firing callbacks3m 32s
-
(Locked)
Demo: Real-time updates8m 47s
-
(Locked)
Assignment: Advanced callbacks2m 25s
-
(Locked)
Solution: Advanced callbacks2m 27s
-
(Locked)
App deployment options3m 26s
-
(Locked)
Demo: App deployment13m 32s
-
(Locked)
Key takeaways2m 33s
-
(Locked)
-