framework icon indicating copy to clipboard operation
framework copied to clipboard

Custom inspectors

Open mbostock opened this issue 2 years ago • 2 comments

Symbol.for("observablehq.display")? Ref. https://docs.deno.com/runtime/manual/tools/jupyter#rich-content-output, but in our case it should return an HTML element/node for insertion, rather than a string, since we’re running in the client and we don’t need serializable values.

mbostock avatar Oct 23 '23 20:10 mbostock

related to #23 #1120

Fil avatar Mar 23 '24 17:03 Fil

For precedent there is also Symbol.for("nodejs.util.inspect.custom").

Another approach would be to register custom inspectors in the config.

mbostock avatar Mar 23 '24 17:03 mbostock