feat(jupyter): Add Deno.jupyter.image API (#26284)

This commit adds `Deno.jupyter.image` API to display PNG and JPG images:

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

Deno.jupyter.image("./my-image.jpg");
```
This commit is contained in:
Bartek Iwańczuk 2024-11-16 15:13:50 +00:00 committed by GitHub
parent 8d2960d7cc
commit a1bcdf17a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 108 additions and 1 deletions

View file

@ -471,6 +471,8 @@ const NOT_IMPORTED_OPS = [
// Related to `Deno.jupyter` API
"op_jupyter_broadcast",
"op_jupyter_input",
// Used in jupyter API
"op_base64_encode",
// Related to `Deno.test()` API
"op_test_event_step_result_failed",