Jason Grout 4d0d373f3e Add typedoc module names in ensure-package script. %!s(int64=4) %!d(string=hai) anos
..
src 4d0d373f3e Add typedoc module names in ensure-package script. %!s(int64=4) %!d(string=hai) anos
style a0b72294bb Integrity update. %!s(int64=4) %!d(string=hai) anos
README.md 049fc2ab07 Lint fixes %!s(int64=6) %!d(string=hai) anos
package.json 5bc3087429 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 9b42db0c8a Update typedoc config for 0.20 beta 27 %!s(int64=4) %!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.