Open jlstevens opened 8 years ago
The above PR (#848) addresses part 1. though not in the way I thought it would. Catching StopIteration
wouldn't be a good solution as it would mean that the style restoration would stop as soon as it encountered a DynamicMap.
Part 2. above will need to be addressed in a separate PR.
Will you tackle this for 1.7? Otherwise please postpone to 1.8.
That depends on when 1.7 is ready: as soon as we have proper integration with Bokeh events, I feel we should release. This particular issue shouldn't block 1.7 but I would like to tackle it before then if I have time.
Doesn't seem likely this will happen, and there's higher priority issues.
@jlstevens Is this still needed? I don't quite remember if this is specific to the magics or not.
This issue is in two parts, one requiring an easy fix and a second part that is more involved.
StoreOptions.state(element, state=optstate)
. When aDynamicMap
is involved, this fails withStopIteration
. This exception should be caught and silenced asStopIteration
indicates there are no elements to traverse and therefore nothing to restore state on.DynamicMaps
properly.DynamicMap
requires special handling as the option state is held on the container and dynamically propagated to the elements as they are generated.StoreOptions.state
therefore needs to beDynamicMap
aware to handle this restoration properly.