# Jupyter on a Cloud GPU: The JupyterLab App or an SSH Tunnel

Published 7 November 2026. 5 min read. For: Data scientists, researchers and students who work in notebooks.

## Key facts

- Run Jupyter on a cloud GPU two ways: rent the JupyterLab app and press Open, or start Jupyter on any machine and tunnel it over SSH.
- The JupyterLab app has PyTorch and CUDA: press Open and log in as arrakis with the password the console shows for that machine.
- On any machine, start Jupyter listening on localhost and forward its port with ssh -L 8888:localhost:8888 to open it on your laptop.
- Set a removal time when you rent, from 1 hour to 3 days, and stop the machine when you stop: each started hour is charged in full.
- The machine's disk, /workspace included, is deleted when it stops, so keep notebooks on a volume at /mnt or push them to git.

Jupyter on a cloud GPU is two minutes of setup once the machine runs. Rent the JupyterLab app and press Open, or start Jupyter on any machine and tunnel it over SSH. Both bill by the hour from a prepaid balance, and both have the same trap: the notebook you leave open overnight, billing every hour while you sleep.

## Route 1: the JupyterLab app

The fastest path. JupyterLab with PyTorch and CUDA, ready when the machine is.

1. Click Rent on a machine in the [console](/console/) and pick **JupyterLab** under Apps that open in your browser, in the image list.
2. When the machine is ready, press **Open** on its page.
3. Log in as `arrakis` with the password the console shows. That password is made for that machine and never reused.

The page is HTTPS, served by the machine itself. Your browser will warn about the certificate the first time, because the machine makes its own; the connection is still encrypted. Accept it once and carry on.

SSH works on the app exactly as on any rental, so a terminal is always one command away:

```sh
ssh root@<host> -p <port>
```

From the API or an agent, the app is an image like any other: list the images (`GET /v1/templates`, or `list_images` over MCP) and pass its id as `template_id` when you rent.

## Route 2: ssh -L on any machine

Already renting a machine with the default PyTorch image, or your own? Run Jupyter there and reach it through an SSH tunnel. Nothing listens on the internet; only your laptop can open it.

On the machine, inside tmux so it survives a dropped connection:

```sh
ssh root@<host> -p <port>
pip install jupyterlab
tmux new -s lab
cd /workspace && jupyter lab --no-browser --allow-root --ip=127.0.0.1 --port=8888
```

Jupyter prints a URL with a token. Detach from tmux with Ctrl-b then d. On your laptop, open the tunnel and leave it running:

```sh
ssh -N -L 8888:localhost:8888 root@<host> -p <port>
```

Now open `http://localhost:8888/lab?token=...` with the token Jupyter printed. `--allow-root` is there because you are root on a rented machine; `--ip=127.0.0.1` keeps Jupyter reachable only through the tunnel.

Prefer typing `ssh my-gpu`? Copy the SSH config entry from the machine's page into `~/.ssh/config`, then the tunnel is `ssh -N -L 8888:localhost:8888 my-gpu`. Several laptops or teammates? Each gets their own key: [SSH keys for a GPU server](/blog/ssh-keys-gpu-server.html.md).

## Which route

| | JupyterLab app | ssh -L |
|---|---|---|
| Setup | Pick the image, press Open | Install, start, tunnel |
| Login | `arrakis` and a per-machine password | Jupyter's token over your SSH key |
| Reachable from | The browser, over HTTPS | Only through your tunnel |
| Image | The JupyterLab app | Any image you like |
| Best for | Starting fast, no terminal needed | Your own image, your own Jupyter setup |

Want an editor instead of notebooks? The same app list has VS Code in the browser. The whole set is in ready-to-use GPU apps.

## Which GPU for notebooks

Notebooks are exploration: load a model, poke at it, plot something. Size the GPU for the biggest thing you will load, not the biggest thing you can imagine.

| You are working with | GPU | Memory | Lowest price per GPU-hour now |
|---|---|---|---|
| Small models, data work, Qwen3.8-27B in 4-bit (17 GB) | [RTX 4090](/gpus/rtx-4090.html.md) | 24 GB | [the live price](/gpus/rtx-4090.html.md) |
| The same, with room for long prompts and bigger batches | [RTX 5090](/gpus/rtx-5090.html.md) | 32 GB | [the live price](/gpus/rtx-5090.html.md) |
| Qwen3.8-27B in 8-bit (33 GB) | [L40S](/gpus/l40s.html.md) | 48 GB | [the live price](/gpus/l40s.html.md) |
| Gemma 4 31B in 16-bit (75 GB) | [H100](/gpus/h100.html.md) | 80 GB | [the live price](/gpus/h100.html.md) |

Memory figures are from our per-model facts. The [GPU memory guide](/guides/gpu-memory.html.md) turns any model's size into the memory it needs.

## First cell: check the GPU

Before you load anything big, make sure the kernel sees the card and how much of it is free:

```python
import torch
print(torch.cuda.is_available(), torch.cuda.get_device_name(0))
print(torch.cuda.mem_get_info())   # free and total bytes on the GPU
```

