{"slug":"code-halowerk-com-v1-notebook-run-89edb6","title":"Execute a small Python notebook with shared state between its cells, then return","host":"code.halowerk.com","method":"POST","resource":"https://code.halowerk.com/v1/notebook-run","category":"code","description":"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 O","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":1189,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"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":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"input":{},"notebook":{"properties":{"cells":{"items":{"properties":{"cell_type":{"enum":["code","markdown","raw"]},"source":{"oneOf":[{"maxLength":8192,"type":"string"},{"items":{"maxLength":8192,"type":"string"},"maxItems":256,"type":"array"}]}},"required":["cell_type","source"],"type":"object"},"maxItems":10,"minItems":1,"type":"array"},"metadata":{"type":"object"},"nbformat":{"const":4},"nbformat_minor":{"maximum":5,"minimum":0,"type":"integer"}},"required":["nbformat","cells"],"type":"object"}},"required":["notebook"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1323,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1190,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1218,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1182,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1170,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1171,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":1189,"error":null}],"description_full":"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.","last_updated":"2026-11-20T13:07:44.294Z","schemes":["exact"]}