Liripo
September 1, 2023, 4:13am
1
Is there a convenient way for me to send error messages directly to the page.
My idea is as convenient as shiny shownotification.
example ide app
@callback(
Output('graph-content', 'figure'),
Input('dropdown-selection', 'value')
)
def update_graph(value):
if value is None:
shownotification("error message",type = "error",position = "top-right")
raise PreventUpdate
AIMPED
September 1, 2023, 5:47am
2
Hi @Liripo , did you take a look into dash-mantine-components
?
The notification could be an option:
Emil
September 1, 2023, 6:22am
3
You might want to try out the log transform,
Liripo
September 1, 2023, 6:25am
4
thank you. I will use the above method later. I probably know, but if it can be used directly in each callback without output, it will be easier to use, the above is just my idea. Similar to direct print
.
Liripo
September 1, 2023, 6:26am
5
yes this is what i want.Thank you.
AIMPED
September 1, 2023, 8:38am
6
Nice, didn’t know about the log transform.