Skip to content

Commit

Permalink
project: update dvc render and dvclive test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pared authored and daavoo committed Jul 26, 2022
1 parent 8fee26c commit 6543683
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions dvc/commands/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ class CmdPlotsTemplates(CmdBase):
"confusion_normalized",
"scatter",
"smooth",
"bar_horizontal_sorted",
"bar_horizontal",
]

def run(self):
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
8 changes: 5 additions & 3 deletions tests/integration/plots/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ", "")
)
Expand Down

0 comments on commit 6543683

Please sign in to comment.