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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| swarmauri_tool_jupyterdisplay-0.9.0.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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}
|