Steven Silvester 72d9e17dad Merge pull request #7657 from vidartf/strict-nulls hace 5 años
..
src db21fd23e5 Simple typings changes for strict nulls hace 5 años
style ec720ffa10 Update yarn.lock hace 5 años
README.md 049fc2ab07 Lint fixes hace 6 años
package.json 3d82eaa63e Use consistent versions of React hace 5 años
tsconfig.json 67dbe5d815 Start moving to new printing system hace 6 años
typedoc.json afe04d6898 Migrate typedoc config to more conventional typedoc.json files hace 5 años

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.