@jupyterlab/json-extension
TypeScript icon, indicating that this package has built-in type declarations

4.1.5 • Public • Published

json-extension

A JupyterLab extension for rendering JSON as a tree

demo

This extension is in the official JupyterLab distribution.

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.

Dependents (14)

Package Sidebar

Install

npm i @jupyterlab/json-extension

Weekly Downloads

16,819

Version

4.1.5

License

BSD-3-Clause

Unpacked Size

34.4 kB

Total Files

13

Last publish

Collaborators

  • jupyterlab-release-bot
  • jweill-aws
  • krassowski
  • darian
  • blink1073
  • jasongrout
  • fcollonval
  • jtpio
  • echarles
  • mbektas