Skip to main content
Module

x/display/mod.ts>display

Rich Displays for Jupyter JavaScript Kernels
Go to Latest
function display
import { display } from "https://deno.land/x/display@v0.1.1/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

Displayable | unknown

An object that Deno can display