diff --git a/notebooks/computer_nb.ipynb b/notebooks/computer_nb.ipynb index caa821e1..8a52f02c 100644 --- a/notebooks/computer_nb.ipynb +++ b/notebooks/computer_nb.ipynb @@ -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", + "```" ] }, { @@ -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", + "```" ] }, { @@ -163,7 +159,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -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", @@ -283,7 +311,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 9, "metadata": {}, "outputs": [], "source": [ @@ -307,7 +335,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 10, "metadata": {}, "outputs": [], "source": [