Jason Grout 4d0d373f3e Add typedoc module names in ensure-package script. 4 jaren geleden
..
src 4d0d373f3e Add typedoc module names in ensure-package script. 4 jaren geleden
style a0b72294bb Integrity update. 4 jaren geleden
README.md 049fc2ab07 Lint fixes 6 jaren geleden
package.json 5bc3087429 New version 4 jaren geleden
tsconfig.json 15ac2db497 Make strings localizable in JLab code. 4 jaren geleden
typedoc.json 9b42db0c8a Update typedoc config for 0.20 beta 27 4 jaren geleden

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.