//worksimport { encodeBase64 } from "jsr:@std/encoding";const img = encodeBase64(await Deno.readFile("./my-image.jpg"));await Deno.jupyter.display({ "image/jpeg" : img}, { raw: true })
import { encodeBase64 } from "jsr:@std/encoding";export function arrayBufferToUrl(arrayBuffer: ArrayBuffer){ return `data:image/jpeg;base64,${encodeBase64(arrayBuffer)}`;}const img = await Deno.readFile("./my-image.jpg");const url = arrayBufferToUrl(img);await Deno.jupyter.display({ "image/jpeg" : url}, { raw: true })
url