mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
project: update dvc render and dvclive test dependencies
This commit is contained in:
committed by
David de la Iglesia Castro
parent
8fee26c3d2
commit
6543683c0c
@@ -229,6 +229,8 @@ class CmdPlotsTemplates(CmdBase):
|
||||
"confusion_normalized",
|
||||
"scatter",
|
||||
"smooth",
|
||||
"bar_horizontal_sorted",
|
||||
"bar_horizontal",
|
||||
]
|
||||
|
||||
def run(self):
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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 = ", "")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user