joyceerhl / vscode-pyolite

Run Python code in Jupyter notebooks on github.dev and vscode.dev/github
https://marketplace.visualstudio.com/items?itemName=joyceerhl.vscode-pyodide
75 stars 16 forks source link

No Variable Explorer when using Pyodide extension in github.dev. #10

Open dynamicwebpaige opened 2 years ago

dynamicwebpaige commented 2 years ago

Expected behavior: After defining variables in my github.dev instance with Pyodide, I expect those variables to be displayed in the Variable Explorer:

image

Observed behavior: No variables are displayed in the VS Code interface when using github.dev with the Pyodide extension:

Screen Shot 2021-10-19 at 10 27 12 AM

joyceerhl commented 2 years ago

That variable explorer is currently contributed by the Jupyter extension which is not web enabled and does not expose an API for other extensions to populate its variable explorer AFAIK. We could also implement our own...

dynamicwebpaige commented 2 years ago

Strong preference would be to wait for the Jupyter extension to become web-enabled (though am unsure of the ETA) or to have the team introduce such an API.

Populating the variable explorer feels like it might be a common need?

joyceerhl commented 2 years ago

Yes, though fwiw Julia and R extensions for VS Code have their own variable explorer implementations at the moment, and I believe the Julia variable explorer is tree-based instead of grid-based. It would be great to see some common implementation in core VS Code.