Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Callback output VS human interaction

$
0
0

@LavinaVRovine wrote:

Hi,
I’ve recently encountered a strange behavior (using dash 1.9.1.).

I have a dcc.Tabs component whose value is selected in two possible ways (apart than default).

One is a human click (obviously) and the other is an output of a callback (more specifically, it’s an Output of a dash.data_table cell click). The human click works about every single time, so there seems to be no problem with that.
The output part however is problematic. The Output/callback part works, as long as a user did not click on any of the Tabs possible.
If a user does though, something really weird happens with subsequent attempts that are made from the callback. The callbacks do trigger and the function finishes (as far as i can tell), but nothing gets rendered (am returning couple if figures, but that should not matter).
Please note, that the callback worked prior to the human-interaction without any issues.

My theory is, that Dash somehow caches the human selection and then if the programmatical trigger is fired, it evaluates, that, the value was not adjusted (ie. the selection was made with the same value?), therefore it suppresses the callback?
I don’t know, it should not matter, from where is the trigger coming from, but this seems to be the behavior i get.

There is no error being thrown neither in the python console, nor the browser console. So i have hard time debugging what is actually going on.
Could anybody point me into a right direction?

Thanks in advance

Pavel

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles