Jason Grout f33f723a67 New version há 4 anos atrás
..
src 4ee83bd2b2 Lint - updates from the new version of prettier. há 4 anos atrás
style 15ac2db497 Make strings localizable in JLab code. há 4 anos atrás
README.md 049fc2ab07 Lint fixes há 6 anos atrás
package.json f33f723a67 New version há 4 anos atrás
tsconfig.json 15ac2db497 Make strings localizable in JLab code. há 4 anos atrás
typedoc.json afe04d6898 Migrate typedoc config to more conventional typedoc.json files há 5 anos atrás

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.