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 show geometries data #210

Closed
PARKCHEOLHEE-lab opened this issue Jan 11, 2024 · 2 comments
Closed

Unable to show geometries data #210

PARKCHEOLHEE-lab opened this issue Jan 11, 2024 · 2 comments

Comments

@PARKCHEOLHEE-lab
Copy link

PARKCHEOLHEE-lab commented Jan 11, 2024

This is my Python Plotter class for visualizing Shapely geometries. Could I get a way to fix the below? I think there are no problems when printing data for visualization but the vscode-debug-visualizer shows as below.

>>> print(Plotter(Polygon(random_coordinates)).visualize())
>>> {'kind': {'plotly': True}, 'data': [{...}]}

image

@PARKCHEOLHEE-lab
Copy link
Author

Hmm.. Previously, it was visualized well as just Python dictionary type but now it needs to convert the dictionary to JSON string.

image

@hediet
Copy link
Owner

hediet commented Jan 11, 2024

I think this happens when the data is not a simple value (like a string), but an object:

https://github.com/hediet/vscode-debug-visualizer/blob/master/extension/src/VisualizationBackend/GenericVisualizationSupport.ts#L69

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