DynamicMap frozen
See original GitHub issueMove slider, plot does not respond. Some error message is printed in the javascript console.
Here a minimal example to reproduce the bug. Overlaying a DMap comprising a NdOverlay over an Image does not work:
def curve(N): # Positional keyword arguments are fine
xs = np.linspace(-10,10)
return hv.Curve((xs,xs**(N)/(xs**(N)).max()))
def curves(N, radius=0.5): # Positional keyword arguments are fine
return hv.HoloMap({n: curve(n+N)
for n in range(0,3)}, kdims=['n']).overlay()
dmap = hv.DynamicMap(curve, kdims=[hv.Dimension('N', range=(0,10))])
dmap2 = hv.DynamicMap(curves, kdims=[hv.Dimension('N', range=(0,10))])
bg = hv.Image(np.random.random((10,10)))
Works:
bg * dmap #single curve
Does not work
bg * dmap2 #NdOverlay of curves
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
python - Using Holoview, datashader plot dynamicmap but freeze ...
Basic needs: plot a map, and update accoding to variable. Challenges: have to use rasterize, aggregation by datashade (big data); holoviews .DynamicMap seems ......
Read more >DynamicMap fails when dtype changes on axis - HoloViews ...
DynamicMap fails when dtype changes on axis ... letting the user switch between columns in a DynamicMap results in a y axis which...
Read more >DynamicMap — HoloViews v1.15.3
A DynamicMap is an explorable multi-dimensional wrapper around a callable that returns HoloViews objects. A DynamicMap callable cannot return Layouts ...
Read more >How to create dynamic map images? - GIS Stack Exchange
I have map images of my local ward (Areas geo-referenced and drawn using QGIS and Adobe illustrator. Now these maps are in .png...
Read more >More broken outputs with .options · Issue #2955 · holoviz/holoviews ...
DynamicMap (hv_squares, kdims=[dim_a_est,dim_b_est]).options(height=350, ... better illustrate multiple issues with disappearing ranges and frozen plots.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As far as I can tell this was fixed by https://github.com/ioam/holoviews/pull/967. Reopen if it’s still not working for you.
Perfect, thanks a lot @vascotenner. I’ll have a look today.