Jason Grout 4f54e989dd Publish il y a 6 ans
..
src 74eac68b72 Make codebase prettier il y a 6 ans
style 74eac68b72 Make codebase prettier il y a 6 ans
README.md ff6f2bfab4 Update READMEs il y a 7 ans
package.json 4f54e989dd Publish il y a 6 ans
tsconfig.json c5df745128 Rename base tsconfig.json to tsconfigbase.json so that running tsc at the root directory doesn’t accidentally try to do something. il y a 7 ans

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.