Steven Silvester 2485eaae61 Publish 7 éve
..
src b414c5ac32 updates from compiler 7 éve
style f089d2ba10 Add json-extension 7 éve
README.md ff6f2bfab4 Update READMEs 7 éve
package.json 2485eaae61 Publish 7 éve
tsconfig.json fdca495969 Add "node" types to renderers 7 éve

README.md

json-extension

A JupyterLab extension for rendering JSON as a tree

demo

Prerequisites

  • JupyterLab ^0.27.0

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.