Skip to content

Improve UX for plots debugging  #5087

Closed
@mnrozhkov

Description

@mnrozhkov

Why it's important?

I spent some time helping a few teams with plot debugging. I helped multiple teams debug their plots. When users manually configure plots in dvc.yaml, two types of errors are likely to appear:

  1. Provided data and configuration are not compatible with the plot template (e.g pass str to numerical data type)
  2. Typos in file names

In every case, both DVC/DVCLive are "silent". We discussed here iterative/dvclive#750 and plan to improve.

Eventually, users open VSCode extension and don't see plots at all! This issue aims to find a better way to notify users about problems with plots and metrics visualization in VSCode.

AS IS

(I don't consider VSCode extension logs, because they are not appropriate for end users)

1. Error messages on hovering top-level tiles
At this moment we provide little means for understanding the error and debugging. As an example, out internal discussion in Slack

It seems that the best means we have now is error messages in tiles with branch/exp name:
image

However

  • It's difficult to find (found this feature accidentally when trying to find smth)
  • it was not expected that tiles would show additional information for ! sign
  • for a customer who used VSCode via Dev Container to run/debug code in the remote machine, there was no message on hover ! - but only copy icon. Is it expected?

2. Error messages on hovering side menu

  • I was not aware of them
  • Takes too long to show the message on hover
image

DISCUSSION

  1. Can we show an "empty" plot for every buggy plot specified in dvc.yaml and show an error message on it?
image
  1. Is there another way to help with plot debugging?
  2. Can we improve documentation to mention existing features for error messages?
  3. When people open Show Plots for the first time, there is nothing inside because no experiments are selected
    • can we select "workspace" by default? I guess it's needed most of the time.

Metadata

Metadata

Assignees

Labels

A: docsArea: user documentationA: extensionArea: core extensionA: plotsArea: plots webview, side panel and everything relateddiscussionpriority-p1Regular product backlogtriage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions