# Connect with Jupyter

Templates with the **Jupyter** launch mode start a notebook server for you.

## What you need

A server from a Jupyter template, for example one found with the **Notebooks** filter on the template step, with the status **Running**.

## Open the notebook

1. Go to **Servers** and open your server.
2. Select the **Connect** tab, or use the button at the top of the page.
3. Select **Open Jupyter**.

The notebook opens in your browser. The **Open Jupyter** button includes the access token, so you sign in with one click. The server's **Connect** tab also shows the token on its own, hidden until you reveal it, with a copy button. If the notebook asks for a token or a password, paste that token into the login page. Tools can send it as a header instead: `Authorization: token <your token>`.

> [!WARNING]
> Anyone who has the token can run code on your server. Do not share it or paste it into a public place.

## The connection is not encrypted

The notebook address is plain `http`, not `https`: the page, your code and the token travel unencrypted between your browser and the server. This is fine for quick, low-risk work on a trusted network. For anything sensitive, use an SSH tunnel, which encrypts the whole connection:

```bash
ssh -N -L 8888:localhost:8888 -p <ssh port> <user>@<host>
```

The **Connect** tab shows this command already filled in for your server. Keep it running, then open `http://localhost:8888` on your own computer and sign in with the token. This needs an SSH key on the server. See [Connect with SSH](/docs/connect-ssh).

## Check that the GPU is visible

In a notebook cell, run:

```python
import torch
print(torch.cuda.is_available())
```

If this prints `False`, see [Troubleshooting](/docs/troubleshooting).

## Keep your work

The disk is kept when you stop the server, but it is deleted when you destroy it. Copy results you need to a place you control. See [Storage and data](/docs/storage-and-data).

## Use a terminal too

Jupyter offers a terminal. If you also added an SSH key to the server, you can connect with SSH at the same time. See [Connect with SSH](/docs/connect-ssh).

## Common problems

- **No Open Jupyter button:** the server must be running, and the template must use the Jupyter launch mode.
- **The page does not load:** wait a minute after the server starts, then reload. The software may still be starting.
- **Closing the tab does not stop the server.** Stop it in the console. See [Start, stop and restart](/docs/start-stop-restart).
