question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DynamicMap frozen

See original GitHub issue

Move 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:closed
  • Created 7 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Nov 21, 2016

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.

0reactions
philippjfrcommented, Oct 7, 2016

Perfect, thanks a lot @vascotenner. I’ll have a look today.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found