Skip to main content

JupyterGIS 0.16 brings live maps into the notebook

· Do Minh Tuan · Developer Corner 💻

JupyterGIS 0.16 brings live maps into the notebook

JupyterGIS shipped version 0.16, and the release notes are more interesting than a point release usually is. JupyterGIS is an extension that puts geographic information systems inside Jupyter Notebooks, so you can work with spatial data in the same place you write your Python.

For anyone who has not touched GIS: it is the software category for data tied to locations on the earth. Maps, routes, catchment areas, satellite imagery. Traditionally it means desktop applications with their own file formats and their own learning curve, and the analysis lives apart from the code.

I think putting that inside a notebook is a sensible idea. The map sits next to the dataframe, the chart and the explanation, and a colleague can read the whole thing in one place. Version 0.16 pushes on the parts that make that practical for teams rather than individuals.

Four changes that matter

The first is real-time collaborative editing, and it is the one I would test hardest. Several people can work on the same geospatial project and see each other's changes as they happen, in the way people already collaborate on a shared document. For a team doing site selection or a planning exercise, that is a real change in how the work happens. It also creates the usual collaboration problems: who owns which layer, and what happens when two people move the same point.

The second is scale. The release improves handling of large datasets, including remote sensing data. Remote sensing means imagery collected from satellites or drones rather than measured on the ground, and it tends to arrive as very large rasters. Making that workable inside a notebook is more valuable than it sounds, because the alternative is a separate pipeline that exports small samples for the analyst.

The third is declarative symbology. Instead of styling every feature by hand, you describe the rule: parks as blue polygons, coffee shops as green circles. The tool applies it. This is the kind of feature that looks cosmetic and is actually about reproducibility, because the styling lives in the notebook as text rather than in someone's clicks.

The fourth is R compatibility. I did not expect that one. R is the other major language for statistics, and a lot of spatial analysis is written in it. Supporting R opens the tool to a group that would otherwise ignore it, and it signals that the project is thinking beyond one community.

That last one changes who can join a project, which sounds soft and is not. Think of the statistician who does not use Python daily. If the tool only speaks Python, that person exports a shapefile and works somewhere else, and the notebook becomes a picture of work done elsewhere.

What I would watch

Collaboration inside a notebook is a nice demo and a hard product. Notebooks are files, and files do not merge well. Two people editing the same notebook produce a conflict that git cannot resolve sensibly, which is why I would keep notebooks small and put logic in modules.

So the honest question is whether real-time editing replaces version control or sits on top of it. If it sits on top, teams still need a strategy for what gets committed. If it replaces it, they lose history, and history is how you explain why a map looks the way it does.

The practical answer is to do both. Keep notebooks in git if you are not already, commit in small steps, and use a diff tool built for notebooks rather than raw text. nbdime is the one I would reach for, because it understands cells and outputs instead of treating the file as lines. Real-time editing is useful for a working session. Git is what you have six months later when someone asks why a boundary changed.

Who this is for

If you already have a GIS team with desktop tooling and a defined workflow, this is not going to replace it. The extension is not trying to be a full desktop GIS, and pretending otherwise would be unfair.

It is for the analyst who has Python and a location question and does not want to learn a new application. It is for the small team that needs a map in a report and cannot justify a licence. And it is for the data scientist who wants the map to live with the analysis instead of being exported to a slide.

That last case is where I think the value is highest. A static map in a deck is a claim. A map in a notebook next to the query that produced it is evidence. The difference matters when someone asks how you got the number.

A caveat about notebooks in production

I would not schedule a JupyterGIS notebook as a production job. Notebooks are wonderful for exploration and poor for operations, because the state is hidden and the execution order is not guaranteed. Use the notebook to work out the method, then move the method into a script or a small service when it needs to run on a schedule.

I would draw that boundary for a team early, because it prevents the classic problem of a notebook that only runs on one laptop in one order.

What I would want next is a clear story about very large rasters in a browser context. The release improves scale, and at some point the limit is the machine viewing the map rather than the data behind it. Whoever solves that cleanly will own a lot of this market.

Written with AI assistance, reviewed and edited by Do Minh Tuan.