Skip to main content

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.

Metadata

Release files for swarmauri_tool_jupyterdisplay 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swarmauri_tool_jupyterdisplay 0.9.0
File Size Uploaded
swarmauri_tool_jupyterdisplay-0.9.0.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swarmauri_tool_jupyterdisplay 0.9.0
File Interpreter ABI Platform
swarmauri_tool_jupyterdisplay-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / swarmauri_tool_jupyterdisplay-0.9.0.tar.gz

Download URL swarmauri_tool_jupyterdisplay-0.9.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2ec0769923a8093af32f2182d36ac294c8b26cfa507d6f9c028a6d890b936a0e
BLAKE2b-256 checksum
How to use checksums
62245823a7fa8d3afc75321a3e9f7426a1bcb517c7813ad227f122be930aa1bf
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / swarmauri_tool_jupyterdisplay-0.9.0-py3-none-any.whl

Download URL swarmauri_tool_jupyterdisplay-0.9.0-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a5640ddfb30aa3347f5d8bf99b59830a066a408769e31d89754c61e8b9ced8b
BLAKE2b-256 checksum
How to use checksums
64d5c7fd4bc943206169a6f3a3466bbb7c6a371aec56ae1b9c14162ea2443505
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

0.8.2

2 release files

0.8.0

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page