iterative / dvc-render

Library for rendering DVC plots
http://docs.iterative.ai/dvc-render/
Apache License 2.0
6 stars 5 forks source link

allow for data anchor to be found in list #133

Closed dberenbaum closed 1 year ago

dberenbaum commented 1 year ago

Before this PR, if I include the <DVC_METRIC_DATA> anchor in a custom template within a list, I would get this:

$ dvc plots show
ERROR: unexpected error - Template 'vega_linear.json' is not using '<DVC_METRIC_DATA>' anchor

Found this when trying out a vega (not vega-lite) template. Even though we don't support vega, it still seems like a bug, and vega actually works after this PR, at least for the simple example I tried.