
Create and automate Polyaxon sandboxes from Python
Create a sandbox service with SandboxClient, choose its image, run Python, download the output, and stop the workspace from one Python script.
The latest guides, tutorials, and product updates.

Create a sandbox service with SandboxClient, choose its image, run Python, download the output, and stop the workspace from one Python script.

Use completed trial results to guide hyperparameter choices with native TPE, run GPU training trials, and compare validation loss in Polyaxon.

Use Polyaxon's organization and team APIs to inspect GPU workloads by agent, count model versions, and calculate job failure rates across projects.

Start a background process, save its execution ID, reconnect to status and logs, and distinguish command limits from the lifetime of a Polyaxon sandbox.

Scope Polyaxon Python clients and CLI commands to a team, review runs across its projects, and keep explicit project targets and saved defaults clear.

Monitor several Polyaxon runs concurrently with async Python clients, retrieve recent logs, and manage concurrency, timeouts, and client cleanup.

Enable sandbox execution on a Polyaxon service, reuse its image and compute settings, run commands through the SDK, and preserve results before cleanup.

Configure Polyaxon Python sandbox services with minimal privileges, controlled writable paths, bounded resources, and separate handling of untrusted LLM code.

Configure Django logs for container collection, useful request context, exception diagnosis, privacy, and correlation with Kubernetes workload state.

Create useful Python logs for training and batch workloads with structured context, exception details, stdout collection, and controlled volume.

Connect Django request outcomes, database and cache health, worker behavior, Kubernetes state, and release context in one monitoring strategy.

Collect reports from several Polyaxon runs with bounded async downloads, fresh staging directories, content checks, and a receipt for every transfer.

Translate agent tool requests into authorized Polyaxon sandbox execution with bounded commands, structured results, and explicit lifecycle ownership.

Select a run cohort, save its UUIDs for review, and apply a ProjectClient bulk action to that explicit inventory without rerunning a changing query.

A practical comparison of Flask, FastAPI, and Django for serving machine learning APIs, internal tools, and production services.