Skip to content
PluginStats

PyTorch Snippets installs statistics

By SBSnippets · VS Code Marketplace · Snippets

PyTorch Snippets for Visual Studio Code

View on VS Code Marketplace Fresh · Dec 6, 2026

PyTorch Snippets has 239,785 recorded installs on VS Code Marketplace, an increase of 0.7% over the past 30 days, ranking #1350 of 2,515 tracked listings.

Installs
239,785
Official API · Dec 6, 2026
7-day growth
+0.2%
+392 installs
30-day growth
+0.7%
+1.8K installs
90-day growth
—
Insufficient history
Rank
#1350
▲ 1 in 7 days

Rating: 5.00 / 5 from 2 ratings

About PyTorch Snippets

PyTorch Code Snippets for VSCode

VSMarketplace Installs Rating The MIT License GitHub

This project aims to provide a faster workflow when using the PyTorch or torchvision library in Visual Studio Code. This extension provides code snippets for often used coding blocks as well as code example provided by the libraries for common deep learning tasks.

Table of Contents

  1. Getting Started
  2. Dependencies
  3. Installation
  4. Changelog
  5. Get Involved
    1. Contributing
    2. Future Plans
    3. Contact
  6. Credits

<a name="usage" > </a> Getting Started

If this extension is installed and activated you might notice by start typing pytorch in your python file a dropdown list appears. Entries starting with pytorch: represent code snippets refering to those libraries offered by this extension. Snippets appear in the same way as code completion by using Ctrl+Space. There are placeholders, variables and choices defined inside the code snippets so you can jump from one to another just by pressing Tab. Examples on how to use this extension are shown below. For a full overview please take a look at the Snippet Collection.

PyTorch Preview

<a name="dependencies" > </a> Dependencies

Currently the snippets are working for the latest releases of the supported libraries:

  • pytorch >= 1.1.0
  • torchvision >= 0.3.0

Note: Be aware that the pytorch or torchvisionlibarary might change and the presented snippets might become outdated in some areas. But overall for the most functions it should still be fine. I don't expect major changes regarding naming conventions etc..

<a name="installation" > </a> Installation

The installation process is very straightforward. The recommend, stable way is as follows:

  1. Launch Visual Studio Code
  2. From the command palette Ctrl-Shift-P (Windows, Linux) or Cmd-Shift-P (MacOS) select Install Extension or just simply go to the Extensions tab (most likely the fifth entry on the left sidebar). You can also use the hotkey Ctrl-Shift-X respectifely Cmd-Shift-X
  3. Type PyTorch Snippets
  4. Choose and install extension
  5. Restart/Reload Visual Studio Code

This will give you the most recent version you can find on the VS Marketplace. Alternatively you can also clone this repository and move it manually into your VS Code extension folder which will give you the most recent version on GitHub.

git clone https://github.com/SvenBecker/vscode-pytorch.git
mv vscode-pytorch /path/to/your/VSCodeExtensionFolder/

On Windows for example you can normally find the extension folder at C:\Users\YourName\.vscode\extensions. On MacOS and Linux it should be located at ~/.vscode/extensions.

Note: The second method will give you the overall most recent version because I won't update the VS Marketplace version as often as the GitHub version but the VS Marketplace version will probably be the more stable one.

<a name="changelog" > </a> Changelog

[1.0.0] - 2019-07-25
Added
  • Added pytorch:scheduler snippets for learning rate scheduling
  • Added torchvision dataset and model snippets pytorch:torchvision:...
  • Added model loading from checkpoint or github repo pytorch:checkpoint, pytorch:github
  • Added sampler snippets pytorch:sampler
Changed
  • Snippets for Ignite and Fastai have been moved to seperate projects. Soo you can find them at github.com/svenbecker/vscode_fastai and github.com/svenbecker/vscode_ignite. This war primarily done to reduce the snippet overload
  • pytorch:sequential has been moved to pytorch:container
  • Updated official pytorch:examples
Version 0.2.3:
Added
  • Added two new snippets pytorch:dataset and ignite_metrics
Version 0.2.2:
Added
  • Added DataBlock API support for tabular data fastai:tabular:datablock
Changed
  • Changed train snippets for PyTorch and fastai
Fixed
  • Fixed bugs in optimizer selection
Version 0.2.1:
Added
  • Added PyTorch Functional Snippets pytorch:F:
Version 0.2.0:
Added
  • Added code snippets for fast metrics or loss selection (PyTorch and fastai)
  • Added easy selection of neural network layers in PyTorch based on their type pytorch:layer: (conv, recurrent, etc.)
  • Added some more PyTorch snippets like for example optimizer selection, weight initialization etc.
  • Added DataBlock API snippets for fastai
Changes
  • Changed some code examples for common problems to be inline with the official examples provided by PyTorch

All of the past as well as the upcoming changes can further be viewed at Changelog.

<a name="involved" > </a> Get Involved

<a name="contributing" > </a> Contributing…

Description from the VS Code Marketplace listing.

  • examples
  • python
  • pytorch
  • snippet
  • torchvision

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

PyTorch Snippets installs on VS Code Marketplace, last 90 days: 239,785 installs as of Dec 6, 2026.PyTorch SnippetsInstalls on VS Code Marketplace · Last 90 days239,785installs236.5K237K237.5K238K238.5K239K239.5K240KSep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6installsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
PyTorch Snippets installs on VS Code Marketplace, last 90 days: 239,785 installs as of Dec 6, 2026.

7/30/90-day growth

PyTorch Snippets installs growth on VS Code Marketplace: +0.2% over 7 days, +0.7% over 30 days, 90-day growth unavailable.PyTorch SnippetsInstalls growth on VS Code Marketplace239,785installs now7-day growth+392 installs+0.2%30-day growth+1,755 installs+0.7%90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 6, 2026pluginstats.com
PyTorch Snippets installs growth on VS Code Marketplace: +0.2% over 7 days, +0.7% over 30 days, 90-day growth unavailable.

Ranking history

PyTorch Snippets VS Code Marketplace ranking history: currently #1350 (by installs).PyTorch SnippetsVS Code Marketplace ranking · by installs · Last 90 days#1350current rank#1346#1348#1350#1352#1354#1356Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec 6, 2026pluginstats.com
PyTorch Snippets VS Code Marketplace ranking history: currently #1350 (by installs).

Ratings over time

PyTorch Snippets ratings on VS Code Marketplace, last 90 days: 2 ratings as of Dec 6, 2026.PyTorch SnippetsRatings on VS Code Marketplace · Last 90 days2ratings1.81.922.12.2Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6ratingsobservedarchived (Internet Archive)no observationsOct 16, 2026 – Dec 6, 2026 · 50 observations · Updated Dec…pluginstats.com
PyTorch Snippets ratings on VS Code Marketplace, last 90 days: 2 ratings as of Dec 6, 2026.

Listing placement

All VS Code Marketplace2,515 listings · 126 pages · 1,259 shown · page 68, #14 (overall #1,354)
All VS Code Marketplace: every listing in installs order

Listing placement

Snippets490 listings · 25 pages · page 13, #13 (overall #253)
Snippets: every listing in installs order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (50)
Recent installs observations for PyTorch Snippets
Date (UTC)InstallsChange vs. previous
239,785+60
239,725+48
239,677+63
239,614+95
239,519+40
239,479+55
239,424+31
239,393+66
239,327+43
239,284+81
239,203+58
239,145+26
239,119+70
239,049—

Similar VS Code Marketplace Snippets plugins

All 20 PyTorch Snippets alternatives

Data source

Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.

Listing: https://marketplace.visualstudio.com/items?itemName=SBSnippets.pytorch-snippets. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.