Skip to main content

Expandable/collapsible pretty-printed JSON for Jupyter Notebooks

Project description

interactive-json-tree

Expandable tree view for JSON-like data for Jupyter.

Installation

pip install interactive-json-tree

Example:

from interactive_json_tree import JSON

example = {
    "name": "Acme Corp",
    "employees": [
        {"name": "Ada", "skills": ["CSS", "JS"]},
        {"name": "Bob", "skills": []},
    ],
    "meta": {"founded": 2012, "active": True, "bar": None},
}

JSON(example, expand_depth=2)
{} Object (3)
"name": "Acme Corp"
"employees": [] Array (2)
[0]: {} Object (2)
"name": "Ada"
"skills": [] Array (2)
[0]: "CSS"
[1]: "JS"
[1]: {} Object (2)
"name": "Bob"
"skills": [] Array (0)
"meta": {} Object (3)
"founded": 2012
"active": true
"bar": null

(Github preview will sanitize styles out of the example above. See below for a screenshot)


Screenshot

Example of interactive-json-tree expandable view

Credits / Caveat

Vibe coded with GPT-5-Pro in 30 minutes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

interactive_json_tree-0.2.0.tar.gz (271.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

interactive_json_tree-0.2.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file interactive_json_tree-0.2.0.tar.gz.

File metadata

  • Download URL: interactive_json_tree-0.2.0.tar.gz
  • Upload date:
  • Size: 271.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for interactive_json_tree-0.2.0.tar.gz
Algorithm Hash digest
SHA256 65f10ada616e076154ef9491acc3bd1c70a9766faa703894fe9537fb7e5d950c
MD5 e4d59543381eb26a54a6c3203bf49c22
BLAKE2b-256 c7b961ae5ca5ea749f18604d58b509f5471568a75db4036cbb9a63792335e6b9

See more details on using hashes here.

File details

Details for the file interactive_json_tree-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for interactive_json_tree-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f30d1419e97614f8238477cc830c35ab526e96d8a88be7266dacd7543d865fc4
MD5 f62e63d054543e22715e9d2137d24b50
BLAKE2b-256 4ce416c6e3955ff6209753b6279110f4d30af9fe49d2018ee7ec7258953ff6d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page