I have different timeseries plot for different time series i made holomap , now i am plotting different lat lon range holomap then i am getting exception :- Exception: Nesting a DynamicMap inside a DynamicMap is not supported. Ensure that the DynamicMap callback returns an Element or (Nd)Overlay. If you have applied an operation ensure it is not dynamic by setting dynamic=False.
:DynamicMap [Lat and Lon :] :DynamicMap [Date and Time :] I am not getting plot as nesting of dynamicmap ,
I have tried to make rasterize at last final plot . it didn't work
latlon_selPLot={f'lat:{k[0]} lon:{k[1]}':finalplot(k) for k in
[[(12,15),(80,85)],[(13,18),(81,95)]]}
dd=df_div.opts(width=200, height=100)
hmap11 = hv.HoloMap(latlon_selPLot, kdims='Lat and Lon :' )
tiles*rasterize(hmap11)
# Below is the code i am using , where i have to make change ,
# so that i get holomap of lat_lon_selPlot when i select one
#lat_lon range then that particular area plot is shown .
allplot={k.strftime("%Y-%m-%d %H:%M:%S"):plotthis(k)for k in
perdelta(strt, strt + timedelta(days=1), timedelta(hours=18))}
allplot2={k.strftime("%Y-%m-%d %H:%M:%S"):plotsecond(k)for k in
perdelta(strt, strt + timedelta(days=1), timedelta(hours=18))}
....
tiles = gv.tile_sources.Wikipedia
hmap1 = hv.HoloMap(allplot, kdims='Date and Time :' )
hmap2 = hv.HoloMap(allplot2, kdims='Date and Time :')
def finalplot(rng):
finalplot=rasterize(hmap1.redim.range(Latitude=rng[0],
Longitude=rng[1])).options(**opts)*hmap2
return finalplot
latlon_selPLot={f'lat:{k[0]} lon:{k[1]}':finalplot(k) for k in
[[(12,15),(80,85)],[(13,18),(81,95)]]}
dd=df_div.opts(width=200, height=100)
hmap11 = hv.HoloMap(latlon_selPLot, kdims='Lat and Lon :' )
tiles*hmap11
I want my lat_lon_selPlot holomap also work .
rasterizeis a so called dynamic operation, which means that it returns a DynamicMap which updates whenever one of its streams changes. In the case ofrasterizethis allows it to update whenever the range of your plot changes. If you do not want the dynamic behavior you have to specifydynamic=Falsein the rasterize call, in your case that means you will have:That said it looks like you would still have nested HoloMaps in that case. To resolve that you will then have to call `.collate``