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

Run JupyterLab

1

Start JupyterLab

Set a temporary token in the host shell:
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 in jupyter-notebooks after the sandbox is removed.
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:
Remove persisted notebooks only when you no longer need them:
Clear the token from the host shell:
Keep jupyter-notebooks if you want to retain the notebooks.