Jason Grout 54bc123589 Extend tsconfig to have a central place for uniform options. 7 роки тому
..
src 3be256fe19 Allow specifying the root name in JSON repr 7 роки тому
style f089d2ba10 Add json-extension 7 роки тому
README.md ff6f2bfab4 Update READMEs 7 роки тому
package.json c57bb491cb Update to typescript 2.9.1 7 роки тому
tsconfig.json 54bc123589 Extend tsconfig to have a central place for uniform options. 7 роки тому

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.