Skip to main content

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

Screenshot of json_dict in Jupyter

MyST-NB without plugin

Screenshot of json_dict in HTML by MyST-NB

MyST-NB with myst-nb-json plugin

Screenshot of json_dict in HTML with myst-nb-json

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.

Metadata

Release files for myst-nb-json 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for myst-nb-json 0.1.3
File Size Uploaded
myst_nb_json-0.1.3.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for myst-nb-json 0.1.3
File Interpreter ABI Platform
myst_nb_json-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / myst_nb_json-0.1.3.tar.gz

Download URL myst_nb_json-0.1.3.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1bb8f24d65828b85281ab57837b9921754e13b58c8a69840bb81f9250a12b2bb
BLAKE2b-256 checksum
How to use checksums
c622f1f915a4f12ead909c3fff00d3412c99ef6cdc8f35134bc82042628ca470
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.16.1 CPython/3.10.12 Linux/6.5.0-1022-azure

Release files / myst_nb_json-0.1.3-py3-none-any.whl

Download URL myst_nb_json-0.1.3-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c351edae9aec17b4894c0264d451020454f63b45cca022844e87849893c3e3c
BLAKE2b-256 checksum
How to use checksums
421625cdad98f879d031f2b163ab096883710dae01677f91682e4c517c0c9e76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.16.1 CPython/3.10.12 Linux/6.5.0-1022-azure

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page