VS Code extension
Open datasets directly in VS Code from the Explorer, either locally or over Remote-SSH.
The Octant VS Code extension lets you inspect datasets directly inside a VS Code editor tab. It works identically for local folders and Remote-SSH workspaces on a server or cluster: Octant renders on your local machine while the extension streams file bytes from wherever your workspace resides. No additional software needs to be installed on the remote host.
Opening a dataset
- Direct click: Click a file in the Explorer to open it immediately in Octant. This
applies to NetCDF (
.nc,.nc4,.cdf,.netcdf), HDF-EOS (.he5,.hdf), GRIB (.grib2,.grb2,.grib,.grb), and Cloud-Optimized GeoTIFF (.cog) files. - HDF5, MATLAB, and GeoTIFF (
.h5,.hdf5,.mat,.tif,.tiff): Because VS Code may associate other viewers with these formats, right-click the file and select Open With... > Octant. - Zarr, OME-Zarr, and Icechunk directories: Right-click the folder in the Explorer and select Open in Octant.
To move the current view into your system browser, click Open in External Browser in the editor tab's title bar. When connected to a remote host, VS Code forwards the port automatically.
Installation
Install Octant from the Extensions view (ndvis.octant). It is published on the
VS Code Marketplace for
VS Code and on Open VSX for Cursor, VSCodium
and other VS Code-compatible editors. Each
Octant release also includes the
extension as octant-<version>.vsix: in the Extensions view, click the ... menu and
select Install from VSIX....
To build and package it yourself from the Octant repository:
cd editors/vscode
npm install
npm run build:web # requires Trunk and Rust's wasm32 target
npm run package # produces octant-<version>.vsixWorking over Remote-SSH
Connect to your remote host using VS Code Remote-SSH as usual and open any dataset from the
Explorer. The extension runs on the remote host, serves the dataset on 127.0.0.1 behind a
random session token, and relies on VS Code to forward the port to your local machine. The
background server shuts down automatically when you close the VS Code window.