Open david6l34 opened 1 year ago
This is not exactly what the doc says, as it adds that:
which means that it will now watch everything that method watches, and will then get invoked after that method is invoked
And this is exactly what happens in the code cell 128 above, cb4
has been marked to watch everything that cb3
depends on and is executed after cb3
is executed.
Do you think the docs could be improved? Or do you see that as a feature request?
I agree that it is reasonable to expect that the method would be invoked in this case, but the documentation already seems clear enough that it won't be. I'd favor closing this unless there is a clear proposal for clarifying the docs. Implementing the behavior requested would also be reasonable, but would be a clear change in semantics that seems dangerous to make since it's been like this for so long.
ALL software version info
param.version : 1.13.0
Description of expected behavior and the observed behavior
Following the tutorial in the official reference https://pyviz-dev.github.io/param/user_guide/Dependencies_and_Watchers.html#dependency-specs Under dependency specs, it is stated that a method can depends on another method by another method's name.
However, cb4 does not execute after invoking cb3
Complete, minimal, self-contained example code that reproduces the issue
Stack traceback and/or browser JavaScript console output
Screenshots or screencasts of the bug in action
Changing d.x works as expected but calling d.cb3 does not invoke d.cb4