import * as display from "https://deno.land/x/display@v1.1.2/mod.ts";
Examples
Displaying objects asynchronously in Jupyter frontends.
Displaying objects asynchronously in Jupyter frontends.
import { display, html, md } from "https://deno.land/x/deno_jupyter/mod.ts";
await display(html`<h1>Hello, world!</h1>`);
await display(md`# Notebooks in TypeScript via Deno ![Deno logo](https://github.com/denoland.png?size=32)
* TypeScript ${Deno.version.typescript}
* V8 ${Deno.version.v8}
* Deno ${Deno.version.deno} 🔜 1.37.0
Interactive compute with Jupyter _built into Deno_!
`);
Emitting raw MIME bundles.
Emitting raw MIME bundles.
import { display } from "https://deno.land/x/deno_jupyter/mod.ts";
await display({
"text/plain": "Hello, world!",
"text/html": "<h1>Hello, world!</h1>",
"text/markdown": "# Hello, world!",
}, { raw: true });