liveBook · Manning

Computational notebook

As explained in Architecting an Apache Iceberg Lakehouse

Jupyter is an open-source interactive computing environment for combining executable code, narrative text, data, and visualizations.

Jupyter Notebook is an interactive computing environment for exploring data, running Python-based Spark code, and combining lakehouse data access with iterative analysis. It gives practitioners programmable access rather than restricting them to predefined BI metrics. section 3.3.2 section 9.2.3

Effective notebook environments in a lakehouse provide:

  • Low-latency access to raw and transformed data, supported by predicate pushdown, column pruning, and query planning. section 9.2.3
  • Open interfaces such as JDBC, ODBC, and Arrow Flight, with integrations for pandas, PyArrow, DuckDB, and SQLAlchemy. section 9.2.3
  • Interoperable compute through Spark, embedded SQL engines, and machine-learning pipelines, without unnecessary data movement. section 9.2.3
  • A path from exploratory notebooks to scheduled workflows, reusable semantic definitions, and production operations. section 9.2.3

Running PySpark against Iceberg

In a Docker-based lakehouse setup, open Jupyter Notebook at localhost:8888, create a Python notebook, and run PySpark to read PostgreSQL data and write Iceberg tables to a MinIO warehouse bucket. When container DNS fails, use the MinIO container IP discovered from the Docker network. section 3.2.4 section 3.3.2

docker network ls

Inspect Docker networks and container addresses when connecting notebook code to MinIO. section 3.3.2

How Architecting an Apache Iceberg Lakehouse covers it

How deep it goes
Explains notebook requirements from low-latency access through interoperability and operationalization, without detailing internal implementation.
Examples
Uses a Python PySpark notebook to move PostgreSQL data into Iceberg tables stored in MinIO.
What it assumes
Assumes a running Docker environment and service endpoints, then guides notebook-based PySpark execution.
What you can do after
Build interactive PySpark workflows, connect notebooks to lakehouse data, and operationalize exploratory work as scheduled workflows.
How it connects
Connects to Apache Spark, Iceberg tables, MinIO, pandas, PyArrow, DuckDB, SQLAlchemy, and machine-learning frameworks.

Also explained in

Compare how 4 books explain computational notebook →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting an Apache Iceberg Lakehouse. The section links point to the parts of the book it draws on.