IceFrame provides rich integration with Jupyter Notebooks and IPython environments.
To use notebook features, install IceFrame with the notebook extra:
pip install "iceframe[notebook]"When you display an IceFrame instance in a notebook, it shows a formatted summary of the connection and available namespaces.
from iceframe import IceFrame
ice = IceFrame(config)
ice # Displays HTML summaryIceFrame includes IPython magic commands to simplify interaction.
First, load the extension:
%load_ext iceframe.magicsSet the active IceFrame instance for magic commands.
ice = IceFrame(config)
%iceframe iceCheck status:
%iceframe statusExecute SQL queries directly in a cell using the active IceFrame instance.
%%iceql
SELECT * FROM my_table LIMIT 10You can also perform joins:
%%iceql
SELECT
t1.name,
t2.order_total
FROM users t1
JOIN orders t2 ON t1.id = t2.user_idNote: %%iceql uses Polars SQL context under the hood. It automatically registers tables referenced in the query from your Iceberg catalog.