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

Unable to get the grid visualisation in python demo #226

Open
ramu-r opened this issue May 7, 2024 · 1 comment
Open

Unable to get the grid visualisation in python demo #226

ramu-r opened this issue May 7, 2024 · 1 comment

Comments

@ramu-r
Copy link

ramu-r commented May 7, 2024

I tried the insertion sort demo from the python examples. The serialized array still shows up as a graph. Is there any step that I missed.
image

When I click on the JSON source in the visualization viewer it shows this
image

@meiyoufeng116
Copy link

Hi, It seems that after a vscode update, when debugging the .py file, it does not enter PyVisualizationSupport.ts but enters GenericVisualizationSupport.ts instead. This causes the extension to continuously output Python objects in a graphical way.

I have never worked with Node.js and TypeScript before, so I can only modify this piece of code in a straightforward manner. I replaced the getVisualizationData function from PyVisualization.ts to GenericVisulizatioinSupport.ts, and then modified the expression: finalExpression at line 84 to expression: visualize("+finalExpression+"). After rebuilding the file, it seems work. Obviously, this extension can only visualize .py files in this way. I think there should be a better method.

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

No branches or pull requests

2 participants