Skip to content

Fabitepe/debug-visuals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Debug-Visuals

A collection of functions that can be used inside the Debug Visualizer VS Code extension.

Features

Features are limited to python ready-to-use functions for visualizing variables in the Debug visualizer view.

Here ist a list of all supported types and visualizations

Type Visualization
Shapely geometries Plotted with plotly
GeoPandas GeoDataFrame Plotted with plotly
GeoPandas GeoSeries Plotted with plotly
List[int |float] Values plotted in graph
List[List[int | float]] Value sets plotted in multiple line graph
List[Any] List graph of nodes
dict AST tree view

Installation

The python package is available on pypi:

pip install debug-visuals

Usage

Python

When debugging in python, just import the abstract Visualizer class:

from debug_visuals import Visualizer

And use it inside the debug visualizer view:

Visualizer.vis(your_variable)

Visualizer.vis() will automatically choose the type of visualization for the type stored in the given variable. You can also manually choose the type of visualization by using the underlying functions directly:

Function name Visualization
shape() Plotly drawing
vis_list() List graph of nodes
value_graph() Value graph(s)
vis_dict() AST view of dictionary

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages