Codewerk
notebook run
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. Each code cell captures stdout, stderr and the repr of its final expression; the first error aborts the entire request before settlement. The backend validates the returned cell records and constructs a new format-4.5 notebook plus static HTML from the original.
POST https://code.halowerk.com/v1/notebook-runInputs
| Field | Type | Required | Description |
|---|---|---|---|
| notebook | object | Yes | |
| input | See schema | No | Optional JSON data exposed as input_data. |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"notebook"
],
"properties": {
"notebook": {
"type": "object",
"required": [
"nbformat",
"cells"
],
"properties": {
"nbformat": {
"const": 4
},
"nbformat_minor": {
"type": "integer",
"minimum": 0,
"maximum": 5
},
"metadata": {
"type": "object"
},
"cells": {
"type": "array",
"minItems": 1,
"maxItems": 10,
"items": {
"type": "object",
"required": [
"cell_type",
"source"
],
"properties": {
"cell_type": {
"enum": [
"code",
"markdown",
"raw"
]
},
"source": {
"oneOf": [
{
"type": "string",
"maxLength": 8192
},
{
"type": "array",
"maxItems": 256,
"items": {
"type": "string",
"maxLength": 8192
}
}
]
}
}
}
}
}
},
"input": {
"description": "Optional JSON data exposed as input_data."
}
}
}Published input example
{
"notebook": {
"nbformat": 4,
"nbformat_minor": 5,
"metadata": {},
"cells": [
{
"cell_type": "code",
"source": "x = 2 + 3",
"metadata": {},
"outputs": [],
"execution_count": null
},
{
"cell_type": "code",
"source": "print(\"computed\")\nx * 4",
"metadata": {},
"outputs": [],
"execution_count": null
}
]
}
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Codewerk0.003 USDC
action sha pin
POSThttps://code.halowerk.com/v1/action-sha-pinFinds every "uses: owner/repo[/path]@ref" in a GitHub Actions workflow, resolves tags (including annotated tags) and branches to the commit SHA with git ls-remote against github.com, and rewrites the line to "uses: owner/repo[/path]@<sha> #
- Codewerk0.003 USDC
actionlint
POSThttps://code.halowerk.com/v1/actionlintRuns the official statically linked actionlint 1.7.12 release binary (MIT, SHA-256 checked against the published checksums) in an isolated child process without network, with the bundled ShellCheck 0.11.0 for run: scripts (pyflakes is not a
- Codewerk0.004 USDC
api changelog
POSThttps://code.halowerk.com/v1/api-changelogCompares operations, parameters, request bodies, response codes and media types, component schemas (one property level), servers and security schemes of two documents (Swagger 2.0 is converted with swagger2openapi first; 3.0 and 3.1 are rea