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.1.0.tar.gz (241.5 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.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for interactive_json_tree-0.1.0.tar.gz
Algorithm Hash digest
SHA256 12af4772b6309f4bff050b0acab7ced4a78afed45b035a74973a7f41f3bcdab5
MD5 201068e38963a9b3dfe7aef8e518ee27
BLAKE2b-256 166d72dbbc3eb6be78ccedfce18f96111ed6b9822fa82077fe476252df52ddf0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for interactive_json_tree-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1c2a136aeadb5038e1bd2be4c742d61eb4eacb6b3e571507f8cf476821febd3
MD5 d80828df89642337d69fb57e2981ad67
BLAKE2b-256 a9d89aacbe02c3e2aae2a5ae911a44ca9e0893530333a05fa9243f30a200331b

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