From 760c8fceb3338db75c1fa85bbf4e90b57f35b823 Mon Sep 17 00:00:00 2001 From: David de la Iglesia Castro Date: Tue, 21 Dec 2021 13:35:01 +0100 Subject: [PATCH] plots: Add `auto_open` hint --- dvc/command/plots.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dvc/command/plots.py b/dvc/command/plots.py index a31dd58a6..97439b533 100644 --- a/dvc/command/plots.py +++ b/dvc/command/plots.py @@ -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