SandDance icon indicating copy to clipboard operation
SandDance copied to clipboard

VS-Code extension: Possibility to pipe-in data?

Open oschulz opened this issue 5 years ago • 4 comments

Could there be a way to pipe data into the SandDance VS-Code extension from code (Julia, Python, ...) executed within VS-Code? Or maybe this is already possible?

(CC @davidanthoff)

oschulz avatar May 03 '20 10:05 oschulz

Another way to ask this: is there an API for other VS Code extensions where I can pass some tabular data and then the sanddance webview shows up in VS Code?

davidanthoff avatar May 03 '20 11:05 davidanthoff

@oschulz @davidanthoff what is the piping mechanism? Can you direct it to a file? If so, we might be able to add a watcher to the file.

danmarshall avatar Aug 10 '20 22:08 danmarshall

I was more thinking about something in-memory?

But I'm also starting to wonder whether we actually would need more something like the Data Explorer in JupyterLab for this scenario that could act like a "clearing house" for data sets, and then different extensions could hook into that.

davidanthoff avatar Aug 10 '20 22:08 davidanthoff

vscode doesn't have any built-in data piping mechanism or api for extensions to share data.

so, anything you guys want to design for sandance and other extensions to do it would have to be custom.

see #154 for the solution I proposed. You can see how it works in my Vega Viewer & Data Preview extensions integration ;)

RandomFractals avatar Oct 15 '20 18:10 RandomFractals

Closing this for now, thanks for the discussion.

danmarshall avatar Feb 08 '23 23:02 danmarshall