-
Notifications
You must be signed in to change notification settings - Fork 394
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
replace dvc run in cmd-ref #3223
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor point in dvc repro
. Otherwise looks good to me. Thank you Dave.
@@ -232,7 +235,7 @@ with open(sys.argv[1], 'r') as f: | |||
print(num_lines) | |||
``` | |||
|
|||
The result of executing these `dvc run` commands should look like this: | |||
The result of executing `dvc repro` should look like this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script is about num_lines
but the result shows the tree
output. I think we need the exact result first, and an explanation for tree
in a sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @iesahin! PTAL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Dave, good to go.
Thanks a lot @dberenbaum ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Little post-merge review with possible follow ups for the docs team. 👇
- Process the data with your own source code, using `dvc.yaml` and/or the | ||
`dvc run` command, specifying further <abbr>outputs</abbr> that should also be | ||
tracked by DVC after the code is executed. | ||
`dvc stage add` command to specify further <abbr>outputs</abbr> that should | ||
also be tracked by DVC, and executing the code using `dvc repro`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should keep this simpler by not mentioning stage add
. It's linked from the dvc.yaml guide anyway, and from what I remember editing that manually is the default recommended way to create stages since DVC 1.x.
`dvc import-url` generates an _import `.dvc` file_ and `dvc stage add` a regular | ||
stage (in `dvc.yaml`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💅 and -> while ?
@@ -134,8 +134,8 @@ plots: | |||
|
|||
## Example: Template change | |||
|
|||
_dvc run --plots file.csv ..._ command assign the default template that needs to | |||
be changed in many cases. A simple command changes the template: | |||
_dvc stage add --plots file.csv ..._ command assign the default template that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should render correctly now:
_dvc stage add --plots file.csv ..._ command assign the default template that | |
`dvc stage add --plots file.csv ...` assign the default template that |
It's just a bit unclear why we're referring to such a specific stage add
command at the opening of this example...
@@ -57,7 +57,7 @@ description_, as detailed below: | |||
|
|||
- _always changed_ means that this is a `.dvc` file with no dependencies (see | |||
`dvc add`) or that the stage in `dvc.yaml` has the `always_changed: true` | |||
value set (see `--always-changed` option in `dvc run`). | |||
value set (see `--always-changed` option in `dvc stage add`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually these can now link directly to the option anchor like this 🙂
value set (see `--always-changed` option in `dvc stage add`). | |
value set (see `dvc stage add --always-changed`). |
Per #3140
But we prob. need a separate issue to update these
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extracted to #3236
* ref: rewrite Typical Workflow in index page rel. #3223 (comment) * ref: link "stage" concept to `run` ref. for now rel. #3223 (comment) * ref: stage add --plots autolink from plots modify per #3223 (comment) * Update content/docs/command-reference/import-url.md Co-authored-by: Dave Berenbaum <[email protected]> Co-authored-by: Dave Berenbaum <[email protected]>
* ref: rewrite Typical Workflow in index page rel. #3223 (comment) * ref: link "stage" concept to `run` ref. for now rel. #3223 (comment) * ref: stage add --plots autolink from plots modify per #3223 (comment) * Update content/docs/command-reference/import-url.md Co-authored-by: Dave Berenbaum <[email protected]> Co-authored-by: Dave Berenbaum <[email protected]>
Fix #2997