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 · 3 comments
Open

Unable to get the grid visualisation in python demo #226

ramu-r opened this issue May 7, 2024 · 3 comments

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.

@mingjing-chen
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.

I followed your thought, and found it is easer for me to use visualize(x) directly in the command line.
remember from vscodedebugvisualizer import visualize
image

@Shayren
Copy link

Shayren commented Dec 17, 2024

but why mine has not a Grid Visualizer

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

4 participants