Jason Grout f33f723a67 New version %!s(int64=4) %!d(string=hai) anos
..
src 4ee83bd2b2 Lint - updates from the new version of prettier. %!s(int64=4) %!d(string=hai) anos
style 15ac2db497 Make strings localizable in JLab code. %!s(int64=4) %!d(string=hai) anos
README.md 049fc2ab07 Lint fixes %!s(int64=6) %!d(string=hai) anos
package.json f33f723a67 New version %!s(int64=4) %!d(string=hai) anos
tsconfig.json 15ac2db497 Make strings localizable in JLab code. %!s(int64=4) %!d(string=hai) anos
typedoc.json afe04d6898 Migrate typedoc config to more conventional typedoc.json files %!s(int64=5) %!d(string=hai) anos

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.