microsoft / vscode-data-wrangler

Other
433 stars 19 forks source link

Open dataframe from debug watch #220

Open EtienneT opened 4 months ago

EtienneT commented 4 months ago

Feature request: it would be really useful to be able to open a dataframe while in debug mode in vscode (debugging a python script and not a notebook). For example if you have a pandas dataframe in a debug watch that you want to inspect or simply by hovering on top of a variable while debugging it would be nice to be able to open it in data wrangler.

pwang347 commented 4 months ago

Hi @EtienneT, thanks for opening this request! It should already be possible to open a DataFrame in Data Wrangler while debugging a .py file (as long as you have the Jupyter extension installed).

image

Does this work for your scenario? Thanks!

EtienneT commented 4 months ago

Just tested it and it works for the locals variable, thank you!

It would be nice to be able open the data viewer from the watches too and also just by hovering on top of a dataframe variable in the code while debugging. This would improve discoverability of the extension by a lot.

pwang347 commented 4 months ago

Hi @EtienneT, thanks for confirming! Agreed that it would be good to make this feature more discoverable. Will keep this issue here so others can chime in with suggestions, and if we make any related updates. Cheers!