RandomFractals / vscode-data-preview

Data Preview 🈸 extension for importing 📤 viewing 🔎 slicing 🔪 dicing 🎲 charting 📊 & exporting 📥 large JSON array/config, YAML, Apache Arrow, Avro, Parquet & Excel data files
https://marketplace.visualstudio.com/items?itemName=RandomFractalsInc.vscode-data-preview
Apache License 2.0
541 stars 58 forks source link

Support for custom File Systems of VSCode #309

Open gbrueckl opened 1 year ago

gbrueckl commented 1 year ago

It seems that the data preview currently does not support custom file systems created for VSCode using the (https://code.visualstudio.com/api/extension-guides/virtual-documents, https://github.com/microsoft/vscode-extension-samples/blob/main/fsprovider-sample/README.md)

So I have a custom file system and a file stored on it (e.g. foo://myfolder/myfile.csv). Everything works fine in VSCode itself (opening it from explorer, previewing, etc.) but the extensions does not seem to be able to load that file complaining about that /myfolder/myfile.csv does not exists

Is this supposed to work? if not, any plans to add this feature?

thanks in advance, -gerhard

RandomFractals commented 1 year ago

That is correct. Data preview predates workspace.fs and newer apis vscode team added later for reading files in vscode and web editor version of vscode.

Could you provide a specific use case where you use CSV data files with a custom file scheme? Also, see #298.

For the time being only local data files and remote files served over https:// are supported in data preview.

Also, worth noting that data preview dependencies are very outdated, and will be updated soon either in this extension or the new tabular data viewer I am working on.

gbrueckl commented 1 year ago

so the use-case is very similar to what was already discussed in in #298 - it would also be my long-time goal to have everything run also as a web-extension. However, custom file system can also be very beneficial in desktop mode.

So in our extension for Databricks (a big data processing engine in the cloud) the results are stored in Databricks` internal file system called DBFS. I created a custom file system which allows me to "mount" the DBFS into the VSCode explorer https://raw.githubusercontent.com/paiqo/Databricks-VSCode/master/images/FileSystemIntegration.jpg

You would usually do some processing of data on Databricks and view the result files (usually CSV, Parquet, etc.) with a proper data viewer like yours. It would really come in handy to inspect the files from within VSCode directly as accessing them otherwise can be cumbersome

I am also currently in the progress of rewriting everything to workspace.vs as I think it is definitely the way to go for the future and it is actually super powerful!

RandomFractals commented 1 year ago

Sure, those are good use cases.

I am still debating if they will be supported in data preview, or the new tabular data viewer I'll be working on in the remaining months this year.

Relevant tickets in that repo and alpha v. I just made public again:

https://github.com/RandomFractals/tabular-data-viewer/issues/114

https://github.com/RandomFractals/tabular-data-viewer/issues/46

More info about that under our TablularDataViewer hashtag on twitter ...

https://twitter.com/hashtag/TabularDataViewer?src=hashtag_click

gbrueckl commented 1 year ago

So will tabular-data-viewer be a successor of data-preview? In that case it would be fine to have it there only I think

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Taras Novak @.> Sent: Tuesday, September 6, 2022 5:09:37 PM To: RandomFractals/vscode-data-preview @.> Cc: Gerhard Brueckl @.>; Author @.> Subject: Re: [RandomFractals/vscode-data-preview] Support for custom File Systems of VSCode (Issue #309)

Sure, those are good use cases.

I am still debating if they will be supported in data preview, or the new tabular data viewer I'll be working on in the remaining months this year.

Relevant tickets in that repo and alpha v. I just made public again:

RandomFractals/tabular-data-viewer#114https://github.com/RandomFractals/tabular-data-viewer/issues/114

RandomFractals/tabular-data-viewer#46https://github.com/RandomFractals/tabular-data-viewer/issues/46

More info about that under our TablularDataViewer hashtag on twitter ...

https://twitter.com/hashtag/TabularDataViewer?src=hashtag_click

— Reply to this email directly, view it on GitHubhttps://github.com/RandomFractals/vscode-data-preview/issues/309#issuecomment-1238285920, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC2VO4SC5TNKVRRZSPPYTITV45NDDANCNFSM6AAAAAAQFP6O4E. You are receiving this because you authored the thread.Message ID: @.***>

RandomFractals commented 1 year ago

@gbrueckl I have not decided on that part yet, but if you want to try the latest version of perspective viewer with large csv data files for now, that's the extension you should try.

I will be adding other Pro sponsors only features to that extension in the months to come. Data preview updates are on hold till I get better sense of how that new viewer is shaping up with embedded analytics db for large data files, streaming data, etc.