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 labOpen 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¶
| Environment | Holds |
|---|---|
jupyterlab | JupyterLab 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-ai | the same, with Jupyter AI 3 instead of JupyterGIS |
viz | GeoStack 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¶
| Data | Viewer |
|---|---|
| Vectors, millions of features (GeoParquet, FlatGeobuf) | DuckDB or GeoPandas → lonboard |
| A COG | lonboard RasterLayer.from_geotiff (async-geotiff, no GDAL, no tile server) |
| A STAC search | odc-stac → xarray → hvplot; leafmap with your own TiTiler for private data |
| A Zarr or Icechunk cube | hvplot (rasterize=True), or JupyterGIS with jupyter-tiler |
| A cube to share as a web map | topozarr → multiscale GeoZarr → JupyterGIS / zarr-layer |
Things to know¶
Widgets come in two halves. The browser half is in
jupyterlab, the Python half in the kernel. If their versions drift apart, the cell shows “Error displaying widget”. Keep the majors of ipywidgets, jupyter_leaflet / ipyleaflet, pyviz_comms / holoviews and jupytergis in step. lonboard and anymap-ts are anywidgets and send their JavaScript from the kernel, so they only needanywidgetin the server.LSP runs in the server, so it does not see the kernel’s packages until you point jedi at the kernel’s Python (Settings → Language Servers):
{"pylsp": {"serverSettings": { "pylsp.plugins.jedi.environment": ".pixi/envs/viz/bin/python"}}}Tiles served from a kernel (localtileserver, titiler) reach the browser through jupyter-server-proxy;
vizsetsLOCALTILESERVER_CLIENT_PREFIX=proxy/{port}for that.Private Azure data renders best on the Python side (lonboard COG tiles, titiler in the kernel), where
azure.identitycredentials live. Browser renderers (GeoZarr in JupyterGIS, zarr-layer) fetch data themselves and need CORS and public or SAS URLs.JAX lives in
numerics,geomlandgeomodels, not inviz, so CUDA pins never meet GDAL’s.