somnid
somnid
DDeno
Created by somnid on 10/14/2024 in #help
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.
8 replies