Skip to main content
What to install and a runnable Python example. The settings, how the workspace connects and the notes are on E2B, shared by both SDKs.

Install

Usage

captures defaults to @external: every program Mirage does not have itself. Name @python to run Python in the sandbox too.

Connecting the workspace

Pick a mount_type. ssh and both do not work in browsers, and each file call is about 150 ms for a small file from a laptop. With fuse, base the template on the machine image and run mirage workspace create /tmp/sandbox.yaml in the sandbox.

A template for ssh

Build a template with sshfs and pass its sandbox ID as sandbox_id: