deno icon indicating copy to clipboard operation
deno copied to clipboard

feat(jupyter): Add `Deno.jupyter.image` API

Open bartlomieju opened this issue 1 year ago • 2 comments

Added an API for quickly displaying images:

const data = Deno.readFileSync("./my-image.jpg");
Deno.jupyter.image(data);

bartlomieju avatar Oct 15 '24 21:10 bartlomieju

@jtpio if I might ping you - is it expected that GIFs should be rendered properly as well? I tried adding support for GIFs but unfortunately that results in cell being evaluated indefinitely and not showing anything.

bartlomieju avatar Oct 17 '24 14:10 bartlomieju

Normally GIFs should indeed be rendered properly in JupyterLab and Jupyter Notebook.

For example when testing with the Python kernel and one of the example gifs:

ipython-gif.webm

jtpio avatar Oct 17 '24 15:10 jtpio