GitHub Action 2be6f2eb9f [ci skip] New version 2 år sedan
..
src dbdefed9db Add linter rule for sorting import (#10344) 3 år sedan
style a0b72294bb Integrity update. 4 år sedan
README.md 85ad42ab4b Update branch name in doc urls and workflow files 2 år sedan
package.json 2be6f2eb9f [ci skip] New version 2 år sedan
tsconfig.json 15ac2db497 Make strings localizable in JLab code. 4 år sedan
typedoc.json 9b42db0c8a Update typedoc config for 0.20 beta 27 4 år sedan

README.md

json-extension

A JupyterLab extension for rendering JSON as a tree

demo

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.