Skip to main content
This example installs JupyterLab into a Python microVM, stores notebooks on a sized root disk, and exposes the server only on host loopback.

Run JupyterLab

1

Start JupyterLab

Set a temporary token in the host shell:
Create a startup script for the guest:
start-jupyter.sh
Start the server:
Open http://127.0.0.1:8888/lab?token=<token> in your browser and replace <token> with the value generated above.
2

Verify the service

Check the authenticated API from the host:
Then inspect the recent server output:
The logs show Jupyter Server listening on guest port 8888. Notebooks saved under /workspace remain on the root disk when the sandbox stops and starts.
The token is visible to the guest and to processes that can inspect the host command environment. Use the secrets workflow for production credentials, retain the loopback bind, and place a TLS-terminating authenticated proxy in front of any remote deployment.
3

Clean up

Remove the sandbox:
Clear the token from the host shell:
Copy any notebooks you want to keep to the host before removing the sandbox.