SignalK Data Lab
SignalK Data Lab
This plugin offers a variety of Data Notebooks, using Marimo and Python. Notebooks run entirely in the browser, using WebAssembly (WASM) to keep the server load minimal and best suited to Raspberry Pi, NanoPi etc servers.
It comes with several experiments, working notebooks that use different ways to pull selected paths out of the SignalK History API and demonstration of how the data can be tabluated, charted or otherwise analyzed.

Quick Start
- Install from the SignalK App Store
- Launch the Data Lab from the Webapps link on SignalK main menu
The page then moves itself to the plugin’s own address, /plugins/signalk-datalab-plugin/ui, where Data Lab can send the headers that let notebooks start quickly (see HTTPS or HTTP). On SignalK server 2.31 or later this works for any logged-in user, including read-only ones; on older servers only admins can use that address, and everyone else stays on the Webapps one, which works but starts more slowly.
You’ll need a History Provider running to capture the SignalK data, such as signalk-parquet, signalk-to-influxdb2 or signalk-questdb. If you have Kip set up as a plotter, it can also act as a history provider. Without one of these, there’s nothing to be queried for data, only raw data files.
HTTPS or HTTP
The notebooks run Python in the browser in a background worker. To stop a cell while it’s running, marimo needs memory shared with that worker, which the browser only allows when the page is in cross-origin isolation. Data Lab sends the headers that ask for it (Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy), but browsers only honour them on a secure address: https://..., or http://localhost.
On a plain http address, such as http://10.0.0.5 or http://openplotter.local:3000, the browser ignores those headers. The notebooks work the same, except that a running cell can’t be interrupted, and the browser console shows “interrupts are not available”.
The first visit to a notebook is slow whichever address you use: the browser downloads Python and the notebook’s packages (about 28 MB for DuckDB and its dependencies) from the internet, then keeps them for next time.
To check, open the browser’s developer console on a Data Lab page and type crossOriginIsolated. true means interrupts are available.
Ways to get it:
- Switch on
sslin the SignalK server settings. SignalK then serveshttpswith a self-signed certificate, and redirectshttplinks to it. Each device shows a certificate warning, which you accept once, until you set up a proper certificate. This works for every browser. - Chrome or Edge on a single device: in
chrome://flags/#unsafely-treat-insecure-origin-as-secure, add the server’s address (e.g.http://10.0.0.5) and relaunch the browser. This affects only that browser, and has no equivalent in Safari. - Use the browser on the server itself, via
http://localhost.
Learning about Notebooks
If you’re not familiar with Data Notebooks, try the Marimo Tutorials on YouTube, or the gallery of demonstration notebooks.
If you’re familiar with Jupyter, you’ll feel at home, although Marimo Notebooks are nicer, with dependency aware cells like Excel. They are also pure Python scripts under the hood, so easier to edit, refactor or execute from command line.
Simulating Data
SignalK has several simulator plugins that will generate navigation, environment and similar data. Its also easy to source real live weather data using plugins.
For testing, we recommend SKsim, installed from the App Store. It sends a live stream of position, speed, engine, depth and similar data, which a history provider records as it arrives, so the notebooks get history to work with. Start it from its Web Apps page. It can also follow a GPX track at the pace you set, such as the demo passage from the Geospatial Passage notebook’s Download GPX.
Experimental Notebooks
Pure Polars
The Analyze with Polars Dataframes notebook uses Polars (a modern Rust based iteration on pandas) to do all of the SignalK API integration and data manipulation.
Integrate with Ibis Framework
The SignalK Paths in Data Explorer with Ibis notebook, linked from the top of Data Lab, connects Ibis to the History API when it opens. You can then query SignalK data with Ibis expressions and browse it in marimo’s data browser. It takes a few seconds to load the first time.
It also shows what makes Ibis useful here:
- From Ibis expression to History API request: pick a path, a time bucket and a statistic, and see the Ibis expression, the History API request it compiles to, and the result. The SignalK server works out the summary, so only one row per bucket crosses the network.
- Which instruments reported, and when: a heatmap of every path in the chosen namespaces against time, so you can see when a sensor or its connection dropped out, with a warning for any that have gone quiet.

Performance Polars
The Performance Polars notebook builds a polar diagram from your own sailing: boat speed at each true wind angle, for each band of true wind speed, from per-minute summaries the server works out through Ibis. It shows the best angles for VMG upwind and downwind, and downloads the polar as a .pol table for OpenCPN’s weather routing and other routing software. It needs true wind (environment.wind.angleTrueWater and environment.wind.speedTrue, as the derived-data plugin calculates them) and boat speed. Demo data shows a made-up season on a 36 ft cruiser.

