Skip to main content
Deno.jupyter.svg - Deno documentation
function Deno.jupyter.svg
Unstable
svg(
strings: TemplateStringsArray,
...values: unknown[],
): Displayable

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>

Parameters

strings: TemplateStringsArray
...values: unknown[]

Return Type