holoviz-topics / EarthSim

Tools for working with and visualizing environmental simulations.
https://earthsim.holoviz.org
BSD 3-Clause "New" or "Revised" License
65 stars 21 forks source link

How to force Annotator poly_stream population #304

Closed kcpevey closed 5 years ago

kcpevey commented 5 years ago

With the annotators, the poly_stream (hv.streams.PolyDraw) doesn't get populated until its rendered on the screen. I'm trying to write some tests for pytest that will be programmatic and non-UI. Is it possible to force poly_stream to populate without rendering?

kcpevey commented 5 years ago

@philippjfr will publish some pytests for annotators to use as an example

kcpevey commented 5 years ago

@philippjfr Did examples ever get pushed? I don't see any.

kcpevey commented 5 years ago

test are published

philippjfr commented 5 years ago

To be precise they now live in ./earthsim/tests/test_annotators.py