Export with signalk-cli
The Analyze and Export with signalk-cli notebook, linked from the top of Data Lab, fetches history into a polars DataFrame with the signalk-cli Python API, and charts how much the boat’s position moved in each 15 minutes. You can also download the data as Feather or CSV, in the same format as the signalk-cli command line tool. Paths can be glob or regex patterns, e.g. navigation.*.

SQL with DuckDB
The SQL with DuckDB notebook fetches history into a signalk_history table and queries it with SQL cells running DuckDB in the browser. Worked examples cover time bucketing, PIVOT, window functions for distance run, and ASOF JOIN to line up sensors that report at different rates. It can also query an uploaded CSV or Parquet file.
Live Stream With signalk-cli
The Live Stream With signalk-cli notebook subscribes to the SignalK delta stream and shows data as it arrives: a chart per path, redrawn every few seconds, and a table of the latest values. It uses the browser’s own WebSocket, since signalk-cli’s streaming client waits for each message in a way that would block the rest of the notebook in the browser. signalk-cli still builds the subscription and reads the messages. Only data received while the page is open is shown.
Each notebook’s opening cell lists the limitations of its approach.

Geospatial Passage
The Geospatial Passage notebook turns navigation.position history into a passage log. It splits the track into legs under way and stops at anchor or alongside, with each stop’s swing circle, and maps them over OpenStreetMap with OpenSeaMap seamarks. Selecting legs or stops in the tables picks them out on the map. The tables are GeoPandas GeoDataFrames, so marimo’s download button offers GeoJSON and GeoParquet, for QGIS, Google Earth, Felt or geojson.io. There’s also a GPX download for OpenCPN and chart plotters.
Without any history, choose Demo passage for a made-up day on the Firth of Clyde; it’s picked automatically when the server has no history provider.

Add Your Own Notebook
The Add Your Own Notebook explains how to save your own notebooks for reuse, within the more confining environment of client-side only Marimo.
AI Integration
Connecting to Agents from Notebooks
Marimo notebooks have lots of different ways of integrating with AI models, includingIn Editor AI Support and a marimo pair mode.
Marimo’s External agents feature (a Labs feature, turned on in marimo’s User Settings as “External Agents”) can connect a local Claude Code, Codex, Gemini or OpenCode to the notebook in the browser, and doesn’t need its own API Key. It does need a terminal command to start a bridge, so it’s aimed at technical users for now:

This command runs an ACP server, then wires its stdin/stdout to a websocket on a port that an ACP client, such as runs inside Marimo expects. Run it from the plugin’s agent directory, whose CLAUDE.md tells Claude how to find the notebook in the browser and what works there:
cd ~/.signalk/node_modules/@rhizomatics/signalk-datalab-plugin/agentnpx stdio-to-ws "npx @zed-industries/claude-code-acp" --port 3017From a clone of this repo, npm run bridge does the same.
Once that’s run, click on the little robot on the left hand bar, and then on the Agents tab.

