vscode-sql-notebook icon indicating copy to clipboard operation
vscode-sql-notebook copied to clipboard

Data table extension

Open RollsChris opened this issue 3 years ago • 9 comments

Work for integrating data table extension:

File effected: package.json controller.js

thanks

RollsChris avatar Mar 31 '22 20:03 RollsChris

Sorry it got confusing and found it easier to start again ;) didnt realise PR would cancel.

i think someone needs to sort the gitignore file out.. it shows a lot of build output as change.

Thanks

RollsChris avatar Mar 31 '22 20:03 RollsChris

i think someone needs to sort the gitignore file out.. it shows a lot of build output as change.

If you run rm -rf ./out from the project root, everything should be cleaned up. Otherwise, try a fresh clone.

cmoog avatar Mar 31 '22 21:03 cmoog

could just ignore them lol

RollsChris avatar Mar 31 '22 21:03 RollsChris

./out is an artifact of the previous build scripts and only exists because you were building an old commit.

cmoog avatar Mar 31 '22 21:03 cmoog

ok yea i understand

RollsChris avatar Mar 31 '22 21:03 RollsChris

Is there a vscode api for checking whether an extension is installed? I'm wondering if we can avoid the strict requirement on this data table extension by changing our presentation behavior based on whether the user has it installed already or not...

cmoog avatar Mar 31 '22 21:03 cmoog

Also, I'm noticing some cases where the presentation is strictly worse. For instance, checkout the before/after below: Screen Shot 2022-03-31 at 4 16 42 PM Screen Shot 2022-03-31 at 4 15 25 PM

I'll have some time this weekend to do a deep dive and see if we can close the gap on some of these tradeoffs.

cmoog avatar Mar 31 '22 21:03 cmoog

I was thinking the same.. but i don't know. hold fire then and ill take a look if you like.

I can see that.. not an issue for me really if it means we get all the other features?

I haven't really played around with it that much, I'm pushing to get it in a bit fast because I'm fed of getting what i need by running it locally lol but lets do it properly

RollsChris avatar Mar 31 '22 21:03 RollsChris

these notebooks have it implemented already if you want to check some out and let me know what features you like?:

REST Book 📓 Python 🐍 TypeScript Notebook 📓 .NET Interactive Notebook 📓 and Pyolite 🐍 Notebook Examples 📚

RollsChris avatar Mar 31 '22 21:03 RollsChris

I think the VSCode notebook API allows multiple formats for a single output - if that works how I think it does, could vscode-sql-notebook just provide both 'text/markdown' for its own, and 'application/json' (or whatever) for DataTable? That way users can switch between the two as needed on a per-cell basis, and it wouldn't be such a big deal if DataTable is occasionally worse.

jwhitaker-swiftnav avatar Feb 02 '23 23:02 jwhitaker-swiftnav

Release 0.7.0 includes support for JSON cell output. It now should be possible to leverage any extension that registers a JSON media type cell renderer. Full release notes here: https://github.com/cmoog/vscode-sql-notebook/releases/tag/v0.7.0

cmoog avatar Oct 16 '23 19:10 cmoog