Package Exports
- @jupyterlab/json-extension
- @jupyterlab/json-extension/lib/index.js
- @jupyterlab/json-extension/style/index.css
- @jupyterlab/json-extension/style/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jupyterlab/json-extension) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
json-extension
A JupyterLab extension for rendering JSON as a tree
This extension is in the official JupyterLab distribution.
Usage
To render JSON-able dict or list in IPython:
from IPython.display import JSON
JSON({
"string": "string",
"array": [1, 2, 3],
"bool": True,
"object": {
"foo": "bar"
}
})
To render a fully expanded tree:
JSON({
"string": "string",
"array": [1, 2, 3],
"bool": True,
"object": {
"foo": "bar"
}
}, expanded=True)
To render a .json
file, simply open it:
Development
See the JupyterLab Contributor Documentation.