If the first line prints False, the kernel is not running the Python that has PyTorch with CUDA. On your own image, install JupyterLab with the same pip that installed PyTorch, then restart it. `!nvidia-smi` in a cell shows the same card from the driver's side.

## Stop paying for thinking time

A notebook session is mostly you reading, thinking and typing. The GPU bills the whole time. Three habits keep that in check:

- **Set a removal time when you rent.** The Rent sheet takes 1 hour to 3 days. Pick your session plus a margin, and the machine removes itself even if you forget.
- **Stop it when you stop.** Each started hour is charged in full, and the first hour is charged when the machine starts running. Stop now ends it at once; Stop later picks a time.
- **Know the meter before lunch.** A long break with the machine up is billed hours. Save, push, stop, rent again after; a new machine is usually ready to connect in 1 to 3 minutes.

## Keep your work when the machine goes

Everything on the machine's disk, `/workspace` included, is deleted when it stops. Notebooks are files, so treat them like files:

- **A volume at `/mnt`** outlives the machine and comes back on the next one. It is billed per GB-month of data held, and an empty one costs nothing. Copy datasets you read over and over to `/workspace` once (`cp -r /mnt/datasets /workspace/`): local disk is faster than network storage. Details: [Volumes](/docs/volumes.html.md).
- **Git** for the notebooks themselves: commit and push before you stop.

A volume makes the lunch-break habit painless. Save to `/mnt`, stop the machine, and after lunch rent a machine that takes a volume and attach the same one: notebooks, data and results are where you left them. Two cautions. One volume can be mounted on several machines at once and the last write wins, so two people with the same notebook open on two machines overwrite each other; give each person a folder. And leave public model weights off it: download them from Hugging Face to `/workspace` on each machine, and keep the volume for what only you have. The full pattern: [persistent storage for cloud GPUs](/blog/gpu-volumes-persistent-storage.html.md).

Secrets stay out of notebooks you save. On the ssh -L route, export them in the shell before you start Jupyter (`export HF_TOKEN=...`, as the [images docs](/docs/images.html.md) suggest for any secret) and every kernel inherits them. And remember that machines run on independent hosts who can see what runs on them: keep regulated data off.

## Open a notebook on a GPU in two minutes

Rent with the JupyterLab image and press Open, or tunnel into any machine you already have. [Find a GPU in the console](/console/#/gpus).

New here? Use code [FIRST25](/console/?code=FIRST25) for $25 off your first deposit of $50 or more, until 31 December 2026.

## Rent the GPUs in this post

- [RTX 4090](/gpus/rtx-4090.html.md): [the live price](/gpus/rtx-4090.html.md) per GPU-hour now; rent in the console (/console/#/gpus?gpu_type=RTX 4090) or with the MCP tool rent_gpu.
- [RTX 5090](/gpus/rtx-5090.html.md): [the live price](/gpus/rtx-5090.html.md) per GPU-hour now; rent in the console (/console/#/gpus?gpu_type=RTX 5090) or with the MCP tool rent_gpu.
- [L40S](/gpus/l40s.html.md): [the live price](/gpus/l40s.html.md) per GPU-hour now; rent in the console (/console/#/gpus?gpu_type=L40S) or with the MCP tool rent_gpu.
- [H100](/gpus/h100.html.md): [the live price](/gpus/h100.html.md) per GPU-hour now; rent in the console (/console/#/gpus?gpu_type=H100) or with the MCP tool rent_gpu.

## Questions

**How do I open JupyterLab on a rented GPU?** Rent the machine with the JupyterLab image, then press Open on its page in the console. It opens an HTTPS page on the machine; log in as arrakis with the password the console shows for that machine.

**Why does my browser warn about the certificate?** The machine makes its own certificate, so the browser warns the first time you open it. The connection is still encrypted.

**Can I run Jupyter on a machine without the app?** Yes. Install JupyterLab over SSH, start it on the machine listening on localhost, and forward its port with ssh -L 8888:localhost:8888 to open it on your laptop.

**What happens to my notebooks when the machine stops?** The machine's disk is deleted. Keep notebooks on a volume at /mnt, which outlives the machine, or push them to git before you stop.

## More from the blog

- [How Much GPU Memory Do I Need? The Plain-English Answer](/blog/how-much-gpu-memory-beginners.html.md): How much GPU memory do I need? Multiply the model's billions of parameters by 2.4, 1.2 or 0.6 GB, then rent the cheapest GPU that holds the result.
- [FLUX.2 GPU Guide: Image Generation as Your Own Endpoint](/blog/flux-2-qwen-image-gpu.html.md): FLUX.2 GPU needs: FLUX.2-klein-9B takes about 42 GB, one L40S; Qwen-Image 70 GB, one A100. Deploy either on vLLM-Omni and pay by the hour, not per image.
- [GPU price per GB: the metric that matters, from live prices](/blog/gpu-price-per-gb-memory.html.md): GPU price per GB of memory, from live hourly prices: the formula, a table for ten GPUs, break-even ratios, a one-line script, and when the metric misleads.

Every post: [/blog](/blog.html.md). RSS: [/blog/feed.xml](/blog/feed.xml).
