Overview
Nen executes your Python code in a secure, sandboxed environment while allowing you to debug locally. This page explains the execution model and debugging strategies.Remote Python Execution Model
When you trigger a workflow:- Your code uploads to Nen’s secure infrastructure
- Sandbox launches in an isolated Chainguard container
- Python executes with access to the Nen SDK
- SDK calls communicate with the desktop via the agent engine
Your code runs in a containerized environment—no need to install Python or dependencies locally.
Local Development with VSCode
For development, you can run Python locally while connecting to a remote desktop:Setup
-
Install the Nen SDK locally:
-
Configure your environment:
-
Run your workflow:
Error Handling
Transient vs Fatal Errors
| Error Type | Description | Action |
|---|---|---|
| Transient | Temporary issues (network, timeout) | Retry automatically |
| Fatal | Permanent failures (auth, not found) | Stop and report |
Using try/except/finally
Handle errors gracefully in your workflows:Common Errors
| Error | Type | Resolution |
|---|---|---|
VerificationTimeout | Fatal | Increase timeout or check screen state |
ConnectionLost | Transient | Auto-retry, check network |
ElementNotFound | Fatal | Verify element exists, refine instruction |
AuthenticationFailed | Fatal | Check credentials |
Debugging Tips
1. Use Verbose Logging
Add print statements to trace execution:2. Check Screenshots
Each SDK call captures a screenshot. Review them in the run details to see what the AI observed.3. Simplify and Isolate
Test individual steps before combining:4. Increase Timeouts
Slow applications may need longer waits:Next Steps
Multiple Workflows
Managing stateful desktop environments
Observability
Logs, screenshots, and recordings