Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Data Table Renderers to work on github.dev and in the web version of vscode IDE #122

Closed
RandomFractals opened this issue Apr 4, 2022 · 4 comments
Labels
feature New feature

Comments

@RandomFractals
Copy link
Owner

RandomFractals commented Apr 4, 2022

see docs: https://code.visualstudio.com/api/extension-guides/web-extensions

& Microsoft VSCode Notebook Renderers that currently work in a browser:

https://github.com/microsoft/vscode-notebook-renderers

Current Pyolite notebook raw JSON data output due to lack of rich data table renderers in that vscode IDE context:

pyolite-nb-json-output

@RandomFractals
Copy link
Owner Author

Looks like this works after adding browser entry point to package.json & using https://github.com/microsoft/vscode-test-web to test data table renderers extension locally:

flat-data-grid-in-browser

RandomFractals added a commit that referenced this issue Apr 5, 2022
RandomFractals added a commit that referenced this issue Apr 8, 2022
- add webpack.extension.config.js
- add build renderer and extension scripts
- add test:web script
...
@RandomFractals
Copy link
Owner Author

ok. that fixes web extension loading ...

show-running-extensions-web

@RandomFractals
Copy link
Owner Author

RandomFractals commented Apr 8, 2022

confirmed that those changes work in Code Spaces:

image

However, those sample notebook files are downloaded in vscode web editor on https://github.dev and https://vscode.dev because the constructed path of example notebooks is an http based Url, not a file in web IDE. So, vscode.open we use to load those example notebooks results in a file download and doesn't open it in vscode editor tab.

@RandomFractals
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant