Jason Grout 8b0f051040 New version před 5 roky
..
src 334c0eb336 Prevent CSS import from TS and update services example před 5 roky
style adb3a3a13c Update templated style files před 5 roky
README.md 049fc2ab07 Lint fixes před 6 roky
package.json 8b0f051040 New version před 5 roky
tdoptions.json 5fee8c5389 Switch to ts 3.1 před 6 roky
tsconfig.json 67dbe5d815 Start moving to new printing system před 6 roky

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.