How to Control Notebook Compute Costs and Version Drift
Deepnote is a cloud notebook that runs Python, SQL and R against your data warehouse, adds AI suggestions for cells, and lets several people edit the same notebook at once. It connects to Snowflake, BigQuery, Postgres and Redshift out of the box.
The first article here covered collaborative analysis. This one covers the practical mechanics — environment setup, warehouse queries that do not cost a fortune, and making a notebook someone will actually trust a quarter later.
How do you connect a warehouse without leaking data access?
Use Deepnote’s integrations, not hard-coded credentials. Each connection stores credentials server-side and injects them into the notebook environment, so the notebook file itself contains no passwords.
Then decide who sees what. Deepnote projects have workspace roles; notebooks shared publicly run with the viewer’s data permissions in most configurations, but verify this against your own setup rather than assuming.
Rule of thumb: production warehouses get read-only credentials in notebooks. If someone needs to write, that is a separate integration with a separate role, and it should be rare.
Why do your notebook queries cost so much?
Because notebooks encourage SELECT * and repeated exploration against full tables. On a warehouse that bills by scanned bytes, exploratory notebooks are expensive.
Four habits that cut cost significantly:
- Select specific columns, always. Column pruning is the cheapest optimisation in any columnar warehouse.
- Filter on the partition column first; a date filter that hits the partition key can cut scan volume by 90% on a large table.
- Use a sampled table for exploration. Build a 1% sample once and explore on it.
- Cache result cells with a long-running session so re-running a cell does not re-query.
Deepnote keeps an active session for a while; check whether your setting keeps it long enough for a working day, or cell re-runs will hit the warehouse every time.
How do you make a notebook trustworthy six months later?
Three things, in order of payoff: a top cell that states the question, dated section headers, and pinned package versions.
The question cell is a single markdown cell saying what this notebook answers and when it was last verified. Half the confusion about old notebooks comes from not knowing what question they were built for.
Date the headers. “Revenue by region (2026-11)” is more useful than “Revenue”.
Pin your environment. Deepnote lets you choose an environment with fixed library versions; floating latest versions are how a notebook that worked in June breaks in November.
Which parts of Deepnote’s AI are worth using?
Cell-level SQL and Python generation is genuinely useful when the schema is already visible — it reads table and column names from the connection and writes reasonable queries.
Chart suggestions are hit and miss. It will propose a bar chart when a line chart is obviously right, especially with time series.
What it will not do is decide whether the analysis is correct. That still needs a human with domain context, and the risk with AI-assisted notebooks is that plausible-looking output goes unchecked.
When should you not use Deepnote?
For scheduled production pipelines. Notebooks are for analysis; if you need something running at 03:00 every night with alerting, use a proper orchestration tool.
For teams of one who already use Jupyter locally and never share. The collaboration layer is the product, and you would be paying for it unused.
And for datasets that must stay on-premise. Deepnote runs in the cloud; that is a hard stop for regulated data unless your plan includes a dedicated deployment.
Quick Summary
- Deepnote is a cloud notebook with SQL, Python, R and warehouse integrations.
- Store credentials in the integration, and use read-only roles for analysis.
- Column pruning and partition-first filters can cut warehouse scan cost by most of it.
- Add a question cell, dated headers and pinned environments for long-lived notebooks.
- Not a scheduler — use orchestration tools for production pipelines.
