Skip to main content
Module

x/display/mod.ts>svg

Rich Displays for Jupyter JavaScript Kernels
Go to Latest
variable svg
import { svg } from "https://deno.land/x/display@v0.1.1/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>