Jason Grout 054e748f0a Upgrade to Typescript 4 4 年之前
..
src 15ac2db497 Make strings localizable in JLab code. 4 年之前
style 15ac2db497 Make strings localizable in JLab code. 4 年之前
README.md 049fc2ab07 Lint fixes 6 年之前
package.json 054e748f0a Upgrade to Typescript 4 4 年之前
tsconfig.json 15ac2db497 Make strings localizable in JLab code. 4 年之前
typedoc.json afe04d6898 Migrate typedoc config to more conventional typedoc.json files 5 年之前

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.