Jason Grout 6be51dbe66 Update to Typescript 2.9.2. 6 rokov pred
..
src 5bd3041ad0 Add copyright to component file, order imports. 6 rokov pred
style f089d2ba10 Add json-extension 7 rokov pred
README.md ff6f2bfab4 Update READMEs 7 rokov pred
package.json 6be51dbe66 Update to Typescript 2.9.2. 6 rokov pred
tsconfig.json c5df745128 Rename base tsconfig.json to tsconfigbase.json so that running tsc at the root directory doesn’t accidentally try to do something. 6 rokov pred

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.