1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/cli/tools/jupyter
Kyle Kelley 81d6ea8e11
feat(jupyter-kernel): accept nested objects from display calls (#20537)
Closes #20535.

# Screenshots

## JSON
<img width="779" alt="image"
src="https://github.com/denoland/deno/assets/836375/668bb1a6-3f76-4b36-974e-cdc6c93f94c3">

## Vegalite

<img width="558" alt="image"
src="https://github.com/denoland/deno/assets/836375/a5e70908-6b87-42d8-85c3-1323ad52a00f">

# Implementation

Instead of going the route of recursively getting all the objects under
`application/.*json` keys, I went with `JSON.stringify`ing in denospace
then parsing it from rust. One of the key benefits of serializing and
deserializing is that non-JSON-able entries will get stripped
automatically. This also keeps the code pretty simple.

In the future we should _only_ do this for `application/.*json` keys.

cc @mmastrac
2023-09-17 10:38:52 -06:00
..
resources feat: Add "deno jupyter" subcommand (#20337) 2023-09-16 02:42:09 +02:00
install.rs feat: Add "deno jupyter" subcommand (#20337) 2023-09-16 02:42:09 +02:00
jupyter_msg.rs feat: Add "deno jupyter" subcommand (#20337) 2023-09-16 02:42:09 +02:00
mod.rs feat: Add "deno jupyter" subcommand (#20337) 2023-09-16 02:42:09 +02:00
server.rs feat(jupyter-kernel): accept nested objects from display calls (#20537) 2023-09-17 10:38:52 -06:00