Afshin Darian 18035d8e01 Merge pull request #4533 from ian-r-rose/notify_command_changed преди 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 18035d8e01 Merge pull request #4533 from ian-r-rose/notify_command_changed преди 7 години
tsconfig.json cc74a5d477 Target typescript compilation to ES2015 instead of ES5. преди 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.