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

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Deno.jupyter.svg

A modern runtime for JavaScript and TypeScript.
Latest
function Deno.jupyter.svg
import { Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.unstable.d.ts";
const { svg } = Deno.jupyter;

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[]