The notebook connects to the bridge on the same host name it was loaded from (ws://<host>:3017). If you open Data Lab from another machine, e.g. http://my-boat.local:3000, the bridge has to run on the SignalK server, with Node and a logged-in Claude Code there. The agent can read the notebook open in the browser, but changes it writes there don’t show up in the open notebook, so it gives you the code for each cell to paste in.
For a fuller setup, where the agent edits the notebook file and can see its live outputs using a clone of this git repository, see Developing with an AI agent under Development.
Developing with an AI agent
The notebooks are plain Python files, so any coding agent can edit them. The repo is set up for Claude Code, which can also see the live notebook’s outputs and errors.
-
Start the notebook with its agent connection enabled, pointing at your SignalK server:
Terminal window SIGNALK_URL=http://my-boat.local:3000 npm run agentThis opens the notebook for editing on http://localhost:2718, reloads it whenever the file changes on disk, and serves a marimo MCP server at http://localhost:2718/mcp/server.
-
In another terminal in the repo, start Claude Code with
claude. The MCP server is registered in .mcp.json, so the first time you’ll be asked to approve themarimoserver. Run/mcpto check it’s connected. -
Ask for changes in plain language, e.g. “add a chart of wind speed against boat speed”. Claude edits
notebooks/signalk.py, the browser tab updates, and Claude can read back cell outputs and errors from the running notebook.
Project settings in .claude/ run marimo check after every notebook edit and feed any problems back to Claude. notebooks/CLAUDE.md covers marimo’s rules and what works in the browser (WASM) build.
npm run agent turns off marimo’s access token so the MCP URL stays the same between runs. It only listens on localhost, but don’t run it on a shared machine.
Local Execution
To run the notebook outside of SignalK / webbrowser context, use
uv venv .venvsource .venv/bin/activateuv sync --devmarimo run notebooks/signalk.pymise is recommended for installing node, Python, etc but isn’t a requirement.
To work on both the main notebook and the ibis-signalk dev.py notebook from one marimo server, use
SIGNALK_URL=http://my-boat.local:3000 npm run labmarimo’s home page lists both notebooks, and the environment has the packages each one needs.
Ibis and DuckDB
The ibis-signalk backend runs what it can on the SignalK server and computes simple overall figures (counts, sums, min/max, averages) locally with pyarrow. Queries beyond that, notably the histograms marimo’s data browser draws and any joins, need a local query engine, which comes from the optional DuckDB extra (ibis-signalk[duckdb]).
npm run labandpackages/ibis-signalk’suv runinclude DuckDB (via thedevdependency group), so histograms work there.- The browser notebook installs
ibis-signalkwithout DuckDB, to keep loading fast, so histograms aren’t shown for users running from SignalK unless they installduckdbfrom marimo’s package manager. The backend checks for DuckDB on each query, so that takes effect without reloading. - Without DuckDB, those queries raise
NotImplementedErrornaming the extra. marimo catches these and just leaves the chart out.
See packages/ibis-signalk/README.md for how queries are split between the server and local evaluation.
Every marimo notebook in notebooks/ is included in the WASM build: signalk.py (Analyze with Polars Dataframes) becomes the main Data Lab page (datalab.html), and each other notebook becomes <name>.html alongside it, sharing the same assets. index.html is a gallery with a card per notebook, generated by scripts/build-gallery.js from each notebook’s opening markdown cell (its # heading and first paragraph), so a new notebook appears there automatically. Link between them with relative links, e.g. [SignalK Paths in Data Explorer with Ibis](data_source_explorer.html).
The signalk-cli notebooks install signalk-cli>=3.0.0 in the browser with a plain micropip.install; its metadata leaves out zeroconf (mDNS discovery) under Pyodide. signalk-cli is exempt from the exclude-newer release cooldown, in both uv.toml and packages/ibis-signalk/pyproject.toml (which npm run lab runs under), so new releases of it can be used straight away.
To preview the WASM build in a browser, as SignalK would serve it, use
SIGNALK_URL=http://my-boat.local:3000 npm run previewThis builds public/ and serves it on http://localhost:8080 (override with PORT), proxying /signalk/* API calls to SIGNALK_URL (default http://localhost:3000). Use npm run preview:serve to skip the rebuild.
Other Optional Dependencies
The Marimo settings menu offers a way to load more common packages quickly using uv

Limitations
Libraries with compiled code (polars, DuckDB, pyarrow, numpy, pandas and others) run in the browser only as special emscripten (WebAssembly) builds, which usually trail the desktop releases, sometimes by many months. In September 2026, polars in the browser is 1.33 while desktop is 1.44, and pyarrow is 22 against 25. So the browser can lack newer features, and occasionally has bugs that are long fixed on desktop. Code that works in a desktop notebook may fail in Data Lab, and the reverse. This will ease as more projects publish WebAssembly builds of their own, especially now that PEP783 is accepted. Pure Python libraries aren’t affected.
The Marimo environment by default runs server-side, so this may be an option in future with this plugin, or packaged as a separate plugin. The main up-side of running server-side is not being constrained by using pyodide to run Python in the browser, which means latest versions of polars,duckdb etc are available and fewer gotchas. On the other hand, it means Python installed onto the SignalK server, and tiny pi servers on boats might not like the extra load.
Also Check Out
- signalk-cli - A Python based CLI for extracting data and exploring paths on the SignalK APIs, with output to CSV or Apache Arrow dataframe (Feather). Also useful as a Python API for your own code.
- More SignalK plugins from Rhizomatics including support for eInk shelf labels (including LLM generated images using SignalK data), Bluetti powerbanks, using Teltonika modems as SignalK notifiers, squelching noisy SignalK deltas and more.
- The Boat Tech Directory for the most comprehensive guide on the Internet to boat tech blogs, vendors, open source projects and more.