code.halowerk.com/v1/notebook-run
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 disc
POST
https://code.halowerk.com/v1/notebook-runUptime100% of 3 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://code.halowerk.com/v1/notebook-run", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"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}}),
});
console.log(await res.json());Example input
{
"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
}
}