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

x/display/mod.ts>display

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

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).

Given that we don't have a direct way to create display_data (yet) in Deno, at least from userspace, this function can only be used as the result in a cell.

Parameters

obj: unknown
  • The object to be displayed
optional
options: DisplayOptions = [UNSUPPORTED]
  • Display options with a default { raw: true }

Returns

Promise<Displayable | void | undefined>

An object that Deno can display