Skip to main content

An interactive JSON viewer for Jupyter Notebooks

Project description

╔══════════════════════════════════════════════════════════════╗
║ JUPYTER JSON VIEWER v1.0                                     ║
║ >_INTERACTIVE JSON VISUALIZATION SYSTEM                      ║
║ >>DOCUMENTATION INITIALIZED                                  ║
╚══════════════════════════════════════════════════════════════╝

_SYSTEM OVERVIEW


An interactive JSON viewer for Jupyter Notebooks that provides clear and interactive visualization of complex data structures. The viewer supports both light and dark color schemes and offers distinct visual hierarchy for improved data comprehension.

_CORE FEATURES


[■] VISUALIZATION > Interactive collapsible sections for managing complex structures > Clear visual hierarchy with structural markers (┌├└) > Syntax highlighting for different data types

[■] INTERFACE > Light and dark mode support > Monospace font optimization for readability > Responsive hover effects

[■] CUSTOMIZATION > Configurable display depth > Adjustable indentation > Optional title support

_INITIALIZATION


# Import the viewer
from viewer import display_json

# Sample data
data = {
    "name": "example",
    "values": [1, 2, 3],
    "options": {
        "active": True,
        "mode": "standard"
    }
}

# Basic usage
display_json(data)

# Advanced configuration
display_json(
    data,
    title="Data Structure",   # Optional title
    dark_mode=True,          # Enables dark mode
    collapsed=True,          # Starts collapsed
    max_depth=3,            # Maximum display depth
    indent_size=24          # Indentation in pixels
)

_PARAMETERS


AVAILABLE CONFIGURATION OPTIONS:

[DATA] The JSON-compatible data structure to visualize (required) [TITLE] Optional heading above the visualization [MAX_DEPTH] Maximum nesting depth to display (optional) [COLLAPSED] State of collapsible elements (default: False) [INDENT] Indentation size in pixels (default: 24) [DARK_MODE] Dark color scheme (default: False)

_PROJECT STRUCTURE


ROOT
├── viewer.py     // Main module containing display_json function

_TECHNICAL SPECIFICATIONS


SYSTEM REQUIREMENTS:

  • Python 3.6 or higher
  • IPython 7.0.0 or higher
  • Jupyter Notebook/Lab

IMPLEMENTED TECHNOLOGIES:

  • HTML5 for structural representation
  • CSS3 for styling and animations
  • JavaScript for interactivity
  • IPython display system integration

_COLOR SCHEMES


LIGHT MODE:

  • Background: #f8f9fa
  • Text: #2c3e50
  • Strings: #28a745
  • Numbers: #0066cc
  • Boolean values: #e83e8c

DARK MODE:

  • Background: #1e1e1e
  • Text: #d4d4d4
  • Strings: #6A9955
  • Numbers: #569CD6
  • Boolean values: #C586C0

_LICENSE


╔════════════════════════════════════════════════╗
║ GNU General Public License v3.0                ║
║ Copyright (c) 2024                             ║
║ Developed by Johannes Kaindl                   ║
╚════════════════════════════════════════════════╝

END OF DOCUMENTATION

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

jupyter_json_viewer-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

jupyter_json_viewer-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jupyter_json_viewer-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.15

File hashes

Hashes for jupyter_json_viewer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1186142cf1ed8c7eab519561611d67d01190dde029520f043c44a911c6a93fa9
MD5 1eb4a5f8d7839b7c3737166193410d06
BLAKE2b-256 378d5483db71adbe65f985c90693a638026cc7c79a1457daf2a7da13de34d7b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyter_json_viewer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef844e269d9c129aef66dda70b4a020c8e22e6f28359fc0169499dac3874e3f8
MD5 a6a4aca96aaf778b6c0ac5866457f206
BLAKE2b-256 e934cb681cdfdf7e6712332abcd8f1bad8c000985d77d9397a94c53585d743d1

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