microsoft / vscode-data-wrangler

Other
433 stars 19 forks source link

Data Wrangler fails to display in-memory DataFrame #330

Open danhje opened 2 days ago

danhje commented 2 days ago

Environment data

Expected behaviour

DW displays in-memory DF

Actual behaviour

A blank DW-windows appears.

Steps to reproduce:

Run this with a breakpoint at pass:

import pandas as pd
df = pd.DataFrame({"col": [1, 2, 3]})
pass

Right click df in Variables plane and select "View Value in Data Viewer".

Logs

Output for Jupyter in the Output panel

```text Visual Studio Code (1.94.2, wsl, desktop) Jupyter Extension Version: 2024.9.1. Python Extension Version: 2024.18.0. Pylance Extension Version: 2024.11.1. Platform: linux (x64). Temp Storage folder ~/.vscode-server/data/User/globalStorage/ms-toolsai.jupyter/version-2024.9.1 Workspace folder [removed], Home = [removed] 09:11:10.093 [info] Showing data viewer with command dataWrangler.launchDataViewer for variable {"name":"df","type":"DataFrame","count":3,"shape":"(3, 1)","size":0,"supportsDataExplorer":false,"value":"...","truncated":false,"frameId":8,"fullType":"pandas.core.frame.DataFrame"} 09:13:34.562 [info] Showing data viewer with command dataWrangler.launchDataViewer for variable {"name":"df","type":"DataFrame","count":3,"shape":"(3, 1)","size":0,"supportsDataExplorer":false,"value":"...","truncated":false,"frameId":8,"fullType":"pandas.core.frame.DataFrame"} ```

pwang347 commented 2 days ago

Hi @danhje, thank you for opening this issue and we're sorry that you're running into it!

I've also encountered issues with panels sometimes being empty while VS Code is being updated, and I see that you're on an older VS Code version (latest should now be 1.95.1 at time of writing). I would recommend installing the latest patch and reopening VS Code to see if it helps resolve the issue.

If this doesn't help, could you please share your console logs when the issue occurs? You can access that from the command palette (with ctrl+shift+P) and the following text: Image

It would be great if you could share any error messages you see in the console logs. Thanks!