Jeremy Tuloup 72e028fb4d [3.3.x] Bump version for the 3.3 prerelease (#11810) преди 3 години
..
src dbdefed9db Add linter rule for sorting import (#10344) преди 3 години
style a0b72294bb Integrity update. преди 4 години
README.md 86ed755a98 Branch integrity преди 3 години
package.json 72e028fb4d [3.3.x] Bump version for the 3.3 prerelease (#11810) преди 3 години
tsconfig.json 15ac2db497 Make strings localizable in JLab code. преди 4 години
typedoc.json 9b42db0c8a Update typedoc config for 0.20 beta 27 преди 4 години

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.