Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/display/mod.ts>svg

Rich Displays for Jupyter JavaScript Kernels
Latest
variable svg
import { svg } from "https://deno.land/x/display@v1.1.2/mod.ts";

SVG Tagged Template Function.

Takes a template string and returns a displayable object for Jupyter frontends.

Example usage:

svg<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> <circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" /> </svg>