Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

JupyterLab and the viz environment

One JupyterLab server holds the editor; every other environment in the workspace can be its kernel. The server never imports the stack, and the stack never carries JupyterLab.

 pixi run -e jupyterlab lab
 ┌──────────────────────────────┐
 │ jupyterlab                   │
 │  server + IDE extensions     │
 │  browser halves of widgets   │
 │  jupyter-server-proxy        │
 │  pixi-kernel                 │
 └──────────────┬───────────────┘
                │ starts the kernel through pixi
                ▼
 ┌──────────────────────────────┐
 │ kernel environments          │
 │  default    GeoStack         │
 │  viz        + Zarr/COG/vector│
 │  numerics   + GeoNumerics    │
 │  geoml      + GeoML          │
 │  geomodels  + GeoModels      │
 └──────────────────────────────┘

Install and start

pixi install -e jupyterlab        # the server
pixi install -e viz               # a kernel (or default, numerics, geoml, geomodels)
pixi run -e jupyterlab lab

Open a notebook, choose the Pixi kernel, then pick the environment in the notebook’s property inspector (right sidebar) and restart the kernel. pixi-kernel finds pixi.toml from the notebook’s folder, so this works for any notebook inside the repository. Because the kernel starts through pixi, the environment is activated (GDAL_DATA, PROJ_DATA, the viz activation variables); a kernelspec made with ipykernel install skips that.

jupyterlab-ai is the same server with Jupyter AI in place of JupyterGIS (pixi run -e jupyterlab-ai lab). The two use different real-time document engines, so they are not installed together.

The environments

EnvironmentHolds
jupyterlabJupyterLab 4.6+, pixi-kernel, LSP (python-lsp-server, ruff), code formatter, git and nbdime, jupytext, MyST, unfold file tree, execute time, resource usage, variable inspector, spreadsheet editor, spellchecker, JupyterGIS, VS Code in a tab (code-server, Linux only)
jupyterlab-aithe same, with Jupyter AI 3 instead of JupyterGIS
vizGeoStack plus: obstore, azure-identity, adlfs; xarray, zarr 3, icechunk 2, VirtualiZarr, dask, rioxarray, odc-stac, pystac-client, xvec, xdggs; libgdal 3.13, pyogrio, async-geotiff; geoarrow-pyarrow, DuckDB; lonboard, JupyterGIS, leafmap, anymap-ts, localtileserver, hvplot, datashader, geoviews, pmtiles; titiler-xarray, lazycogs, topozarr

viz has a solve group of its own, so its pins never move the default GeoStack solve. Every kernel environment carries the kernel feature (ipykernel, ipywidgets, anywidget).

Which viewer for which data

DataViewer
Vectors, millions of features (GeoParquet, FlatGeobuf)DuckDB or GeoPandas → lonboard
A COGlonboard RasterLayer.from_geotiff (async-geotiff, no GDAL, no tile server)
A STAC searchodc-stac → xarray → hvplot; leafmap with your own TiTiler for private data
A Zarr or Icechunk cubehvplot (rasterize=True), or JupyterGIS with jupyter-tiler
A cube to share as a web maptopozarr → multiscale GeoZarr → JupyterGIS / zarr-layer

Things to know