Skip to main content

Display Helpers in Jupyter, VSCode, and Databricks Notebooks for JSON and XML data. This is like IPython.display.JSON but also works in VSCode and Databricks.

Project description

Inara - helper for displaying JSON, XML, Images in all kinds of notebooks

Use in any Notebook (Jupyter, VSCode, Databricks) to display dicts/jsons and XML:

from inara import displayJSON, displayXML, displayImage, image_frames
displayJSON(dict(data='driven',value=dict(cre='ation'), location=dict(ch="Zurich", gr="Athens")))
displayXML("""<?xml version="1.0"?>
<data>
    <country name="Liechtenstein">
        <rank>1</rank>
        <year>2008</year>
        <gdppc>141100</gdppc>
        <neighbor name="Austria" direction="E"/>
        <neighbor name="Switzerland" direction="W"/>
    </country>
    <country name="Singapore">
        <rank>4</rank>
        <year>2011</year>
        <gdppc>59900</gdppc>
        <neighbor name="Malaysia" direction="N"/>
    </country>
</data>
""")

And for images use:

displayImage(image, width=500)
# or with an array of images e.g. from a multi-frame TIF
displayImage(image_frames(image_tif), width=500)

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

inara-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

inara-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inara-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for inara-0.1.0.tar.gz
Algorithm Hash digest
SHA256 484aef642398c5b328201b1ebe2d42f255c6eb7f2376af1055697e9ea25b5094
MD5 a4fff97c7cf33a87a0185132699112e2
BLAKE2b-256 00fa31dc509a932e3c008072b1941e0d32fa6c1d9401b64480cff4656d9de3bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: inara-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for inara-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af02285b38fb3cca8271c42a1b2b92d72e0e236a77d60866ed273da9e96247c6
MD5 04011a3fc5624e9a505de58d3b1d75db
BLAKE2b-256 e07631dbf397cc3723c6fdd2978248779806e839666da739540e79ec8f1f7b63

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