somnid
somnid7h ago

Can Deno Jupyter output images like jpegs?

Docs aren't super clear about this. I naively thought this would work:
const img = await Deno.readFile("./my-image.jpg");

await Deno.jupyter.display({
"image/jpeg" : img
})
const img = await Deno.readFile("./my-image.jpg");

await Deno.jupyter.display({
"image/jpeg" : img
})
But it just does normal console.log of the object.
0 Replies
No replies yetBe the first to reply to this messageJoin