Declare machines
Workspace(machines={...}) takes machine entries, runtime objects and
machine handles by name. The first machine whose captures names a program
runs it:
Change them on a live workspace
On a live workspace,add_machine adds a runtime’s
machine, remove_machine takes one out, and
engines() lists them. A machine provider’s machine, such as docker, is
declared when the workspace is built:
python3 moves to the new machine at once. A running line finishes before
its removed runtime closes, a removed instance cannot be added again, and
workspace cannot be removed. register_runtime(name, cls) makes your own
runtime class available by name in YAML.
Child processes
A host application starts a program through the same admitted entry point as the shell.Python SDK notes
- Local: with neither
homenorMIRAGE_LOCAL_HOME,python3is the interpreter running Mirage. - Machines:
mount_type: sshneedspip install 'mirage-ai[ssh]'on the host. Thesshmachine matcheshostagainst~/.ssh/config.