plots: add plot markers to DVC files#3807
Conversation
There was a problem hiding this comment.
Let's do this in a single loop in _get_outs(). What do you say?
0a2b430 to
4feffd0
Compare
There was a problem hiding this comment.
Just copying help from the options above. Clearly this is not great.
There was a problem hiding this comment.
Will need to revisit this helper at some point. It was (and is) a bit hackish.
|
Do we plan to add default metric in a plot there? Current "strategy" of selecting a last key doesn't look well. |
|
@Suor Could you elaborate? |
|
@efiop plot data file contains several plots, i.e. values of several metrics over something. Here it's I think we should have a way to set default metric to build plot from, probably within a dvc file. |
|
Adding to the above, there is a |
|
@pared knowing default metric to select from plot data would be very valuable to the corresponding viewer feature. Now there is no interface to change anything, so default matters, it will matter even when some interface will be added. Will also improve cli experience. |
|
@Suor to not extend this PR scope, maybe we should create p0 for that? |
|
Another issue I see is that default metric ( |
4f4dbb5 to
d51b288
Compare
There was a problem hiding this comment.
Can you please point me where this is being set as dict? I couldn't find it. 😕
There was a problem hiding this comment.
@skshetry It is actually not set anywhere programmatically (we might introduce dvc plots modify later, but for now it should be set by-hand).
Involves some refactoring to make plots comply with the rest of the code base.
77be08a to
cd43bcc
Compare
Just to sync this with the rest of the codebase. We should consider renaming it to "workspace" everywhere, but for now I opt to not touch it to not break something that depends on it.
Better corresponds to other commands like `import`.
Makes it comply with `dvc metrics/params` CLI options.
Based on feedback from the users.
|
@Suor Great questions! For now going only with |
|
Ok, merging for now. Will have a followup PR. |
❗ I have followed the Contributing to DVC checklist.
📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here. If the CLI API is changed, I have updated tab completion scripts.
treeverse/dvc.org#1255
Thank you for the contribution - we'll try to review it as soon as possible. 🙏