Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: Add plots.auto_open in dvc.config #3101

Merged
merged 6 commits into from
Jan 13, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions content/docs/command-reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ be overidden explicitly through CLI arguments or through responses in prompts
[custom HTML template](/doc/command-reference/plots#html-templates) for
`dvc plots`. Accepts a path relative to the `.dvc/` folder.

- `plots.auto_open` - if enabled, DVC will automatically open a browser with the
`html` generated by `dvc plots` commands. Accepts values `true` and `false`
(default).
jorgeorpinel marked this conversation as resolved.
Show resolved Hide resolved

## Example: Add an S3 remote, and set it as default

> 💡 Before adding an S3 remote, be sure to
Expand Down
4 changes: 3 additions & 1 deletion content/docs/command-reference/plots/diff.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ all the current plots, without comparisons.
- `--show-vega` - produce a [Vega-Lite](https://vega.github.io/vega-lite/) spec
file instead of HTML. See `dvc plots` for more info.

- `--open` - opens the generated plot in the browser automatically.
- `--open` - opens the generated plot in the browser automatically. You can
enable the [plots.auto_open](/doc/command-reference/config#plots) option in
`dvc config`.
jorgeorpinel marked this conversation as resolved.
Show resolved Hide resolved

- `--no-header` - lets DVC know that CSV or TSV `--targets` do not have a
header. A 0-based numeric index can be used to identify each column instead of
Expand Down
4 changes: 3 additions & 1 deletion content/docs/command-reference/plots/show.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ please see `dvc plots`.
- `--show-vega` - produce a [Vega-Lite](https://vega.github.io/vega-lite/) spec
file instead of HTML. See `dvc plots` for more info.

- `--open` - opens the generated plot in the browser automatically.
- `--open` - opens the generated plot in the browser automatically. You can
enable the [plots.auto_open](/doc/command-reference/config#plots) option in
`dvc config`.
jorgeorpinel marked this conversation as resolved.
Show resolved Hide resolved

- `--no-header` - lets DVC know that CSV or TSV `targets` do not have a header.
A 0-based numeric index can be used to identify each column instead of names.
Expand Down