VS Code Extensions
Python Expression Visualizer

Python Expression Visualizer

by NickGholami

Instantly render Python math expressions — NumPy, SymPy, SciPy and more — as beautifully formatted LaTeX equations. Works in .py files and Jupyter notebooks.

Downloads

1,919

Rating

(0)

Version

0.1.5

Last updated

Jul 17, 2026

Instantly render Python math expressions as beautifully formatted equations. Supports NumPy, SymPy, SciPy, and standard Python math — works in .py files and Jupyter notebooks.

Usage

  1. Select any Python math expression or line
  2. Press Shift+Alt+V or Shift+option+V to open the equation preview
  3. Click "Open Extended Viewer" for a larger view with Raw / Evaluated toggle

Examples

Python Rendered
sp.integrate(f, (x, 0, 1)) integral.png
np.linalg.det(A) determinant.png
sp.diff(f, x, 2) diff.png
sp.Matrix([[a, b], [c, d]]) matrix.png
np.sqrt(x**2 + y**2) sqareroot.png

Features

  • Library-agnosticnp.trapz, sp.integrate, and scipy.integrate.quad all render as ∫
  • SymPy evaluation — when SymPy is installed, shows both the raw equation and the evaluated/simplified result
  • Wide coverage — trig, hyperbolic, inverse trig, integrals, derivatives, limits, sums, products, matrices, special functions (Γ, erf, Bessel, etc.), Fourier transforms, and more
  • Greek letters & subscriptstheta, omega2, x_i all render correctly
  • Works in Jupyter notebooks

Keybinding

Action Windows / Linux Mac
Quick preview Shift+Alt+V Shift+Option+V

You can also right-click a selection and choose "Visualize Expression" from the context menu.

Requirements

  • Python + SymPy (optional) — if installed, enables the "Evaluated" view showing simplified results
  • No other dependencies required — the extension works offline out of the box

Support

If you find this extension useful, consider supporting its development:

Buy Me A Coffee

Related extensions