Jeremy Tuloup 72e028fb4d [3.3.x] Bump version for the 3.3 prerelease (#11810) %!s(int64=3) %!d(string=hai) anos
..
src dbdefed9db Add linter rule for sorting import (#10344) %!s(int64=3) %!d(string=hai) anos
style a0b72294bb Integrity update. %!s(int64=4) %!d(string=hai) anos
README.md 86ed755a98 Branch integrity %!s(int64=3) %!d(string=hai) anos
package.json 72e028fb4d [3.3.x] Bump version for the 3.3 prerelease (#11810) %!s(int64=3) %!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.