Run Sage
run_sageExecute arbitrary SageMath code and retrieve its standard output, error, and exit status.
Instructions
Run arbitrary SageMath code and return its stdout, stderr and exit status.
An escape hatch for questions the typed tools do not cover. Print what you want to see; nothing is returned implicitly. Runs in a fresh Sage process, so it cannot see or disturb state from the other tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | SageMath source to execute. | |
| timeout | No | seconds to allow before giving up. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||