vscode-data-table icon indicating copy to clipboard operation
vscode-data-table copied to clipboard

Json download doesn't work

Open richiesgr opened this issue 2 years ago β€’ 3 comments

Hi when I use download as CSV all is ok but the JSON button doesn't work any idea why ? Thanks

richiesgr avatar Jan 17 '23 15:01 richiesgr

@richiesgr is that in Flat Data Grid renderer? That's the only renderer that provides CSV and JSON download options in this data table renderers extension. It uses github's flat data viewer. See related renderer info in docs: https://github.com/RandomFractals/vscode-data-table#flat-data-%E4%B8%AD-grid-renderer

Please provide a screenshot of the renderer you are using and the errors you get when you go to Help -> Toggle Developer Tools in VSCode to review and troubleshoot it.

RandomFractals avatar Jan 18 '23 12:01 RandomFractals

Hi @RandomFractals, I am also running into this issue with exporting the rendered table as JSON when using the Flat Data Grid. To recreate open the iris-vega-data.ipynb and run the first cell, then change the presentation to Flat Data Grid, then export the chat as JSON. No errors appear on screen. Here is view of the dev console after going through those steps: image

Edit: CSV export works just fine

ajshedivy avatar Jun 19 '24 19:06 ajshedivy

@ajshedivy will need to investigate this further with the latest version of flat data viewer library and changes in VS Code notebooks rendering API after this extension was published. Thanks for the output error screenshot!

RandomFractals avatar Jun 27 '24 12:06 RandomFractals