Notebook sessions
Start, use, and stop your notebook server.
Notebooks gives you a private Python server next to the lakehouse. This page covers starting it, what it comes with, and when it stops; querying data covers what to do once you are inside.
Prerequisite
You need the Use notebooks app permission, which Notebooks checks when you sign in to it. See when a permission change applies and the permissions reference.
Open your notebook server
Open Notebooks from the portal. If your server is not running, Databaas starts one for you, which can take a minute; JupyterLab opens when it is ready. The server is yours alone: nobody else runs code in it or sees your home folder.
What is installed
Everything you need for the lakehouse is already in the environment, with nothing to install:
| Package | Use it for |
|---|---|
databaas-utils | Your catalog, tokens and file stores, under your own login — see querying data |
pyiceberg (with pyarrow and s3fs) | Reading and writing Iceberg tables |
duckdb, duckdb-engine, sqlalchemy | SQL over data in your session |
pandas, polars, pyarrow | DataFrames and Arrow tables |
altair | Charts |
zarr, obstore | Arrays and files — see files, blobs and Zarr arrays |
pylakekeeper | The catalog’s own client |
marimo | Reactive notebooks |
jupyterlab-git | The Git panel — see working with Git |
The notebook helpers live in databaas_utils.user; help(databaas_utils.user) prints their full
documentation, as does the databaas-utils documentation.
Choose Jupyter or marimo
Both run Python and reach the lakehouse through the same helpers, and both have a tile in the JupyterLab launcher:
- A Jupyter notebook (
.ipynb) in JupyterLab, which opens by default. See the JupyterLab documentation. - A marimo notebook, reactive: cells re-run when their inputs change. It is stored as a plain
.pyfile, so it diffs cleanly in git. See the marimo documentation.
Resources
By default each notebook server is guaranteed 1 GB of memory and can use up to 4 GB, and is guaranteed 0.25 CPU and can burst up to 2 CPUs. Everything you load into a DataFrame counts against that memory, so narrow a scan before you load it — see querying data. If you need more, ask your platform administrator.
Idle servers stop after an hour
A server with no activity for 1 hour is stopped automatically. Databaas checks every 10 minutes, so this happens between 60 and 70 minutes after your last activity. When it happens:
- Your kernels stop, so variables and loaded DataFrames are gone. Re-run your notebook to get them back.
/tmpis cleared. Your home folder and the shared folder are kept.- An editor connected from your laptop loses its connection. See connect from VS Code or another IDE.
Open Notebooks again to start a fresh server.
Stop and restart
Your files persist when the server stops, so stopping is safe — see notebook storage. Stop it explicitly from the JupyterHub control panel (File → Hub Control Panel → Stop My Server); reopening Notebooks starts a fresh server. Restart if a session gets into a bad state — a stuck kernel or memory that has run out.
When a permission change applies
Notebooks reads Use notebooks only when you sign in to it, so a new grant applies at your next sign-in, and a revoked one only once you sign out. Data grants are checked on every query, so they work in a running notebook straight away. See when a change takes effect.