Skip to main content

A tool designed to display rich media and object representations in a Jupyter Notebook using IPython's display functionality.

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_tool_jupyterdisplay


Swarmauri Tool Jupyter Display

Tool for displaying text, HTML, images, or LaTeX in a Jupyter notebook using IPython's rich display helpers.

Features

  • Accepts data and optional data_format (auto, text, html, image, latex).
  • Uses IPython.display to render the appropriate representation.
  • Returns a status dictionary indicating success or failure.

Prerequisites

  • Python 3.10 or newer.
  • Running inside a Jupyter notebook or environment that supports IPython display.
  • IPython installed (pulled in automatically).

Installation

# pip
pip install swarmauri_tool_jupyterdisplay

# poetry
poetry add swarmauri_tool_jupyterdisplay

# uv (pyproject-based projects)
uv add swarmauri_tool_jupyterdisplay

Quickstart

from swarmauri_tool_jupyterdisplay import JupyterDisplayTool

display_tool = JupyterDisplayTool()
print(display_tool("<b>Hello, world!</b>", data_format="html"))

Displaying Images

from swarmauri_tool_jupyterdisplay import JupyterDisplayTool

image_path = "plots/chart.png"
JupyterDisplayTool()(image_path, data_format="image")

Tips

  • Use data_format="auto" (default) to treat the data as Markdown text.
  • Provide absolute or notebook-relative paths for images when using data_format="image".
  • Wrap calls in Swarmauri tool chains to render results (e.g., charts, HTML reports) inline during agent runs.

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.

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

swarmauri_tool_jupyterdisplay-0.9.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

swarmauri_tool_jupyterdisplay-0.9.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_tool_jupyterdisplay-0.9.0.tar.gz.

File metadata

  • Download URL: swarmauri_tool_jupyterdisplay-0.9.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","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 swarmauri_tool_jupyterdisplay-0.9.0.tar.gz
Algorithm Hash digest
SHA256 2ec0769923a8093af32f2182d36ac294c8b26cfa507d6f9c028a6d890b936a0e
MD5 d8414e97cf9f90b9ce9653436394aecd
BLAKE2b-256 62245823a7fa8d3afc75321a3e9f7426a1bcb517c7813ad227f122be930aa1bf

See more details on using hashes here.

File details

Details for the file swarmauri_tool_jupyterdisplay-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_tool_jupyterdisplay-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","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 swarmauri_tool_jupyterdisplay-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a5640ddfb30aa3347f5d8bf99b59830a066a408769e31d89754c61e8b9ced8b
MD5 0a0a94a95d664ffdb74e931d37aeb80c
BLAKE2b-256 64d5c7fd4bc943206169a6f3a3466bbb7c6a371aec56ae1b9c14162ea2443505

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