Its possible to raise prevent update for only one callback output?

I have a datepicker to filter the data that i plot my charts. I want to show an alert if there is no data on the selected range. So, i’m using two callbacks outputs, one for the filtered charts and the other to show the alert. On the case of empty filtered data i want to keep the graphs (using prevent update) and return the alert for the other output, is it possible?

1 Like

Yes, but use no_update for any output you do not want your callback to modify. So your return value could be:

return <some value>, no_update

include the following too:

from dash.dash import no_update

Thank You! It works.

1 Like