Steven Silvester e604cfe88b Lint files 4 lat temu
..
src e604cfe88b Lint files 4 lat temu
style 937a339b52 fixed the css to fix filter box cut off issue when only one row in json output 5 lat temu
README.md 049fc2ab07 Lint fixes 6 lat temu
package.json 503638353d New version 5 lat temu
tsconfig.json 67dbe5d815 Start moving to new printing system 6 lat temu
typedoc.json afe04d6898 Migrate typedoc config to more conventional typedoc.json files 5 lat temu

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.