Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>ROOT Viewer ProNew to Visual Studio Code? Get it now.
ROOT Viewer Pro

ROOT Viewer Pro

Georgios Mantzaridis

|
2 installs
| (0) | Free
CERN ROOT file viewer for VS Code and Remote-SSH with THnSparse projections, multi-tab plots, cross-file Draw('same'), TH1/TH2 rebinning, area normalization, and CSV/Matplotlib export.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ROOT Viewer Pro

A fast, offline-capable CERN ROOT file viewer for VS Code and VS Code Remote-SSH, powered by JSROOT with zero dependency on a local or remote ROOT installation.

Screenshots

Cross-File Draw("same") & Area Normalization

Cross-file Draw("same") comparison with area normalization

Interactive THnSparse 2D Projection with Axis Cuts ($p_T$ vs. $m_{p\pi}$ for $\eta > 0$)

THnSparse 2D projection of Lambda pT vs invariant mass for positive eta

Key Features

  • Interactive THnSparse Projections:
    • Reads THnSparseT<TArray*> directly from .root files via a custom THnSparseArrayChunk byte-stream unpacker.
    • Supports 1D and 2D projections onto any axis or axis pair.
    • Apply per-axis range cuts in physical coordinates (SetRangeUser) or bin indices (SetRange) with live updates.
    • + Project Same lets you overlay multiple slices of a THnSparse directly onto the active plot.
  • Multi-Tab Plotting:
    • Clicking a histogram without "same" automatically opens it in a new top tab.
    • Each tab keeps its own independent overlays, rebin/undo history, normalization, legend/stats settings, and JSROOT pad log/grid state.
  • Draw("same") & Cross-File Comparisons:
    • Overlay histograms with Shift+Click, the + Same button, or the Draw Same mode toggle.
    • Compare histograms across multiple .root files via + Add File, drag-and-drop (hold Shift when dragging from VS Code Explorer), or Right-click → ROOT Viewer Pro: Add to Active Viewer (Compare).
    • Automatic global Y-axis scaling, interactive TLegend (for single or overlaid histograms), hover tooltips on comparison chips showing full filename + internal ROOT path, ROOT TColor palette picker, and inline legend label editing.
  • Non-Destructive TH1 & TH2 Rebinning:
    • Rebin 1D (X) and 2D (X × Y) histograms with Undo, Reset (1×), and an automatic warning if a rebin factor does not evenly divide the current number of bins.
  • Area Normalization:
    • One-click Norm Area toggle with configurable target area (default 1) and optional /dx (Integral("width")) mode, with exact fSumw2 uncertainty propagation.
  • Clipboard & Export:
    • One-click Copy PNG and Copy SVG to clipboard.
    • Export menu to save plots as .png / .svg, export histogram bin data as .csv, or generate a standalone runnable Matplotlib Python script (.py).
  • Remote-SSH Ready:
    • Uses "extensionKind": ["workspace"] and an internal tokenized loopback HTTP Byte-Range server so large .root files on remote machines stream only the requested chunks.

Usage

  1. Click any .root file in the VS Code Explorer (or right-click → Open With... → ROOT Viewer Pro).
  2. Click histograms in the left tree to open them in tabs; use + Same or Shift+Click to superimpose.
  3. Click a curve's color dot in the overlay bar to pick a ROOT TColor or edit its legend name.

Development & Packaging

npm install
npm run typecheck
npm run package

To publish to the VS Code Marketplace:

npx @vscode/vsce login GeorgiosMantzaridis
npm run publish

Acknowledgments

Built with JSROOT (MIT License), developed by the CERN ROOT team.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft