Workspace
Local Compute
Step-by-step instructions for setting up WEEMS Local Compute on your own machine — from downloading the setup files to running your first notebook cell locally.
On this page
What local compute does
On this page
What local compute does
On this page
What local compute does
Local Compute lets WEEMS run your notebook code on your own computer instead of a WEEMS cloud machine. Your WEEMS project stays open in the browser as normal — login, files, and project data all remain online. Only the execution moves to your hardware.
Use it when you want to run code on a specific local GPU, keep data on your own machine, or avoid cloud runtime cost.
You do not need to open the downloaded files in VS Code or any other code editor. Setup is completed using Docker Desktop, your computer's terminal or command prompt, and WEEMS in your browser.
Before you begin
You need:
- Docker Desktop installed on your computer (download from docker.com)
- Docker Desktop running — open it and wait until the status bar at the bottom shows the engine is running before continuing
- WEEMS open in your browser
- A stable internet connection for the initial runtime download
- Port 8787 available on your computer (nothing else should be using it)
If Docker is closed or still starting when you begin, later steps will stall even when everything else is correct.
Important
Do not continue past this point until Docker Desktop is fully started and its engine shows a running status.
Step 1 — Open Local Compute in WEEMS
- Open your WEEMS project in the browser.
- Click the Machine button to open the Machine panel.
- Under hardware options, select Use your own computer resources.
- The Local Compute setup area will appear.
- Choose the runtime that matches your project. If you are unsure, select python-datascience.
- Leave the adapter address set to its default value:
http://127.0.0.1:8787 - In the label field, enter any name you will recognize later, for example:
My laptoporOffice workstation. - Select your operating system.
- Click Download Local Setup Files.
Your browser will download a file named Weems-local-compute.zip.
Step 2 — Extract the downloaded file
- Open your Downloads folder.
- Locate
Weems-local-compute.zip. - Extract it:
- Windows: right-click the file and choose Extract All, then click Extract.
- macOS: double-click the file. It extracts automatically.
- Linux: right-click and choose to extract, or run
unzip Weems-local-compute.zipin a terminal.
- Open the extracted folder named
Weems.
Inside the Weems folder you should see these files:
start-local-compute.bat(Windows) orstart-local-compute.sh(macOS/Linux)docker-compose.local-compute.yml.env— contains your security token; may be hidden on macOS and Linux because the name starts with a dotlocal-compute.env— same content as.env, visible fallback copyartifacts.jsonrelease.jsonlocal-compute-quick-start.mdadapter/— a folder containing the adapter service files
Important
Do not move or delete individual files from the Weems folder before completing setup. The start script depends on all files being present in the same folder.

Step 3 — Open the Weems folder in a terminal
The start command must be run from inside the Weems folder. Running it from any other location will fail.
- Windows — open Command Prompt in the folder
Open the Weems folder in File Explorer. Click the address bar at the top of the File Explorer window, type cmd, and press Enter. A Command Prompt window will open with its path already set to the Weems folder. Confirm the path shown in the Command Prompt matches the Weems folder before continuing.
- Windows — alternatively, use PowerShell
Right-click inside the Weems folder in File Explorer and choose Open in Terminal or Open PowerShell window here. Confirm the path shown matches the Weems folder.
- macOS — open Terminal and navigate to the folder
Open the Terminal application (search for it with Spotlight or find it in Applications > Utilities). Then type: cd ~/Downloads/Weems and press Enter. If you extracted the Weems folder to a different location, use that path instead.
- Linux — open a terminal and navigate to the folder
Open a terminal application. Then type: cd ~/Downloads/Weems and press Enter. If you extracted the Weems folder to a different location, use that path instead.

Step 4 — Run the start script
Run the command for your operating system. Make sure you are inside the Weems folder before running it.
start-local-compute.batThe script builds the adapter container and starts it. The first run is slower while Docker downloads and builds the required layers. Do not close the terminal while this is still running.
When startup is complete, the terminal will print:
Local adapter is starting on http://127.0.0.1:8787
Step 5 — Confirm the adapter is running in Docker
Before returning to WEEMS, confirm the adapter container started successfully.
- Open Docker Desktop.
- Click Containers in the left sidebar.
- Look for a container named weems-local-adapter.
- Its status should show as Running.

If the container does not appear or shows a failed status, do not continue to the next step. See Troubleshooting below.
Step 6 — Connect WEEMS to your computer
- Return to WEEMS in your browser.
- Open the Machine panel again.
- Confirm the adapter URL is still set to
http://127.0.0.1:8787. - Click Connect & Check.
A successful connection shows:
Storage shows as Pending because the runtime image has not been downloaded yet. This is expected at this stage.
If Connect & Check fails, see Troubleshooting below before continuing.
Step 7 — Sync the runtime
Click Sync Artifact.
This downloads the Docker runtime image that WEEMS will use to run your notebook. The first download may take several minutes depending on the image size and your internet speed. Do not click Sync again or close Docker while the download is in progress.
When synchronization finishes:
- Open Docker Desktop.
- Click Images in the left sidebar.
- Confirm that the WEEMS runtime image you selected appears in the list.
- Return to WEEMS. The Machine panel should now show storage is ready.

Step 8 — Start the machine
Click Start Machine.
WEEMS will start the runtime on your computer using the adapter and image you prepared. The first start may take longer than later starts while the runtime initializes.
Setup is complete when the Machine panel shows:
Do not continue until all four states appear.

Step 9 — Verify local execution
Return to your notebook and run a cell:
print("WEEMS local compute is running")Confirm the cell completes successfully and the Machine panel stays in the Running state.
Local Compute is now ready. Keep Docker Desktop running whenever you want to use your local runtime.
Troubleshooting
start-local-compute is not recognized or the file cannot be found
You are running the command from the wrong folder. Open the extracted Weems folder first, then open a terminal inside that folder, and run the command again. On Windows, click the File Explorer address bar, type cmd, and press Enter to open a Command Prompt already pointed at the correct folder.
The weems-local-adapter container does not appear in Docker Desktop
Confirm Docker Desktop is open and its engine status shows running. If Docker was still starting when you ran the script, run the start script again after Docker has fully started.
Docker shows a permission error when the script runs
On macOS and Linux, confirm your user account has permission to run Docker. On Linux, you may need to add your user to the docker group: sudo usermod -aG docker $USER — then log out and back in, and run the script again.
macOS blocks the start script
macOS quarantines downloaded executable files. Run this command first: xattr -d com.apple.quarantine start-local-compute.sh — then run ./start-local-compute.sh. Make sure you are inside the Weems folder when you run both commands.
Port 8787 is already in use
Another application on your computer is using port 8787. Do not change the adapter URL randomly. Close any application that may have started a service on that port, then run the start script again. Contact WEEMS support if you cannot identify what is using the port.
Connect & Check fails after the container is running
Confirm: (1) Docker Desktop is open and the weems-local-adapter container status is Running. (2) The adapter URL in the Machine panel is exactly http://127.0.0.1:8787. (3) A VPN, firewall, security software, or browser extension is not blocking access to localhost on port 8787. Try disabling any active VPN temporarily to test.
Sync Artifact fails or stops partway through
Check your internet connection and confirm Docker is still running. Check Docker Desktop Containers to confirm the weems-local-adapter container is still in a Running state. Wait for any previously started download to fully stop, then click Sync Artifact again.
The runtime image does not appear in Docker Desktop after Sync Artifact
The download may have been interrupted. Click Sync Artifact again and leave the Machine panel open until it completes. Do not close Docker or the browser tab while syncing.
The machine stays on Starting and does not reach Running
Confirm the runtime image appears under Docker Desktop Images. If it is missing, run Sync Artifact again before retrying. If the Machine panel reports a specific failure message, stop the machine, address the reported issue, and start again.
The container was running before but is now gone
The start script uses restart: unless-stopped, so the container restarts automatically when Docker starts — unless you manually stopped it or restarted Docker. Open the Weems folder in a terminal and run the start script again to bring it back.
Collect diagnostics before contacting support
If none of the above resolves the issue, gather this information before reaching out:
- Adapter logs: In Docker Desktop, click the
weems-local-adaptercontainer, then click Logs. Copy the full output. - Docker status: In Docker Desktop, note the engine status and any error messages shown.
- WEEMS error message: Copy the exact error or status text shown in the Machine panel.
- Your setup details: operating system and version, Docker Desktop version (visible under Docker Desktop > About Docker Desktop), and the runtime you selected.
Include all of the above when contacting WEEMS support.