Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 48 additions & 20 deletions notebooks/computer_nb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {},
"outputs": [],
"source": [
"!brew tap trycua/lume\n",
"!brew install lume"
"For installing the standalone lume binary, run the following command from a terminal:\n",
"\n",
"```bash\n",
"sudo /bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)\"\n",
"```"
]
},
{
Expand Down Expand Up @@ -128,16 +129,11 @@
"source": [
"## Testing the sandbox\n",
"\n",
"Once downloaded, you can run the sandbox to test everything is working:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!lume run macos-sequoia-cua:latest"
"Once downloaded, you can run the sandbox to test everything is working:\n",
"\n",
"```bash\n",
"lume run macos-sequoia-cua:latest\n",
"```"
]
},
{
Expand All @@ -163,7 +159,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -186,9 +182,41 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"Equivalent curl command:\n",
"curl -X POST 'http://localhost:3000/lume/vms/macos-sequoia-cua_latest/run' -H 'Content-Type: application/json' -d '{\"noDisplay\": false, \"sharedDirectories\": []}'\n",
"\n",
"\n",
"Equivalent curl command:\n",
"curl -X POST \\\n",
" 'http://localhost:3000/lume/vms/macos-sequoia-cua_latest/run' \\\n",
" -H 'Content-Type: application/json' \\\n",
" -d '{\"noDisplay\": false, \"sharedDirectories\": []}'\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Computer API Server connection lost. Will retry automatically.\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"Computer API Server not ready yet. Will retry automatically.\n"
]
}
],
"source": [
"async with Computer(\n",
" # name=\"my_vm\", # optional, in case you want to use any other VM created using lume\n",
Expand Down Expand Up @@ -283,7 +311,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -307,7 +335,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
Expand Down