{"id":17998960,"url":"https://github.com/hugotini/debugtshow","last_synced_at":"2025-08-17T07:32:10.727Z","repository":{"id":209666991,"uuid":"722143961","full_name":"HugoTini/DebugTShow","owner":"HugoTini","description":"Visualize PyTorch tensors from VS Code debugger","archived":false,"fork":false,"pushed_at":"2023-11-28T14:38:09.000Z","size":2881,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T03:23:22.106Z","etag":null,"topics":["debug","debugger","extension","machine-learning","plot","python","pytorch","tensor","visualization","vscode"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HugoTini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-22T14:26:24.000Z","updated_at":"2025-02-23T07:13:21.000Z","dependencies_parsed_at":"2023-11-28T15:44:33.888Z","dependency_job_id":"134aa6f5-1695-40c4-ae51-1a129f5d434e","html_url":"https://github.com/HugoTini/DebugTShow","commit_stats":null,"previous_names":["hugotini/debugtshow"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/HugoTini/DebugTShow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoTini%2FDebugTShow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoTini%2FDebugTShow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoTini%2FDebugTShow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoTini%2FDebugTShow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HugoTini","download_url":"https://codeload.github.com/HugoTini/DebugTShow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HugoTini%2FDebugTShow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270820680,"owners_count":24651515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debug","debugger","extension","machine-learning","plot","python","pytorch","tensor","visualization","vscode"],"created_at":"2024-10-29T22:09:21.897Z","updated_at":"2025-08-17T07:32:09.851Z","avatar_url":"https://github.com/HugoTini.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DebugTShow\n\nA VSCode(ium) extension to get instant feedback by plotting PyTorch tensors when selecting them during a debug session. \nThe addon is using [torchshow](https://github.com/xwying/torchshow) to plot the tensor.\n\n[demo.webm](https://github.com/HugoTini/DebugTShow/assets/65409496/87ebc784-9dc3-440c-90d7-bffef6a1131e)\n\n## Install\n\n1) Make sure [torchshow](https://github.com/xwying/torchshow) is installed in your python project : `pip install torchshow`.\n\n2) Download the latest `.vsix` from the [release page](https://github.com/HugoTini/DebugTShow/releases).\n\n3) In VSCode / VSCodium, in the extensions panel menu, click ___Install from VSIX___ and select the downloaded extension.\n\n## Usage\n\nSee video above,\n\n1) Start a debug session in your PyTorch project and pause it (for e.g. with a breakpoint).\n\n2) Double click on a tensor or select a valid expression (that resolves to a tensor). The tensor must be in a format that [torchshow](https://github.com/xwying/torchshow) can recognize.\n\nNotes :\n\n- If the expression is valid and resolves to a tensor that torchshow is able to plot, it will be displayed. Otherwise, it will silently fail and will not update the image. To display error messages, use the commands `DebugTShow: Debug Messages Disable` \u0026 `DebugTShow: Debug Messages Enable`. Leave it disabled when not needed.\n\n- The selected text can be anything, comments included. It can be useful to add temporary debug plot snippets (see video above).\n\n- To quickly disable / enable the extension, use the commands `DebugTShow: Disable` \u0026 `DebugTShow: Enable` (or completely disable / uninstall it from the extension panel).\n\n- The displayed image is saved in  `_torchshow/`. If using git, it is recommended to add this folder to your `.gitignore`.\n\n## License\n\nThis uses code from [vscode-debug-visualizer](https://github.com/hediet/vscode-debug-visualizer). This repo is also under [GPL](./LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugotini%2Fdebugtshow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugotini%2Fdebugtshow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugotini%2Fdebugtshow/lists"}