# Run RAPIDS cuDF and cuML in JupyterLab on one NVIDIA L4 GPU

To run RAPIDS cuDF and cuML in JupyterLab, load cudf.pandas or cuml.accel before your pandas and scikit-learn imports; on NVIDIA Brev, the RAPIDS Data Science with cuDF and cuML Launchable runs NVIDIA RAPIDS 26.10 in JupyterLab on one NVIDIA L4 24GB GPU.

Updated: 2026-12-03

Published: 2026-11-22

## What does the RAPIDS Data Science Launchable run?

The Launchable runs JupyterLab on the RAPIDS 26.10 notebooks image with cuDF, cuDF-Polars, cuML, cuGraph, Dask-CUDA and XGBoost built for CUDA. A Launchable is a reproducible, shareable environment configuration on NVIDIA Brev: GPU, disk, container setup and ports in one link. The [RAPIDS Data Science Launchable page](https://www.9owls.com/launchables/rapids-datascience/) has the deploy button; the [data science topic](https://www.9owls.com/topics/data-science/) lists it with related pages.

Pins as of 2026-11-15, the date of the last fresh-deploy smoke.

| Component | Pinned version | Licence |
|---|---|---|
| NVIDIA RAPIDS (cuDF, cuDF-Polars, cuML, cuGraph, Dask-CUDA) | 26.10, image `rapidsai/notebooks:26.10-cuda12-py3.12`, pinned by tag and digest | Apache-2.0 |
| XGBoost (CUDA build) | 3.4.2 | Apache-2.0 |
| JupyterLab | as shipped in the RAPIDS image above | BSD-3-Clause |

Polars is licensed under MIT; pandas, scikit-learn and Dask are licensed under BSD-3-Clause. JupyterLab listens on port `8888` behind the authenticated Brev link. The Dask dashboard is on port `8787`.

## How do I run pandas code on the GPU with cuDF?

Load the cudf.pandas extension before you import pandas; your pandas code then runs on the GPU where cuDF supports the operation. The cuDF documentation describes this accelerator mode as zero code change.

1. In a notebook cell, run `%load_ext cudf.pandas` before any other import.
2. Run `import pandas as pd` and your existing pandas code.
3. For a script, run `python -m cudf.pandas script.py`.
4. Operations cuDF does not support fall back to pandas on the CPU, per the cuDF documentation.
5. For Polars, pass `engine="gpu"` to `.collect()` on a lazy query; Polars documents its GPU engine, built on RAPIDS cuDF, as open beta and falls back to the CPU engine for unsupported queries.

## How do I train a model with cuML or XGBoost?

Load cuml.accel before you import scikit-learn, or set `device="cuda"` in XGBoost; both train on the GPU without a rewrite of your model code.

- cuML: run `%load_ext cuml.accel` before other imports in a notebook, or `python -m cuml.accel script.py` for a script.
- cuml.accel runs supported scikit-learn, UMAP and HDBSCAN workloads on the GPU and falls back to the CPU for the rest, per the cuML documentation.
- XGBoost: set `device="cuda"` and `tree_method="hist"` in the training parameters, per the XGBoost GPU documentation.
- The Launchable ships XGBoost 3.4.2 in its CUDA build.
- The public source folder has walkthroughs in its `docs/` folder: `cudf-pandas.md`, `cuml-accel.md`, `xgboost-gpu.md` and `time-series-finance.md`, plus one for the Polars GPU engine.

## Which GPU, disk and price does it use?

The Launchable uses one NVIDIA L4 24GB on GCP `g2-standard-8` with 64 GiB of disk, at about $1.02/hr (Brev console, 2026-11-15).

| Item | Value |
|---|---|
| GPU | 1x NVIDIA L4 24GB |
| Instance type | GCP `g2-standard-8` |
| Disk | 64 GiB |
| Price | about $1.02/hr (Brev console, 2026-11-15) |
| Last fresh-deploy smoke | 2026-11-15 |
| Launchable ID | `env-3M8aZ3FqwckUgj9tV7qQc9B3vVG` |

## RAPIDS notebooks or the RAPIDS data science agent: which fits?

Use this Launchable when you write the notebooks yourself; use the RAPIDS Data Science Agent with Hermes when you want an agent to write and run them. The [GPU data science agent guide](https://www.9owls.com/guides/run-a-gpu-data-science-agent-with-hermes-and-rapids/) covers the agent. The two prices below are separate console reads for two different GPU types, each with its own date.

| Item | RAPIDS Data Science with cuDF and cuML | RAPIDS Data Science Agent with Hermes |
|---|---|---|
| Who writes the code | You, in JupyterLab | Hermes Agent, with you reviewing |
| Model | None | NVIDIA Nemotron 3.5 Lightning, served by vLLM on the instance |
| GPU | 1x NVIDIA L4 24GB | 1x NVIDIA L40S 48GB |
| Instance type | GCP `g2-standard-8` | AWS `g6e.xlarge` |
| Disk | 64 GiB | 200 GiB |
| Price | about $1.02/hr (Brev console, 2026-11-15) | about $2.26/hr (Brev console, 2026-11-19) |

## How do I deploy it on NVIDIA Brev?

You deploy it from its deploy link and open JupyterLab with the token stored on the instance.

1. Open the [deploy page](https://brev.nvidia.com/launchable/deploy?launchableID=env-3M8aZ3FqwckUgj9tV7qQc9B3vVG) on NVIDIA Brev.
2. Follow [how to deploy a Launchable on NVIDIA Brev](https://www.9owls.com/guides/deploy-a-launchable-on-nvidia-brev/) and wait until the instance is running.
3. Read the JupyterLab token: run `brev shell INSTANCE_NAME`, then `sudo cat /home/ubuntu/workspace/rapids/.jupyter-token`.
4. Open JupyterLab through the authenticated Brev link on port `8888`.
5. New to Launchables? Read [what is a Brev Launchable?](https://www.9owls.com/guides/what-is-a-brev-launchable/).

## What happens when I stop or delete the instance?

Stop keeps everything under `/home/ubuntu/workspace/rapids`; Delete removes the instance and all of its data. Read [stop, start and delete an NVIDIA Brev instance](https://www.9owls.com/guides/stop-start-and-delete-an-nvidia-brev-instance/) for the console steps and what a stopped instance is billed.

- Save notebooks and data in `/home/ubuntu/workspace/rapids`; that folder survives Stop.
- Files outside the workspace live inside the container and are lost if the container is recreated.
- Start normally recreates the JupyterLab container and keeps your notebooks and token; if JupyterLab does not answer after Start, run `cd /home/ubuntu/workspace && sudo docker compose up -d` (in our test on 2026-11-15, one of two starts needed this command).
- Delete removes the instance and all of its data.

> **Warning:** Delete cannot be undone.

## How does this relate to NightKeeper?

This Launchable is a finished environment you deploy yourself. NightKeeper is a separate 9owls product for your own code: it packages your repository as an NVIDIA Brev Launchable, proves it on a fresh GPU and keeps it running.

- [Read about NightKeeper](https://www.9owls.com/nightkeeper/).
- [Create your Launchable](https://www.9owls.com/nightkeeper/start/).

## Sources: where do these facts come from?

Every fact on this page comes from these sources, read 2026-11-22; the RAPIDS documentation link was re-read on 2026-11-28.

- Launchable public README: https://github.com/ashishsalve/gpu-launchables/blob/main/rapids-datascience/README.md
- Agent Launchable public README: https://github.com/ashishsalve/gpu-launchables/blob/main/rapids-data-science-agent/README.md
- cuDF pandas accelerator mode: https://docs.nvidia.com/cudf/latest/cudf_pandas/
- cuML zero code change acceleration: https://docs.nvidia.com/cuml/latest/cuml-accel/
- Polars GPU support: https://docs.pola.rs/user-guide/gpu-support/
- XGBoost GPU support: https://xgboost.readthedocs.io/en/stable/gpu/index.html
- Launchables concept: https://docs.nvidia.com/brev/latest/concepts/launchables.md
- NVIDIA RAPIDS documentation: https://docs.nvidia.com/datascience/

## What changed on this page?

- 2026-12-03: the Start note now says what our 2026-11-15 start tests showed and gives the recovery command; the JupyterLab row no longer states a version we did not record.
- 2026-11-28: the title now names the task and the GPU, the pins carry an as-of date, and the side-by-side prices say why they differ.

## How was this page made?

9owls publishes this page; it has no personal author.

- Tested facts: the Launchable's fresh-deploy smoke of 2026-11-15 on GCP `g2-standard-8`.
- Upstream facts: the cuDF, cuML, Polars and XGBoost documentation listed above, each with its read date.
- Corrections: tell us through the [contact form](https://www.9owls.com/company/#contact) and we fix the page and its date.

## Related pages

- [RAPIDS Data Science with cuDF and cuML](https://www.9owls.com/launchables/rapids-datascience/)
- [RAPIDS Data Science Agent with Hermes](https://www.9owls.com/launchables/rapids-data-science-agent/)
- [Data science](https://www.9owls.com/topics/data-science/)
- [Run a GPU data science agent with Hermes and RAPIDS](https://www.9owls.com/guides/run-a-gpu-data-science-agent-with-hermes-and-rapids/)
- [How to deploy a Launchable on NVIDIA Brev](https://www.9owls.com/guides/deploy-a-launchable-on-nvidia-brev/)
- [Stop, start and delete an NVIDIA Brev instance](https://www.9owls.com/guides/stop-start-and-delete-an-nvidia-brev-instance/)
- [What is a Brev Launchable?](https://www.9owls.com/guides/what-is-a-brev-launchable/)

[All guides](https://www.9owls.com/guides/)
