A tool designed to display rich media and object representations in a Jupyter Notebook using IPython's display functionality.
Project description
Swarmauri Tool Jupyter Display
Tool for displaying text, HTML, images, or LaTeX in a Jupyter notebook using IPython's rich display helpers.
Features
- Accepts
dataand optionaldata_format(auto,text,html,image,latex). - Uses
IPython.displayto 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.
IPythoninstalled (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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swarmauri_tool_jupyterdisplay-0.8.0.dev21.tar.gz.
File metadata
- Download URL: swarmauri_tool_jupyterdisplay-0.8.0.dev21.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cedb0b40a66eb4e04f5eca098173f3e85831d9050ad24b04cfd8e1ad9d134e1f
|
|
| MD5 |
706d8666a1c13cb3cabeab8724cfb740
|
|
| BLAKE2b-256 |
b5e4ecafecdcba717fc08e337813603f30fc09d8e7510e381e89d293db947551
|
File details
Details for the file swarmauri_tool_jupyterdisplay-0.8.0.dev21-py3-none-any.whl.
File metadata
- Download URL: swarmauri_tool_jupyterdisplay-0.8.0.dev21-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09c3f854c8c428da925d2bb1aaf4d1a4894f95cb3298b1e576acbd02d8bd64d9
|
|
| MD5 |
58e62f22503bc2d0cf1360c8f9d97329
|
|
| BLAKE2b-256 |
2bd289a0ecd8dded09fba7edab6d4d2ff3fb23e36545ec8d6daaaf1bac4ef0e4
|