Skip to main content

Components

Notebooks

Jupyter notebooks the agent writes for analysis that outgrows the chat.

For analysis that outgrows the chat, the assistant can write a Jupyter notebook for you to run in EDITO Datalab. It offers one for work like combining several Copernicus variables, extracting regional time series, running statistics, making custom plots, or setting Copernicus data against catch data or a food-web model run.

Write a notebook that correlates anchovy catch in the Mediterranean with sea surface temperature.

How it's built

The parts of the notebook that load data come from fixed, tested templates. The assistant writes only the analysis. It can load data only from approved sources, so it never invents a dataset or a URL:

SourceWhat you get
Copernicus MarinePhysics and biogeochemistry products, for the area and dates you asked about
Sea Around Us catchAn annual catch series for a species
Food-web model runThe results of an Ecopath run on EDITO

It can only use an approved list of Python packages, covering data (xarray, pandas, Zarr), statistics (SciPy, statsmodels, scikit-learn, trend and change-point tests), plotting (Matplotlib, seaborn, cmocean, Cartopy) and geospatial work (GeoPandas, Shapely, regionmask). The first cell installs anything EDITO Datalab doesn't already have.

Testing

Before you get the notebook, GeoMachine runs its analysis cells against made-up test data with the same names, shapes and dates as the real data. If a cell fails, the error goes back to the assistant to fix, up to three times. The notebook shows one of these results:

  • Ran cleanly on test data. The cells ran, which isn't the same as the science being right.
  • Still fails on test data. With the error, so you know what to look at.
  • Not tested. The test service was unavailable, so the notebook was checked by reading it instead.

Testing can't check that the real data covers your area and dates, or that the analysis is scientifically sound. The notebook asks for significance tests and a section on caveats to help you judge.

Getting the notebook

The notebook appears as a card in the chat with Download .ipynb and Save to workspace buttons. If a workspace is open, it's saved there automatically. On the Assets tab you can read its cells, copy any of them and download it again.

Running it in EDITO Datalab

Open EDITO Datalab, start a Python service, upload the notebook and run it from the top.

  • Copernicus Marine data. Set COPERNICUSMARINE_SERVICE_USERNAME and COPERNICUSMARINE_SERVICE_PASSWORD in your service, or the notebook asks for them when it runs.
  • Food-web runs. The notebook launches the model on EDITO under your account (with EDITO_USERNAME and EDITO_PASSWORD, or EDITO_ACCESS_TOKEN) and writes the results to your own storage. This takes a minute or two.