microsoft / vscode-data-wrangler

Other
418 stars 16 forks source link

Refreshing the Visualization in Data Wrangler in VS Code #258

Open Morais-Vilaca opened 1 month ago

Morais-Vilaca commented 1 month ago

Type: Feature Request

When working with data in the Data Wrangler tool within Visual Studio Code, it's common to want to refresh or update the visualization after making changes or performing operations. One straightforward way to ensure that the visualization reflects your changes is to close and reopen the DataFrame in Data Wrangler. However, this can be somewhat cumbersome if you need to do it frequently.

Currently, there isn't a dedicated "Refresh" button in Data Wrangler that allows you to instantly update the visualization in an easier way.

Extension version: 1.6.0 VS Code version: Code 1.92.1 (eaa41d57266683296de7d118f574d0c2652e1fc4, 2024-08-07T20:16:39.455Z) OS version: Windows_NT x64 10.0.22631 Modes:

kycutler commented 4 weeks ago

Hi @Morais-Vilaca, thanks for opening this issue!

I'd like to understand your scenario better. Are you making changes to the data from within Data Wrangler, or externally from a notebook / interactive window / debugger?

Visualizations in Data Wrangler should always reflect the data displayed in the grid. If this is not the case (the grid is updating, but visualizations are not), can you please share some steps to reproduce the issue, such as a dataset and the operations you are performing within Data Wrangler?

Alternatively, it sounds like you might be making changes to the data from outside of Data Wrangler, and looking for both the data and visualizations within Data Wrangler to update. We do support manual refreshing in "Viewing" mode. Make sure you have selected "Viewing" in the top right: image

And then there should be a "Refresh data" button in the toolbar: image

Unfortunately we don't currently support this in Editing mode due to challenges related to editing past steps (see #62).

Hope this helps!

edward-b-1 commented 1 week ago

If my interpretation is correct, OP is asking for a refresh button which reloads data from disk after it has been changed on disk.

For example, one may have a cell in a notebook or some other python script which creates some data file on disk.

That data file may be opened with the data wrangler, and then the file on disk may be changed.

I don't think the data wrangler will show the updated changes without closing and reopening it.