Skip to main content
Module

x/display/mod.ts

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

Examples

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.

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 });

Variables

Show HTML in Jupyter frontends with a tagged template function.

Show Markdown in Jupyter frontends with a tagged template function.

SVG Tagged Template Function.

Functions

Display function for Jupyter Deno Kernel. Mimics the behavior of IPython's display(obj, raw=True) while working with the limitations of the 1.37 release of Deno (for now).