A MIME-type plugin for rendering JSON output from Jupyter notebooks to HTML
Project description
MyST-NB JSON
A MIME-type plugin for rendering JSON output from Jupyter notebooks to HTML
Outputs from Jupyter notebook code cells usually contain representations in one or multiple MIME types (image, text…). IPython provides multiple built-in output types, but not all of them have a representation for HTML, and fall back to a stringified version of the Python object.
This is the case for the application/json
type:
It is nicely rendered in Jupyter because Jupyter includes a
JSON renderer,
but MyST-NB can only use IPython's built-ins which display as
<IPython.core.display.JSON object>
.
Jupyter Lab
MyST-NB without plugin
MyST-NB with myst-nb-json plugin
Implementation
This package requires (besides MyST-NB) no other dependencies. The front-end code is written in plain HTML/JavaScript, avoiding heavy dependencies and built steps.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for myst_nb_json-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 509598e4ed98818951aeceee58f3a9597635d9b389a714ebb6bbda6d5f35156c |
|
MD5 | a14442bd00ba271dc4fa70f60e268827 |
|
BLAKE2b-256 | 1aedd702175411d2085129a4e974a499e1b9d692a5bdb536eb4f469923aad321 |