Swarmauri Tool Jupyter Run Cell
Executes a code string inside the current IPython kernel and captures stdout/stderr/error text.
Features
- Runs arbitrary Python snippets with optional timeout.
- Returns
success,cell_output, anderror_outputkeys. - Designed for use inside running notebooks or IPython sessions.
Prerequisites
- Python 3.10 or newer.
- Running within IPython/Jupyter environment.
Installation
# pip
pip install swarmauri_tool_jupyterruncell
# poetry
poetry add swarmauri_tool_jupyterruncell
# uv (pyproject-based projects)
uv add swarmauri_tool_jupyterruncell
Quickstart
from swarmauri_tool_jupyterruncell import JupyterRunCellTool
runner = JupyterRunCellTool()
result = runner(code="print('Hello from Swarmauri!')", timeout=5)
if result["success"]:
print("stdout:", result["cell_output"])
else:
print("error:", result["error_output"])
Tips
- Set
timeout=0(or omit) to disable execution timeouts. - Capture
error_outputto diagnose exceptions raised by the executed code. - Use alongside other notebook automation tools (execute, export, etc.) to build richer pipelines.
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_jupyterruncell 0.10.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_jupyterruncell-0.10.0.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmauri_tool_jupyterruncell-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.8 kB
Release files / swarmauri_tool_jupyterruncell-0.10.0.tar.gz
| Download URL | swarmauri_tool_jupyterruncell-0.10.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
396f5933bbf6e4973145cff1fa2afae2d72374dfb9dd4c9d534a23a602af018c
|
|
BLAKE2b-256 checksum How to use checksums |
063f631b219c4d760e188d968b40b3e8271e419bf56b8fe4c1c07c018dbc0243
|
| 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_jupyterruncell-0.10.0-py3-none-any.whl
| Download URL | swarmauri_tool_jupyterruncell-0.10.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
553665c9a908f650e7731c400f1265e99d235dbbc3ae28e37de3eccb703797af
|
|
BLAKE2b-256 checksum How to use checksums |
961c996a8a0ded5d1e5fea2ad607a56acb24168f40e0caa7d7422827c983804c
|
| 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}
|