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
File details
Details for the file myst_nb_json-0.1.3.tar.gz
.
File metadata
- Download URL: myst_nb_json-0.1.3.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.16.1 CPython/3.10.12 Linux/6.5.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bb8f24d65828b85281ab57837b9921754e13b58c8a69840bb81f9250a12b2bb |
|
MD5 | ae3e5166484c7e7f6682ea0239c59850 |
|
BLAKE2b-256 | c622f1f915a4f12ead909c3fff00d3412c99ef6cdc8f35134bc82042628ca470 |
File details
Details for the file myst_nb_json-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: myst_nb_json-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.16.1 CPython/3.10.12 Linux/6.5.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c351edae9aec17b4894c0264d451020454f63b45cca022844e87849893c3e3c |
|
MD5 | 7fa0333cb0632adde42b43368d4aac90 |
|
BLAKE2b-256 | 421625cdad98f879d031f2b163ab096883710dae01677f91682e4c517c0c9e76 |