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.1.tar.gz (7.6 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.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inara-0.1.1.tar.gz
  • Upload date:
  • Size: 7.6 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.1.tar.gz
Algorithm Hash digest
SHA256 25a69d8dd06772e15efd471f943267c272fa5a6de3b0f769a4f21a12f9139f27
MD5 d4a6f0722bd59f9c969e85a890433e94
BLAKE2b-256 2c6285618ce83ff8c5c39f3d08277c603fc7a790e17861f18b779da9b305df4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: inara-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86d0add04491e391127ce2ea8d2ebbf90a5565b0e4fa630d055ba996b6f319b0
MD5 2726605eba8cb14f7ae2af42981682c3
BLAKE2b-256 404a4bc493876f8c3d5a82b48b83b9116cac89709add5e37fed8fd5dc62abc2a

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