How to use Logfire with Python notebooks for observability

View organization page for Pydantic

14,943 followers

What happens when you combine reactive notebooks and proper instrumentation? 🚀 Check out 👋 Vincent D. Warmerdam's video showing how to use #Logfire with marimo #python notebooks. Vincent demonstrates how both tools work together to log batch jobs and add structure to data pipelines. He builds decorators for #Polars pipeline functions that use Logfire under the hood, giving visibility into execution time, row counts, and function arguments. The video shows how to instrument AI SDK providers to track LLM calls with token usage and cost estimation. It also demonstrates how to query Logfire using SQL and pull LLM traces into a Polars dataframe. This is useful for running evaluations or backing up data before the 30-day retention expires. Worth watching if you need observability that doesn't get in the way. https://lnkd.in/ex9YJG_6 #pydantic #sql #datapipeline #batchjob

Why Pydantic Logfire is Great for Batch Jobs & Python Notebooks Too!

https://www.youtube.com/

To view or add a comment, sign in

Explore content categories