Jason Grout 7fc9001689 Publish with 'next' tag преди 6 години
..
src 9b465f43d7 Clean up handling of src преди 6 години
style 74eac68b72 Make codebase prettier преди 6 години
README.md 049fc2ab07 Lint fixes преди 6 години
package.json 7fc9001689 Publish with 'next' tag преди 6 години
tdoptions.json 5fee8c5389 Switch to ts 3.1 преди 6 години
tsconfig.json 9b465f43d7 Clean up handling of src преди 6 години

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.