Skip to content

Tutorial: from an ODP Workspace to QGIS

Linda Angulo Lopez, 29 November 2026. ODP Academy, Working with Ocean Data on ODP, Module 3: Code, lesson Open your Workspace.

This tutorial takes one notebook from GitHub into an ODP Workspace, checks the Workspace, opens a dataset made in Module 2, and brings its layers into QGIS. It uses my Lab 2 dataset, Wild Coast seafloor and protected areas (Group 21 - Linda): five layers on the Wild Coast of the Eastern Cape, South Africa. Swap in your own dataset ID to follow it with yours.

It takes about 20 minutes. You need (i) an ODP account with Workspace access, (ii) QGIS on your computer for the last step, and (iii) no coding experience.

1. Start a Small Workspace

On ODP, click Workspaces in the top menu, choose Small and click Start. JupyterLab opens in the browser after a minute or two.

Choose Small, not Minimal or JupyterGIS: only Small has the ODP tools installed. If a server from Lab 2 is still running, open File → Hub Control Panel, click Stop My Server, then Start My Server and choose Small.

2. Make a working folder and get the notebook

In the file panel on the left, make a folder (I called mine 2026_11_test) and open it. Then open a new notebook from the Launcher (Python 3), paste this into the first cell and press Shift + Enter:

!wget -O module3_open_workspace.ipynb https://raw.githubusercontent.com/lindangulopez/odp-academy-2026/main/notebooks/module3_open_workspace.ipynb

The ! sends the line to the system shell. Do not start it with cd folder && ... in a notebook cell: there, cd is a notebook command that reads the whole line as one folder name, and fails with No such file or directory. In a Terminal (from the Launcher) both forms work.

You can also download the notebook from GitHub and drag it into the file panel.

Double-click module3_open_workspace.ipynb to open it. Check the kernel name at the top right reads Python 3.

3. Run the notebook, one cell at a time

Click the first cell and press Shift + Enter, then read each result before moving on. The notebook has six steps.

Step 1, is this the Small Workspace? It prints the Python version, CPUs, memory and the versions of odp-sdk, pyarrow, pandas, geopandas and shapely. On Small, odp-sdk shows a version number.

Step 2, sign in. Client() signs in to ODP with no API key: in a Workspace the credentials are set up for you. Never paste a key into a notebook.

Step 3, the dataset. The notebook opens the dataset by its ID, lists its files and asks whether it has a table. Mine had no files and no table, so both answers were empty. To use your own dataset, change DATASET_ID: it is the UUID on the dataset's catalog page.

Step 4, the layers. The five layers the dataset describes are read straight from this repository on GitHub, so nothing has to be uploaded by hand. If you put the GeoJSON files in a layers/ folder next to the notebook, they are read from there instead. A map shows the shelf, the canyons, the 23 protected-area zones and my place off Port St Johns.

Step 5, save for QGIS. The five layers go into one GeoPackage, wild_coast_module3.gpkg, in the same folder as the notebook.

Step 6, optional upload. The last cell attaches the five layers to the dataset on ODP. It is off (UPLOAD = False), because writing to ODP should be a choice, and mine is in review by the HUB Ocean admins. Set it to True when you are ready. Files already attached under the same name are skipped.

Save often (Ctrl + S). A Workspace stops after about an hour without activity; your files stay, so start it again and reopen the notebook.

4. Open the layers in QGIS

In the file panel, right-click wild_coast_module3.gpkg and choose Download. In QGIS, drag the file onto the map: QGIS asks which layers to add, choose all five. Put my_place on top, with no fill and a bright outline, so it stands out from the canyons.

QGIS: the Wild Coast shelf, canyons and protected areas, with my place off Port St Johns in red Data: Seafloor Geomorphic Features Map, GRID-Arendal (CC BY 4.0), Harris et al. 2014, Marine Geology 352: 4-24; ProtectedSeas Navigator V2 (CC BY 4.0); both via the Ocean Data Platform.

The two canyons inside my place cut the shelf within 8 km of shore, just south of the Pondoland MPA.

When it goes wrong

What you see Why What to do
Workspaces opens the Access Request page Access not granted yet Send the request, then ask in Discussions or Slack
ModuleNotFoundError: No module named 'odp' The server is not Small (JupyterGIS or Minimal), so the SDK is missing Hub Control Panel → Stop My Server → Start My Server → Small. Do not pip install odp-sdk: the course warns it can break the Workspace
Step 2 says the ODP SDK is not installed, steps 3 and 6 say Skipped Same as above; the notebook carries on without ODP Steps 4 and 5 still work. Restart as Small for the rest
No such file or directory: '/home/jovyan/... && wget ...' cd with && in a notebook cell Use !wget ... alone, or run the line in a Terminal
The notebook stopped responding The Workspace stopped after an hour idle Start it again and reopen the notebook

I met three of these myself on 29 November: the access wait, cd in a cell, and a server with no odp-sdk. If you are stuck, post in Discussions or the Slack channel with the language, the notebook step and the error.

What this shows

One notebook, versioned on GitHub, runs in a cloud Workspace next to the data and ends on a file any GIS can open. The weak point is the environment: the same notebook fails if the SDK is missing, and nothing in the notebook can fix that. Pinning what a Workspace contains is as much part of a reproducible analysis as the code.

Which part of your own Lab 2 place would you want to check from code first?