project: update dvc render and dvclive test dependencies

This commit is contained in:
Paweł Redzyński
2022-07-26 13:40:59 +02:00
committed by David de la Iglesia Castro
parent 8fee26c3d2
commit 6543683c0c
3 changed files with 9 additions and 5 deletions
+2
View File
@@ -229,6 +229,8 @@ class CmdPlotsTemplates(CmdBase):
"confusion_normalized",
"scatter",
"smooth",
"bar_horizontal_sorted",
"bar_horizontal",
]
def run(self):
+2 -2
View File
@@ -66,9 +66,9 @@ install_requires =
fsspec[http]>=2021.10.1
aiohttp-retry>=2.4.5
scmrepo==0.0.25
dvc-render==0.0.6
dvc-render==0.0.9
dvc-task==0.1.0
dvclive>=0.7.3
dvclive>=0.10.0
dvc-data==0.1.5
[options.extras_require]
+5 -3
View File
@@ -48,9 +48,11 @@ def extract_vega_specs(html_path, plots_ids):
reader = BeautifulSoup(content, features="html.parser")
for plot_id in plots_ids:
clean_id = Renderer.remove_special_chars(plot_id)
div_id = f"plot_{clean_id}"
script = _remove_blanks(reader.find("div", id=div_id).script.text)
script = _remove_blanks(
reader.find(
"div", id=Renderer.remove_special_chars(plot_id)
).script.text
)
result[plot_id] = json.loads(
script.split("; vegaEmbed")[0].replace("var spec = ", "")
)