python_exec
Execute Python code in a persistent MiniZinc solving kernel to keep variables and imports across calls; set timeout up to 300s for long solver runs.
Instructions
Execute Python code in the persistent solving kernel.
Runs in the kernel set up by select_backend unless kernel_id overrides it. State persists across calls (variables, imports). Raise timeout (seconds, max 300) for long solver runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| timeout | No | ||
| kernel_id | No |