---
title: "Jupyter notebook"
description: "Drive a running topology from a notebook with buttons and plots"
source: https://developer.remotivelabs.com/docs/get-started/examples/jupyter
last_updated: 2026-11-24
---

# Jupyter notebook

- Goal: Visualize
- From: [RemotiveCar v0.9.0](https://github.com/remotivelabs/remotivelabs-remotive-car/tree/v0.9.0)
- Protocols: CAN
- Vehicle domains: Lighting

## Run it

```bash
git clone https://github.com/remotivelabs/remotivelabs-remotive-car.git
cd remotivelabs-remotive-car

remotive topology build \
  -f instances/hello_world/main.instance.yaml \
  -f settings/can_over_udp.settings.instance.yaml \
  build

docker compose -f build/remotive_car_hello_world/docker-compose.yml --profile jupyter up --build
```

Open http://localhost:8888 and run the notebook.

Using RemotiveTopology framework from Jupyter notebook allows you to interact with a running instance and easily create custom user interfaces.

- Part of the [RemotiveCar example](https://github.com/remotivelabs/remotivelabs-remotive-car/blob/v0.9.0/DOCS.md)
- Example notebook [car.ipynb](https://github.com/remotivelabs/remotivelabs-remotive-car/blob/v0.9.0/common/jupyter/car.ipynb)
- Control how to run [jupyter.instance.yaml](https://github.com/remotivelabs/remotivelabs-remotive-car/blob/v0.9.0/common/jupyter/jupyter.instance.yaml)
- Python project: [pyproject.toml](https://github.com/remotivelabs/remotivelabs-remotive-car/blob/v0.9.0/common/jupyter/pyproject.toml)

Start topology and jupyter:

```bash
remotive topology build ...
docker compose -f ... --profile jupyter up
```

Example with `hello_world` instance:

```bash
remotive topology build -f instances/hello_world/main.instance.yaml build
docker compose -f build/remotive_car_hello_world/docker-compose.yml --profile jupyter up --build
```

Notice:
- Jupyter is run in a container as part of the topology.
- By using a profile you can use the same instance and use the profile to control if Jupyter should run or not.
- In this example the same Dockerfile is used for all python code in order to reuse the same base image. You can of course use separate Dockerfile for each container.

## Where it lives in the repo

- [common/jupyter/car.ipynb](https://github.com/remotivelabs/remotivelabs-remotive-car/blob/v0.9.0/common/jupyter/car.ipynb)
- [common/jupyter/jupyter.instance.yaml](https://github.com/remotivelabs/remotivelabs-remotive-car/blob/v0.9.0/common/jupyter/jupyter.instance.yaml)
- [common/jupyter/pyproject.toml](https://github.com/remotivelabs/remotivelabs-remotive-car/blob/v0.9.0/common/jupyter/pyproject.toml)

[Read this use case on GitHub](https://github.com/remotivelabs/remotivelabs-remotive-car/blob/v0.9.0/usecases/JUPYTER.md)

## Works well with

- [Python behavioral models](https://developer.remotivelabs.com/docs/get-started/examples/python-models.md): Model ECUs that don't exist yet, in a few lines of Python
- [3D visualization](https://developer.remotivelabs.com/docs/get-started/examples/3d-visualization.md): The car reacts to live signals in the browser
