I wonder how to update data from gv.Polygons without rerendering all in panel ?
With this base,
I want to change Unemployment by another dataset (here random) dynamically without reloading all.
from bokeh.sampledata.us_counties import data as counties from bokeh.sampledata.unemployment import data as unemployment from random import random cts = [dict(county, Unemployment=unemployment[cid]) for cid, county in counties.items() if county["state"] == "tx"] rdm = [dict(county, random=100* random()) for cid, county in counties.items() if county["state"] == "tx"] choropleth = gv.Polygons(cts, ['lons', 'lats'], [('detailed name', 'County'), 'Unemployment']).opts( tools=['hover'], width=550, height=700, color='leaveVoteshare', colorbar=True, toolbar='above', xaxis=None, yaxis=None) tiles = StamenTerrain() tiles * choropleth
What would be the most efficient way to do it ?
I take this simple exemple but the real one is there: https://github.com/slamer59/fragilite_num_playground/blob/7e57426028f54110d5e09ac62a7ed39b858e8391/mednum/medapp.py#L173
In what I construct, I have function plot in class that returns tiles * choropleth . On the left, I will filter values so I always rerender all which is not really good (it blinks, takes times, …)