Skip to main content

nteract/dx — efficient display and blob-store uploads from Python kernels

Project description

dx

Efficient display and blob-store uploads for Python kernels running under nteract.

dx lets a Python kernel push bytes directly to the nteract daemon's blob store via a dedicated Jupyter comm, bypassing the IOPub "raw bytes" anti-pattern. Display bundles carry a tiny reference MIME (application/vnd.nteract.blob-ref+json) instead of megabytes of parquet/image/video data.

Usage

import dx
dx.install()

import pandas as pd
df = pd.read_parquet("big.parquet")
df  # rendered via the sift parquet renderer from a blob reference

Low-level:

ref = dx.put(open("image.png", "rb").read(), content_type="image/png")
dx.display_blob_ref(ref, content_type="image/png")

See docs/superpowers/specs/2026-04-13-nteract-dx-design.md for the protocol.

In vanilla Jupyter or plain python

dx.install() is a no-op when no nteract runtime agent is reachable. dx.display(df) falls back to raw-bytes display, and dx.put(...) raises DxNoAgentError. The library is safe to import anywhere.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

dx-2.0.1a202604150435.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

dx-2.0.1a202604150435-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file dx-2.0.1a202604150435.tar.gz.

File metadata

  • Download URL: dx-2.0.1a202604150435.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dx-2.0.1a202604150435.tar.gz
Algorithm Hash digest
SHA256 70631ca795a968429e9b44f2b23a40af706f15ce838d8e625530e2a304dcb53b
MD5 c91ed354e119bf5135e17b3dff3fa9f2
BLAKE2b-256 9a3b18f3f7a6412b006fa0006eb20be2cb35e81e2d6a720862a0cac54f558cff

See more details on using hashes here.

File details

Details for the file dx-2.0.1a202604150435-py3-none-any.whl.

File metadata

  • Download URL: dx-2.0.1a202604150435-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dx-2.0.1a202604150435-py3-none-any.whl
Algorithm Hash digest
SHA256 52749872fc4b2d804a2679b86d43d5d61cde55846a6e8dceee519d266dab216d
MD5 447efb6587a0dce3cccee2d860451125
BLAKE2b-256 917b2111de395558de32b663ece92e2bc4d4995f3a76c073a32cde4bd67b9871

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