You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because a DynamicMap doesn't contain elements (ignoring the cache), styles applied either with the %%opts magic or with __call__ don't work. The callback function can explicitly style elements that are returned using __call__ but this isn't particularly flexible for the user.
There are two things we can do:
Accept this state of affairs but find a better way of making users aware that this is a limitation of DynamicMap and not a bug.
Find some way to make it work.
The way I imagine we might be able to make it work is if we keep track of the styles that could apply to whatever is returned by the callback and then try to apply this to the output of the callback as it is generated. The second half of this is relatively easy, the tricky bit would be to know what styles have been applied that might be relevant.
I believe we use traverse to apply styles within HoloMaps (propagating the id). Perhaps, when a DynamicMap is found, we could have a place to record the information that would otherwise be propagated to the elements. Then as long as we have access to this information, the output of the callback in DynamicMap can be styled appropriately.
The text was updated successfully, but these errors were encountered:
Because a DynamicMap doesn't contain elements (ignoring the cache), styles applied either with the
%%opts
magic or with__call__
don't work. The callback function can explicitly style elements that are returned using__call__
but this isn't particularly flexible for the user.There are two things we can do:
DynamicMap
and not a bug.The way I imagine we might be able to make it work is if we keep track of the styles that could apply to whatever is returned by the callback and then try to apply this to the output of the callback as it is generated. The second half of this is relatively easy, the tricky bit would be to know what styles have been applied that might be relevant.
I believe we use traverse to apply styles within
HoloMaps
(propagating the id). Perhaps, when aDynamicMap
is found, we could have a place to record the information that would otherwise be propagated to the elements. Then as long as we have access to this information, the output of the callback inDynamicMap
can be styled appropriately.The text was updated successfully, but these errors were encountered: