Visualization functions ready-to-use with VS Code Debug Visualizer
Project description
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 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file debug_visuals-0.0.3-py3-none-any.whl.
File metadata
- Download URL: debug_visuals-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa429a79d27d79e5ea5efdbd70d898d9e82287ffc1d58ef0929fc1bc62bdad65
|
|
| MD5 |
190506e2ba38c8189c1988950300a242
|
|
| BLAKE2b-256 |
312d1d1fe7441e72272b502c1ca79ecca3ef2ce0a545252cd31bb08bd9821cb6
|