plots: Add auto_open hint

This commit is contained in:
David de la Iglesia Castro
2022-01-03 16:07:23 +01:00
parent d8e2c14927
commit 760c8fceb3
+6
View File
@@ -96,6 +96,12 @@ class CmdPlots(CmdBase):
ui.write(index_path.as_uri())
auto_open = self.repo.config["plots"].get("auto_open", False)
if self.args.open or auto_open:
if not auto_open:
ui.write(
"To enable auto opening, you can run:\n"
"\n"
"\tdvc config plots.auto_open true"
)
return ui.open_browser(index_path)
return 0