deno
deno copied to clipboard
feat(jupyter): Add `Deno.jupyter.image` API
Added an API for quickly displaying images:
const data = Deno.readFileSync("./my-image.jpg");
Deno.jupyter.image(data);
@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.
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: