← Back to directory

Execute a small Python notebook with shared state between its cells, then return...

https://code.halowerk.com/v1/notebook-run

Overview

Execute a small Python notebook with shared state between its cells, then return a fresh executed .ipynb and self-contained HTML with escaped source and computed text output. Accepts notebook format 4 with at most ten cells. Code cells execute sequentially in one fresh Python 3.12 standard-library OS sandbox, with shared variables only within that request. Old execution counts and outputs are discarded.

Protocol x402 (POST)
Price $0.0030
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider code
Source bazaar
Indexed 2026-11-20 13:10:04

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "body": { "notebook": { "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": "x = 2 + 3" }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": "print(\"computed\")\nx * 4" } ], "metadata": {}, "nbformat": 4, "nbformat_minor": 5 } }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "limitations": [ "Python standard-library cells only; no IPython magics, shell commands, interacti…", "At most ten cells, 8192 source characters per cell and 32768 UTF-8 source bytes …", "Combined computed text is limited to 16000 UTF-8 bytes; serialized worker result…" ], "result": { "executed_code_cells": 2, "html_base64": "PCFkb2N0eXBlIGh0bWw+PGh0bWwgbGFuZz0iZW4iPjxoZWFkPjxtZXRhIGNoYXJzZXQ9InV0Zi04Ij48…", "html_mime": "text/html; charset=utf-8", "limits": { "computed_text_bytes": 16000, "max_cells": 10, "process_memory_bytes": 268435456, "total_source_bytes": 32768, "worker_lifetime_ms": 3000 }, "notebook": { "cells": [ { "cell_type": "code", "execution_count": 1, "id": "cell-1", "metadata": {}, "outputs": [], "source": "x = 2 + 3" }, { "cell_type": "code", "execution_count": 2, "id": "cell-2", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": "computed\n" }, { "data": { "text/plain": "20" }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": "print(\"computed\")\nx * 4" } ], "metadata": { "kernelspec": { "display_name": "Python 3.12", "language": "python", "name": "python3" }, "language_info": { "name": "python", "version": "3.12" } }, "nbformat": 4, "nbformat_minor": 5 }, "wall_time_ms": 74 }, "service": "notebook-run", "status": "success" }, "type": "json" }