<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Python on Posit Open Source</title>
    <link>https://opensource.posit.co/languages/python/</link>
    <description>Recent content in Python on Posit Open Source</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 04 Dec 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://opensource.posit.co/languages/python/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Announcing MCP Console</title>
      <link>https://opensource.posit.co/blog/2026-12-04_announcing-mcp-console/</link>
      <pubDate>Fri, 04 Dec 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-12-04_announcing-mcp-console/</guid>
      <dc:creator>Tomasz Kalinowski</dc:creator><description><![CDATA[<!-- fmt: wrap=sentence -->
<p>What tools does an agent need to work with data?
How can we give agents those tools safely?</p>
<p>Decades of effort have gone into building rich interactive environments for people who work with data in R, Python, and SQL.
Which of the affordances of these environments are also useful to agents?
What new affordances would be helpful, both to agents and to the people supervising them?
And which of these tools will continue to make sense as models get smarter?</p>
<p>We&rsquo;re pleased to introduce MCP Console, a new open-source project that explores these questions.
Console gives agents a persistent, sandboxed environment for working with data in R, Python, and SQL.</p>
<p>MCP Console is a standalone binary written in Rust that runs on macOS, Linux, and Windows.
It works with MCP-compatible clients such as Codex, Claude Code, and Pi, as well as libraries and SDKs for building AI-powered applications.</p>
<p>At Posit, we&rsquo;re also exploring different ways for people to work with agents.
Projects like <a href="https://assistant.posit.co/" target="_blank" rel="noopener">Posit Assistant</a> and the <a href="https://opensource.posit.co/blog/2026-11-04_positron-mcp/" target="_blank" rel="noopener">Positron MCP tools</a> bring people and agents together to collaborate in shared interactive sessions.</p>
<p>MCP Console approaches the problem from a different direction: it gives agents dedicated interactive sessions of their own, with a runtime interface designed solely for agents, including agents working unattended.</p>
<p><a href="https://posit-dev.github.io/mcp-console/getting-started/" target="_blank" rel="noopener">Get started with MCP Console</a></p>
<h2 id="an-interactive-session-for-your-agent">An interactive session for your agent
</h2>
<p>&ldquo;Finding the question is often more important than finding the answer,&rdquo; <a href="https://doi.org/10.1080/00031305.1980.10482706" target="_blank" rel="noopener">wrote John Tukey in 1980</a>.
An analyst rarely knows at the outset every step an analysis will involve: what they discover along the way informs what they do next.</p>
<p>This is why so many of the tools that analysts prefer, like REPLs and notebooks, are built around a stateful session.
With data and intermediate results still in memory, asking another question is often trivial.</p>
<p>In contrast, asking another question can be much more involved for an agent working through a shell tool.
Each time the agent wants to run a snippet of R or Python code, it has to start a fresh process.
Even a simple follow-up can mean editing a script or resubmitting code from previous turns, reloading the data, and repeating preprocessing steps &mdash; wasting time, compute, tokens, and context redoing work every turn.</p>
<p>When asking questions is expensive, fewer questions get asked.
Making it cheaper to ask questions doesn&rsquo;t just make the analysis faster; it can also lead to a different and better analysis.</p>
<h2 id="power-and-safety">Power and safety
</h2>
<p>To give agents the freedom to explore data, Console gives them access to full R and Python runtimes and the large ecosystems of packages built around them.
Without constraints, these tools would let agents execute arbitrary native code, run shell commands, access the filesystem, and make network requests.</p>
<p>An agent might run code that overwrites source data, deletes files unrelated to the task, or exposes sensitive information.
It might do so because the model misunderstood a request, was misled by something it read, or loaded a package containing malicious code.</p>
<p>If we want to leave an agent working unattended, instructions about what it should or shouldn&rsquo;t do are not enough.
We need firm limits on what its code can access and change outside the runtime.</p>
<p>Console runs the agent&rsquo;s code in an operating-system sandbox.
The boundaries it establishes are walls, not signposts for the model: the operating system enforces limits on file and network access for all code run in Console, including any subprocesses it starts.
Within its session, the agent is free to explore and manipulate data; what its code can access and change outside the session remains up to you.</p>
<p>By default, Console uses a built-in sandbox policy named <code>read_only</code>.
Under this policy, code running in Console can read files accessible to your account and work in private temporary storage, but it cannot create, modify, or delete files elsewhere nor access the network.</p>
<p>The default policy makes Console a safe complement to an agent&rsquo;s existing tools, granting it rich computational capabilities without expanding its write or network permissions.
In practice, agents with access to other tools can often work comfortably within these restrictions.
For example, an agent might download a dataset using <code>curl</code> through its shell tool, where network access may be permitted (perhaps after approval), then return to Console to load and explore the data.
Similarly, an agent can use its editing tools to modify the source files of an R or Python package while using Console to develop and test it.</p>
<p>For tasks where you want to grant agents broader permissions within Console, we also provide a built-in <code>workspace</code> policy that allows writes in the project directory, with exceptions for sensitive locations such as <code>.git</code> and agent configuration files.</p>
<p>These built-in policies are starting points for a configuration system that supports layering global and project-specific policies.
You can grant write access to selected directories, deny reads from sensitive paths, and allow network access to selected domains through a proxy.</p>
<p><a href="https://posit-dev.github.io/mcp-console/sandbox/" target="_blank" rel="noopener">Sandbox and permissions</a> · <a href="https://posit-dev.github.io/mcp-console/configuration/" target="_blank" rel="noopener">Configuration</a></p>
<h3 id="installing-packages-on-demand">Installing packages on demand
</h3>
<p>It&rsquo;s rarely possible to anticipate every package an analysis will need.
An interesting question might come up halfway through that calls for a particular statistical method, visualization, or file reader.
Agents, like analysts, benefit from being able to reach for these tools as the need arises.</p>
<p>Sandboxing complicates this.
Installing packages typically requires network access and permission to write to package libraries.
We want agents to be able to request packages as they work without granting those permissions to the session, modifying your own R or Python environments, or asking you to approve every installation.</p>
<p>Console handles package installation separately from code execution.
An agent can declare package requirements, implicitly or explicitly, and Console prepares the dependencies in a separate sandbox with its own permissions.</p>
<p>Following a pattern used by <code>uv</code>, <code>reticulate</code>, and <code>ir</code>, Console assembles lightweight, ephemeral environments that are essentially views over persistent local package caches.
Console can resolve packages dynamically as the session&rsquo;s requirements evolve, giving agents the freedom to pull in packages on demand without weakening the runtime sandbox, modifying the environments you use for other work, or requiring you to approve installations or manually manage dependencies.
Packages can be added to a running session without forcing a restart or losing the work already in memory.</p>
<p><a href="https://posit-dev.github.io/mcp-console/requirements/" target="_blank" rel="noopener">Packages and environments</a></p>
<h2 id="an-interface-for-agents">An interface for agents
</h2>
<p>R and Python already have a rich set of facilities for interactive sessions, built and refined over decades by and for people who work with data.
These include help systems, debuggers, introspection tools, package management facilities, and ways of working with plots.</p>
<p>Many of these facilities are a natural fit for agents.
Models already know how to use them: examples of their use are likely abundant in the training data.
But there&rsquo;s another reason: they&rsquo;ve stood the test of time as tools for working with data through a largely text-based, turn-based interface.
As it happens, that&rsquo;s also how agents interact with their tools.</p>
<p>Simply giving an agent access to an interactive R or Python session through a terminal, however, falls short in a few ways.
The agent or its tooling has to infer when a computation has finished, often by polling the terminal, parsing prompts, or waiting longer than necessary.
Other facilities, such as tab completion, aren&rsquo;t particularly useful to agents in their existing form.</p>
<p>Rather than interact with the runtimes through a terminal, Console embeds them directly, giving it access to their internal state.
It can report whether a runtime is idle, busy, or waiting for input, and return results as soon as they&rsquo;re available, without parsing prompts or waiting for terminal output to settle.</p>
<p>We&rsquo;ve also adapted many of the runtimes&rsquo; interactive facilities to the way agents work.
Agents can browse help pages and vignettes without the repeated text that comes from navigating a pager designed for humans.
Custom hooks into the graphics systems capture plots and return them as images, so agents can see and refine the plots they produce.
An agent can drive a debugger, step through code, and inspect live objects.
To protect agents from inadvertently flooding their own context with large amounts of output, Console truncates oversized responses and makes the full output available in overflow files that agents can read selectively.</p>
<h3 id="long-running-computations-and-parallel-sessions">Long-running computations and parallel sessions
</h3>
<p>Console lets an agent manage multiple sessions in parallel.
An agent can start a long-running computation in one session and continue working in another.
It can monitor the computation&rsquo;s progress, interrupt it, or restart the session if it hangs.
With separate sessions, an agent can also pursue several lines of inquiry concurrently.</p>
<h2 id="which-language">Which language?
</h2>
<p>R?
Python?
SQL?</p>
<p>It&rsquo;s the same question analysts have faced for years, and <a href="https://posit.co/blog/r-vs-python-what-s-the-best-for-language-for-data-science" target="_blank" rel="noopener">one we&rsquo;ve written about before</a>.</p>
<p>For many tasks, any of these languages will do.
But some things are simply <a href="https://www.paulgraham.com/avg.html" target="_blank" rel="noopener">easier to express in one language than another</a>.
Sometimes it&rsquo;s because of the language itself, sometimes because of a package, and sometimes because of the idioms that have developed within a language&rsquo;s community.</p>
<p>This idea has motivated much of our work on language interoperability over the years, from the introduction of <a href="https://opensource.posit.co/blog/2018-03-26_reticulate-r-interface-to-python">reticulate</a> in 2018 to our <a href="https://opensource.posit.co/blog/2018-04-19_arrow-and-beyond">collaboration on Apache Arrow</a>.
The easier we make it to move between languages, the more freely we can draw on the strengths of each and the work of their respective communities.</p>
<p>With agents, we have an opportunity to take this idea further.
For most people, how well they know a language and its ecosystem weighs heavily in their choice of language.
Today&rsquo;s models, however, can write perfectly adequate code in R, Python, SQL, and most other common languages.
Just like a polyglot programmer who is equally proficient in several languages, an agent can base its choice more on the tools available for the task than on familiarity with a particular language.</p>
<p>How often an agent can make that choice depends on the cost of switching languages.
If the switching cost is low enough, an agent can choose a language anew at each step of an analysis.
There is a parallel in human languages: people who speak multiple languages often <a href="https://aclanthology.org/2024.scil-1.25/" target="_blank" rel="noopener">switch languages mid-sentence</a> when what they want to say is easier to express in another language.</p>
<p>To make switching languages inexpensive, MCP Console embeds R, Python, and SQL runtimes in the same process.
An agent can create a data frame in R, query it directly with SQL, and work with it in Python, without writing intermediate files or reloading the data.
Native bridges make it efficient to pass data between languages, often without copying it, by sharing views of the same underlying buffers.
An agent can switch to another language for a single operation and then switch back.</p>
<p>The SQL interface uses an in-memory DuckDB database by default, and can also use existing database connections from R or Python.</p>
<p>Of course, your own familiarity with a language still matters, especially if you intend to develop or maintain the resulting code.
An instruction as simple as &ldquo;All else being equal, prefer R because I&rsquo;m more familiar with it&rdquo; can guide the agent&rsquo;s choices.
Console makes it easy for agents to work across languages, but works equally well as a pure R, Python, or SQL REPL.</p>
<p><a href="https://posit-dev.github.io/mcp-console/builtin_runtime/" target="_blank" rel="noopener">Sessions and languages</a></p>
<h2 id="keeping-a-journal">Keeping a journal
</h2>
<p>A scientist&rsquo;s notebook is as much a tool for doing science as it is a record of it.
It&rsquo;s a scratchpad for planning an investigation, a ledger for tracking progress and recording findings as the work unfolds, and a durable record once it&rsquo;s complete.
The scientist or their colleagues can return to it to retrace how a result was discovered, revisit earlier lines of inquiry, and develop the work further.</p>
<p>We think it makes sense for agents to have this kind of notebook too.</p>
<p>By default, Console records every session as it happens, capturing code, outputs, plots, timings, and runtime events.
The agent can also add notes alongside or between code submissions, treating the recording as an append-only journal.
It can jot down observations, hypotheses, tentative conclusions, and leads worth pursuing.
By capturing prose alongside code and results, Console provides a readable account of the investigation, preserving the false starts and dead ends as well as the discoveries.</p>
<p>The journal also gives you a way to engage with the agent&rsquo;s work.
Rather than relying solely on the agent&rsquo;s summary, you can examine how it prepared the data, inspect the code and intermediate results, and see what other approaches it tried.</p>
<p>Console makes session recordings available in several forms.
A structured JSONL event log lends itself to programmatic monitoring, tracing, debugging, and model evaluation.
A Markdown document brings together the code, notes, and results in a readable account of how the investigation unfolded.
A Quarto (<code>.qmd</code>) projection captures the analysis in a reproducible document with package requirements declared inline.
To prepare the session&rsquo;s packages and render the document, you can use <code>ir render session-transcript.qmd</code>.
Either the Markdown or Quarto document can also serve as a starting point for a report that you and the agent can review, refine, and develop further.</p>
<p><a href="https://posit-dev.github.io/mcp-console/recording/" target="_blank" rel="noopener">Recordings and reports</a></p>
<h2 id="equip-your-own-agent">Equip your own agent
</h2>
<p>We&rsquo;ve designed MCP Console to be easy to integrate into other AI-powered applications.</p>
<p>Console provides the data workbench for your agent.
It manages persistent sessions, package environments, sandboxing, and session recordings, and gives agents access to the runtimes and their interactive facilities.
You&rsquo;re free to use whatever model, SDK, or framework suits your application and manage the conversation however you like.</p>
<p>You can also tailor the interface Console presents to the agent.
You choose which languages and tool arguments to expose, and you can customize the accompanying tool descriptions and prompts.
You can initialize sessions with preloaded datasets or database connections and configure the sandbox permissions to suit your application.
A database assistant, for example, might expose only SQL over a read-only database connection.</p>
<p>Console works with any MCP client, and its R and Python packages make it easy to integrate with a variety of libraries, agent frameworks, and model provider SDKs, including <a href="https://posit-dev.github.io/mcp-console/r-guide/" target="_blank" rel="noopener">Ellmer</a>, <a href="https://posit-dev.github.io/mcp-console/python-guide/#choose-a-model-integration" target="_blank" rel="noopener">Chatlas</a>, the Anthropic SDK, and the Codex SDK.</p>
<p><a href="https://posit-dev.github.io/mcp-console/build/" target="_blank" rel="noopener">Build on Console</a></p>
<h2 id="general-purpose-tools">General-purpose tools
</h2>
<p>An open question in designing tools for agents is which tools will remain useful as models get smarter.</p>
<p>Part of the appeal of a general-purpose language runtime is that we don&rsquo;t have to anticipate everything an agent might want to do with data.
An agent with access to R and Python can draw on decades of work by their communities, combine existing tools in new ways, and write tools of its own.</p>
<p>As models get better at programming and working with data, they can make increasingly sophisticated use of the same environment.
The range of things an agent can accomplish with Console can grow considerably while the interface stays the same.</p>
<h2 id="get-started">Get started
</h2>
<p>Install <a href="https://docs.astral.sh/uv/getting-started/installation/" target="_blank" rel="noopener">uv</a> if you don&rsquo;t already have it.</p>
<p>For Codex and Claude Code, we provide one-time setup commands that configure the client for you and make Console available across your projects.</p>
<p>For Codex:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sh" data-lang="sh"><span class="line"><span class="cl">uvx mcp-console configure-client codex</span></span></code></pre></div></div>
<p>For Claude Code:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-sh" data-lang="sh"><span class="line"><span class="cl">uvx mcp-console configure-client claude</span></span></code></pre></div></div>
<p>For other MCP-compatible clients, register <code>uvx mcp-console serve</code> as a stdio MCP server.</p>
<p>Restart your client and you&rsquo;re ready to go.
Python and SQL work out of the box.
To use R, you&rsquo;ll need to have R installed separately.</p>
<p>A good way to get a feel for Console is to try it with an analysis you&rsquo;re already working on.
Ask your agent to explore some data using Console, follow up on something you find interesting, and have a look at the session recording.</p>
<p><a href="https://posit-dev.github.io/mcp-console/clients/" target="_blank" rel="noopener">Install and connect</a> · <a href="https://github.com/posit-dev/mcp-console" target="_blank" rel="noopener">Source and issues</a></p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-12-04_announcing-mcp-console/prime-radiant.png" length="2405511" type="image/png" />
    </item>
    <item>
      <title>mlfeatures: feature engineering with recipes</title>
      <link>https://opensource.posit.co/blog/2026-12-03_mlfeatures-recipes/</link>
      <pubDate>Thu, 03 Dec 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-12-03_mlfeatures-recipes/</guid>
      <dc:creator>Emil Hvitfeldt</dc:creator><description><![CDATA[<script src="https://cdn.jsdelivr.net/npm/requirejs@2.3.6/require.min.js" integrity="sha384-c9c+LnTbwQ3aujuU7ULEPVvgLs+Fn6fJUvIGTsuu1ZcCf11fiEubah0ttpca4ntM sha384-6V1/AdqZRWk1KAlWbKBlGhN7VG4iE/yAZcO6NZPMF8od0vukrvr0tg4qY6NSrItx" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2" crossorigin="anonymous" data-relocate-top="true"></script>
<script type="application/javascript">define('jquery', [],function() {return window.jQuery;})</script>
<p>You have probably written this code before:
a pile of preprocessing that imputes here, scales there,
one-hot encodes a hand-typed list of columns,
and quietly breaks the day someone adds a column to the source table.</p>
<p>We present <a href="https://tidymodels.github.io/mlfeatures/" target="_blank" rel="noopener">mlfeatures</a>,
a Python library for data preprocessing and feature engineering.
You specify what you want to happen as a <strong>recipe</strong>,
which is a declared sequence of <strong>steps</strong> that you fit once and apply anywhere.
There is a lot to cover, so this is the first of three blog posts.
The second and third will cover how mlfeatures works with <a href="https://scikit-learn.org/" target="_blank" rel="noopener">scikit-learn</a> and with <a href="https://pola.rs/" target="_blank" rel="noopener">polars</a>.
This one covers the recipe itself and the two ideas
that make it different from a scikit-learn pipeline:
<strong>selectors</strong> and <strong>roles</strong>.</p>
<div class="callout callout-note" role="note" aria-label="Note">
<div class="callout-header">
<span class="callout-title">Join us live</span>
</div>
<div class="callout-body">
<p>We will talk about mlfeatures next Tuesday 12pm ET / 9am PT (December 8) at the Data Science Lab.
<a href="https://events.zoom.us/ev/ApTgbXfayxBte4tEQA-D_09stCkOkSJmS5ODfzJdYbvRujqrLvif~AiPekDHhQ_V2bF9o_UeDz-wC2nelt4nibrrf3ip1aBKxt89ZcTEBnMYo6A" target="_blank" rel="noopener">Register here</a>.</p>
</div>
</div>
<p>You can install it with:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pip install mlfeatures</span></span></code></pre></div></div>
<h2 id="the-problem-mlfeatures-solves">The problem mlfeatures solves
</h2>
<p>Feature engineering is often the most impactful part of a machine learning pipeline,
and it can often get quite complicated as we add more and more operations.
Additionally we have to be careful that we do everything correctly to avoid things like data leakage.</p>
<p>Traditionally in scikit-learn, you would use a <code>ColumnTransformer()</code>,
combined with a series of transformers or pipelines to specify which features should be handled by which transformations.</p>
<p>In scikit-learn that tends to look like this:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">numeric_plain</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&#34;sqft&#34;</span><span class="p">,</span> <span class="s2">&#34;lot_size&#34;</span><span class="p">,</span> <span class="s2">&#34;year_built&#34;</span><span class="p">]</span>
</span></span><span class="line"><span class="cl"><span class="n">numeric_geo</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&#34;geo_lat&#34;</span><span class="p">,</span> <span class="s2">&#34;geo_lon&#34;</span><span class="p">,</span> <span class="s2">&#34;geo_elevation&#34;</span><span class="p">]</span>
</span></span><span class="line"><span class="cl"><span class="n">categorical</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&#34;neighborhood&#34;</span><span class="p">,</span> <span class="s2">&#34;style&#34;</span><span class="p">,</span> <span class="s2">&#34;roof&#34;</span><span class="p">]</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">pre</span> <span class="o">=</span> <span class="n">ColumnTransformer</span><span class="p">([</span>
</span></span><span class="line"><span class="cl">    <span class="p">(</span><span class="s2">&#34;plain&#34;</span><span class="p">,</span> <span class="n">plain_pipe</span><span class="p">,</span> <span class="n">numeric_plain</span><span class="p">),</span>
</span></span><span class="line"><span class="cl">    <span class="p">(</span><span class="s2">&#34;pca&#34;</span><span class="p">,</span> <span class="n">pca_branch</span><span class="p">,</span> <span class="n">numeric_geo</span> <span class="o">+</span> <span class="n">categorical</span><span class="p">),</span>
</span></span><span class="line"><span class="cl"><span class="p">])</span></span></span></code></pre></div></div>
<p>Spelling out all the columns isn&rsquo;t that bad when we don&rsquo;t have many of them,
but it is a chore to keep up to date, especially if our data set has a lot of columns.</p>
<p>Three literal lists, each a copy of the schema that nothing checks.
If someone adds <code>garage_sqft</code> to the table,
it is silently not imputed and not scaled.
And because <code>ColumnTransformer</code> branches run in parallel,
you cannot scale the PCA output together with the plain numerics without nesting yet another pipeline.</p>
<p>In mlfeatures we take a different approach.
You declare a recipe as a sequence of steps,
and each step says <em>what kind of columns</em> it applies to
rather than <em>which columns</em> it applies to today.</p>
<h2 id="specify-fit-transform">Specify, fit, transform
</h2>
<p>A recipe has three phases:</p>
<ol>
<li>Specify: declare the steps. No data is touched.</li>
<li>Fit: estimate what each step needs (medians, levels, means, PCA loadings) from the training data.</li>
<li>Transform: apply those stored estimates to any data frame, training or new.</li>
</ol>
<p>We&rsquo;ll use the credit data that ships with mlfeatures.
It has a categorical target, <code>Status</code>,
and a mix of numeric and string features with some missing values.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">sklearn.model_selection</span> <span class="kn">import</span> <span class="n">train_test_split</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">mlfeatures</span> <span class="kn">import</span> <span class="n">Recipe</span><span class="p">,</span> <span class="n">StepDummy</span><span class="p">,</span> <span class="n">StepImputeMedian</span><span class="p">,</span> <span class="n">StepImputeMode</span><span class="p">,</span> <span class="n">StepNormalize</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">mlfeatures</span> <span class="kn">import</span> <span class="n">Selectors</span> <span class="k">as</span> <span class="n">s</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">mlfeatures.data</span> <span class="kn">import</span> <span class="n">credit</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">credit_train</span><span class="p">,</span> <span class="n">credit_test</span> <span class="o">=</span> <span class="n">train_test_split</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">credit</span><span class="p">,</span> <span class="n">train_size</span><span class="o">=</span><span class="mf">0.75</span><span class="p">,</span> <span class="n">stratify</span><span class="o">=</span><span class="n">credit</span><span class="p">[</span><span class="s2">&#34;Status&#34;</span><span class="p">],</span> <span class="n">random_state</span><span class="o">=</span><span class="mi">1</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">credit_train</span><span class="o">.</span><span class="n">head</span><span class="p">()</span></span></span></code></pre></div></div>
<div><style>
.dataframe > thead > tr,
.dataframe > tbody > tr {
  text-align: right;
  white-space: pre-wrap;
}
</style>
<small>shape: (5, 14)</small>
<table>
  <thead>
      <tr>
          <th>Status</th>
          <th>Seniority</th>
          <th>Home</th>
          <th>Time</th>
          <th>Age</th>
          <th>Marital</th>
          <th>Records</th>
          <th>Job</th>
          <th>Expenses</th>
          <th>Income</th>
          <th>Assets</th>
          <th>Debt</th>
          <th>Amount</th>
          <th>Price</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>str</td>
          <td>i64</td>
          <td>str</td>
          <td>i64</td>
          <td>i64</td>
          <td>str</td>
          <td>str</td>
          <td>str</td>
          <td>i64</td>
          <td>i64</td>
          <td>i64</td>
          <td>i64</td>
          <td>i64</td>
          <td>i64</td>
      </tr>
      <tr>
          <td>&quot;good&quot;</td>
          <td>1</td>
          <td>&quot;owner&quot;</td>
          <td>36</td>
          <td>21</td>
          <td>&quot;single&quot;</td>
          <td>&quot;no&quot;</td>
          <td>&quot;fixed&quot;</td>
          <td>35</td>
          <td>127</td>
          <td>10000</td>
          <td>0</td>
          <td>850</td>
          <td>1014</td>
      </tr>
      <tr>
          <td>&quot;good&quot;</td>
          <td>28</td>
          <td>&quot;owner&quot;</td>
          <td>30</td>
          <td>54</td>
          <td>&quot;married&quot;</td>
          <td>&quot;no&quot;</td>
          <td>&quot;fixed&quot;</td>
          <td>45</td>
          <td>234</td>
          <td>15000</td>
          <td>0</td>
          <td>1250</td>
          <td>2166</td>
      </tr>
      <tr>
          <td>&quot;bad&quot;</td>
          <td>2</td>
          <td>&quot;rent&quot;</td>
          <td>60</td>
          <td>36</td>
          <td>&quot;separated&quot;</td>
          <td>&quot;yes&quot;</td>
          <td>&quot;freelance&quot;</td>
          <td>35</td>
          <td>null</td>
          <td>0</td>
          <td>0</td>
          <td>2000</td>
          <td>2676</td>
      </tr>
      <tr>
          <td>&quot;good&quot;</td>
          <td>12</td>
          <td>&quot;owner&quot;</td>
          <td>60</td>
          <td>38</td>
          <td>&quot;married&quot;</td>
          <td>&quot;no&quot;</td>
          <td>&quot;fixed&quot;</td>
          <td>75</td>
          <td>120</td>
          <td>5000</td>
          <td>0</td>
          <td>1100</td>
          <td>1172</td>
      </tr>
      <tr>
          <td>&quot;bad&quot;</td>
          <td>0</td>
          <td>&quot;parents&quot;</td>
          <td>24</td>
          <td>21</td>
          <td>&quot;single&quot;</td>
          <td>&quot;yes&quot;</td>
          <td>&quot;partime&quot;</td>
          <td>35</td>
          <td>126</td>
          <td>0</td>
          <td>0</td>
          <td>1150</td>
          <td>1586</td>
      </tr>
  </tbody>
</table>
</div>
<p>Specifying a recipe means starting with <code>Recipe()</code> and chaining steps on with <code>.add()</code>:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">recipe</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">Recipe</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">credit_train</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="s2">&#34;Status&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepImputeMedian</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">numeric_features</span><span class="p">()))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepImputeMode</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">nominal_features</span><span class="p">()))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepDummy</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">nominal_features</span><span class="p">()))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepNormalize</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">numeric_features</span><span class="p">()))</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">recipe</span></span></span></code></pre></div></div>
<pre><code>Recipe (untrained)
  Inputs: 14 columns (1 target)
  Steps:
    step_impute_median(select(role='feature', type=NumericType))                [untrained]
    step_impute_mode(select(role='feature', type=(String, Categorical, Enum)))  [untrained]
    step_dummy(select(role='feature', type=(String, Categorical, Enum)))        [untrained]
    step_normalize(select(role='feature', type=NumericType))                    [untrained]
</code></pre>
<p>Nothing has been computed.
The recipe is just a description,
and it prints each step&rsquo;s selector exactly as written, tagged <code>[untrained]</code>.
The <code>data=</code> argument is optional and only used to check column names and show you what&rsquo;s there;
nothing is estimated from it.</p>
<p>We can read what this recipe does in almost plain English.
We specify a recipe on the <code>credit_train</code> with the target being <code>&quot;Status&quot;</code>, everything else being features.
Then we impute missing values of the numeric features with medians,
impute missing values of the nominal features by their modes,
create dummy variables from the nominal features,
and finally normalize all the numeric features.</p>
<p>There are a couple of things to take note of here.
The only time we specified something as a string was when we specified the target,
everything else uses selectors, which we will get back to later in the post.
One of the reasons why we do this is as an act of protection from previous steps that might remove a feature.
Using selectors makes it so we don&rsquo;t have to manually track each feature.
Also, a recipe is a linear sequence of steps,
not a graph of interconnected processes.
This is not because we couldn&rsquo;t support a graph.
We just believe it isn&rsquo;t needed, and it would complicate the design of mlfeatures.</p>
<p>Calling <code>.fit()</code> on the training data does the estimating.
It hands back a <em>new</em> object, a <code>FittedRecipe</code>,
and leaves the recipe itself alone,
so one specification can be fitted to many data sets (every fold of a cross-validation, for example).</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">fitted</span> <span class="o">=</span> <span class="n">recipe</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">credit_train</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">fitted</span></span></span></code></pre></div></div>
<pre><code>Recipe (trained)
  Inputs: 23 columns (22 features, 1 target)
  Steps:
    step_impute_median(Seniority, Time, Age, Expenses, Income, Assets, Debt, Amount, Price)                                                                                                                                                                                  [trained]
    step_impute_mode(Home, Marital, Records, Job)                                                                                                                                                                                                                            [trained]
    step_dummy(Home, Marital, Records, Job → Home_other, Home_owner, Home_parents, Home_priv, Home_rent, Marital_married, Marital_separated, Marital_single, Marital_widow, Records_yes, Job_freelance, Job_others, Job_partime)                                             [trained]
    step_normalize(Seniority, Time, Age, Expenses, Income, Assets, Debt, Amount, Price, Home_other, Home_owner, Home_parents, Home_priv, Home_rent, Marital_married, Marital_separated, Marital_single, Marital_widow, Records_yes, Job_freelance, Job_others, Job_partime)  [trained]
</code></pre>
<p>Now every step is <code>[trained]</code> and lists the concrete columns it resolved to.
Notice the last step.
We wrote <code>s.numeric_features()</code> twice,
but the normalize step operates on more columns than the imputation step did,
because the dummy step in between created a bunch of new indicator columns and the selector picked them up.
Selectors are evaluated on the data the step sees in the sequence,
not the data the recipe sees at the beginning.</p>
<p>Finally, <code>.transform()</code> applies the stored estimates to any data frame.
It never re-estimates anything,
so the test set is filled with the <em>training</em> medians and scaled by the <em>training</em> means:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">fitted</span><span class="o">.</span><span class="n">transform</span><span class="p">(</span><span class="n">credit_test</span><span class="p">)</span><span class="o">.</span><span class="n">head</span><span class="p">()</span></span></span></code></pre></div></div>
<div><style>
.dataframe > thead > tr,
.dataframe > tbody > tr {
  text-align: right;
  white-space: pre-wrap;
}
</style>
<small>shape: (5, 23)</small>
<table>
  <thead>
      <tr>
          <th>Status</th>
          <th>Seniority</th>
          <th>Time</th>
          <th>Age</th>
          <th>Expenses</th>
          <th>Income</th>
          <th>Assets</th>
          <th>Debt</th>
          <th>Amount</th>
          <th>Price</th>
          <th>Home_other</th>
          <th>Home_owner</th>
          <th>Home_parents</th>
          <th>Home_priv</th>
          <th>Home_rent</th>
          <th>Marital_married</th>
          <th>Marital_separated</th>
          <th>Marital_single</th>
          <th>Marital_widow</th>
          <th>Records_yes</th>
          <th>Job_freelance</th>
          <th>Job_others</th>
          <th>Job_partime</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>str</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
      </tr>
      <tr>
          <td>&quot;good&quot;</td>
          <td>0.256525</td>
          <td>0.932128</td>
          <td>-0.814945</td>
          <td>1.162917</td>
          <td>2.353534</td>
          <td>-0.481696</td>
          <td>2.10856</td>
          <td>2.560203</td>
          <td>1.250825</td>
          <td>-0.278202</td>
          <td>-0.946206</td>
          <td>-0.467881</td>
          <td>-0.23793</td>
          <td>1.893895</td>
          <td>0.623887</td>
          <td>-0.172001</td>
          <td>-0.542203</td>
          <td>-0.122003</td>
          <td>-0.462644</td>
          <td>-0.553287</td>
          <td>-0.193851</td>
          <td>-0.346977</td>
      </tr>
      <tr>
          <td>&quot;bad&quot;</td>
          <td>-0.355733</td>
          <td>-0.302985</td>
          <td>-0.449476</td>
          <td>0.237705</td>
          <td>-0.574492</td>
          <td>0.050584</td>
          <td>0.362355</td>
          <td>1.396303</td>
          <td>1.408383</td>
          <td>-0.278202</td>
          <td>1.056536</td>
          <td>-0.467881</td>
          <td>-0.23793</td>
          <td>-0.527854</td>
          <td>0.623887</td>
          <td>-0.172001</td>
          <td>-0.542203</td>
          <td>-0.122003</td>
          <td>-0.462644</td>
          <td>-0.553287</td>
          <td>-0.193851</td>
          <td>-0.346977</td>
      </tr>
      <tr>
          <td>&quot;good&quot;</td>
          <td>-0.355733</td>
          <td>0.932128</td>
          <td>-1.180413</td>
          <td>-1.047312</td>
          <td>-0.625637</td>
          <td>-0.483297</td>
          <td>-0.272628</td>
          <td>-0.021538</td>
          <td>-0.630322</td>
          <td>-0.278202</td>
          <td>-0.946206</td>
          <td>2.136656</td>
          <td>-0.23793</td>
          <td>-0.527854</td>
          <td>-1.602375</td>
          <td>-0.172001</td>
          <td>1.843776</td>
          <td>-0.122003</td>
          <td>-0.462644</td>
          <td>-0.553287</td>
          <td>-0.193851</td>
          <td>-0.346977</td>
      </tr>
      <tr>
          <td>&quot;good&quot;</td>
          <td>2.705559</td>
          <td>0.520424</td>
          <td>1.560598</td>
          <td>-1.047312</td>
          <td>1.062134</td>
          <td>1.296306</td>
          <td>-0.272628</td>
          <td>0.126595</td>
          <td>0.221128</td>
          <td>-0.278202</td>
          <td>1.056536</td>
          <td>-0.467881</td>
          <td>-0.23793</td>
          <td>-0.527854</td>
          <td>-1.602375</td>
          <td>-0.172001</td>
          <td>-0.542203</td>
          <td>8.194093</td>
          <td>-0.462644</td>
          <td>1.806839</td>
          <td>-0.193851</td>
          <td>-0.346977</td>
      </tr>
      <tr>
          <td>&quot;good&quot;</td>
          <td>-0.84554</td>
          <td>-1.538097</td>
          <td>-1.454514</td>
          <td>-1.047312</td>
          <td>-0.651209</td>
          <td>-0.483297</td>
          <td>-0.272628</td>
          <td>-0.296642</td>
          <td>-0.249954</td>
          <td>-0.278202</td>
          <td>-0.946206</td>
          <td>2.136656</td>
          <td>-0.23793</td>
          <td>-0.527854</td>
          <td>-1.602375</td>
          <td>-0.172001</td>
          <td>1.843776</td>
          <td>-0.122003</td>
          <td>-0.462644</td>
          <td>-0.553287</td>
          <td>-0.193851</td>
          <td>2.881169</td>
      </tr>
  </tbody>
</table>
</div>
<p>A quick note on data frames:
the examples in this series use polars because
that is how the bundled datasets are stored,
but mlfeatures works with pandas too.
Under the hood every step is written once against <a href="https://narwhals-dev.github.io/narwhals/" target="_blank" rel="noopener">narwhals</a>,
a compatibility layer for data frame libraries,
so a recipe returns the same kind of data frame you gave it:
polars in, polars out; pandas in, pandas out.
The third post in this series looks at this in more detail.</p>
<p>That is the whole lifecycle,
and it is the part that keeps test data from leaking into your preprocessing.</p>
<h2 id="a-chain-of-transformers-that-keep-their-names">A chain of transformers that keep their names
</h2>
<p>If you have used a scikit-learn <code>Pipeline</code>, a recipe will look familiar.
It is a chain, and each step is applied to the output of the one before it.
The step that fits the median imputation produces a data frame,
the mode imputation is fitted on <em>that</em>,
the dummy step on the result of <em>that</em>, and so on.
<code>.transform()</code> replays the same chain in the same order.</p>
<p>The difference is what travels along the chain.
By default a scikit-learn transformer hands the next one a NumPy array (you can ask for data frames with <code>set_output</code>),
so by the second step the column names and dtypes are at best a convention.
And you have to keep features of different types separate, since a NumPy array can&rsquo;t mix numeric and non-numeric data.
In a recipe, what passes from step to step is always a named, typed data frame,
along with the roles and the record of which step produced each column.
That is what lets a step&rsquo;s <code>columns</code> be a <em>description</em> resolved against the previous step&rsquo;s output.</p>
<p>We can watch it happen on the Ames housing data by fitting the chain one step at a time.
After the dummy step, the string columns have been replaced by indicator columns.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">mlfeatures</span> <span class="kn">import</span> <span class="n">StepDummy</span><span class="p">,</span> <span class="n">StepNormalize</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">mlfeatures.data</span> <span class="kn">import</span> <span class="n">ames_mini</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">base</span> <span class="o">=</span> <span class="n">Recipe</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">ames_mini</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="s2">&#34;Sale_Price&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">dummied</span> <span class="o">=</span> <span class="n">base</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepDummy</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;Bldg_Type&#34;</span><span class="p">,</span> <span class="s2">&#34;Street&#34;</span><span class="p">)))</span>
</span></span><span class="line"><span class="cl"><span class="n">dummied</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">ames_mini</span><span class="p">)</span><span class="o">.</span><span class="n">transform</span><span class="p">(</span><span class="n">ames_mini</span><span class="p">)</span></span></span></code></pre></div></div>
<div><style>
.dataframe > thead > tr,
.dataframe > tbody > tr {
  text-align: right;
  white-space: pre-wrap;
}
</style>
<small>shape: (2_930, 14)</small>
<table>
  <thead>
      <tr>
          <th>Neighborhood</th>
          <th>Exterior_1st</th>
          <th>Gr_Liv_Area</th>
          <th>Year_Built</th>
          <th>Garage_Cars</th>
          <th>Garage_Area</th>
          <th>Latitude</th>
          <th>Longitude</th>
          <th>Sale_Price</th>
          <th>Bldg_Type_OneFam</th>
          <th>Bldg_Type_Twnhs</th>
          <th>Bldg_Type_TwnhsE</th>
          <th>Bldg_Type_TwoFmCon</th>
          <th>Street_Pave</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>str</td>
          <td>str</td>
          <td>i64</td>
          <td>i64</td>
          <td>i64</td>
          <td>i64</td>
          <td>f64</td>
          <td>f64</td>
          <td>i64</td>
          <td>i8</td>
          <td>i8</td>
          <td>i8</td>
          <td>i8</td>
          <td>i8</td>
      </tr>
      <tr>
          <td>&quot;North_Ames&quot;</td>
          <td>&quot;BrkFace&quot;</td>
          <td>1656</td>
          <td>1960</td>
          <td>2</td>
          <td>528</td>
          <td>42.054035</td>
          <td>-93.619754</td>
          <td>215000</td>
          <td>1</td>
          <td>0</td>
          <td>0</td>
          <td>0</td>
          <td>1</td>
      </tr>
      <tr>
          <td>&quot;North_Ames&quot;</td>
          <td>&quot;VinylSd&quot;</td>
          <td>896</td>
          <td>1961</td>
          <td>1</td>
          <td>730</td>
          <td>42.053014</td>
          <td>-93.619756</td>
          <td>105000</td>
          <td>1</td>
          <td>0</td>
          <td>0</td>
          <td>0</td>
          <td>1</td>
      </tr>
      <tr>
          <td>&quot;North_Ames&quot;</td>
          <td>&quot;Wd Sdng&quot;</td>
          <td>1329</td>
          <td>1958</td>
          <td>1</td>
          <td>312</td>
          <td>42.052659</td>
          <td>-93.619387</td>
          <td>172000</td>
          <td>1</td>
          <td>0</td>
          <td>0</td>
          <td>0</td>
          <td>1</td>
      </tr>
      <tr>
          <td>&quot;North_Ames&quot;</td>
          <td>&quot;BrkFace&quot;</td>
          <td>2110</td>
          <td>1968</td>
          <td>2</td>
          <td>522</td>
          <td>42.051245</td>
          <td>-93.61732</td>
          <td>244000</td>
          <td>1</td>
          <td>0</td>
          <td>0</td>
          <td>0</td>
          <td>1</td>
      </tr>
      <tr>
          <td>&quot;Gilbert&quot;</td>
          <td>&quot;VinylSd&quot;</td>
          <td>1629</td>
          <td>1997</td>
          <td>2</td>
          <td>482</td>
          <td>42.060899</td>
          <td>-93.638933</td>
          <td>189900</td>
          <td>1</td>
          <td>0</td>
          <td>0</td>
          <td>0</td>
          <td>1</td>
      </tr>
      <tr>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
      </tr>
      <tr>
          <td>&quot;Mitchell&quot;</td>
          <td>&quot;HdBoard&quot;</td>
          <td>1003</td>
          <td>1984</td>
          <td>2</td>
          <td>588</td>
          <td>41.988964</td>
          <td>-93.604776</td>
          <td>142500</td>
          <td>1</td>
          <td>0</td>
          <td>0</td>
          <td>0</td>
          <td>1</td>
      </tr>
      <tr>
          <td>&quot;Mitchell&quot;</td>
          <td>&quot;HdBoard&quot;</td>
          <td>902</td>
          <td>1983</td>
          <td>2</td>
          <td>484</td>
          <td>41.988314</td>
          <td>-93.60268</td>
          <td>131000</td>
          <td>1</td>
          <td>0</td>
          <td>0</td>
          <td>0</td>
          <td>1</td>
      </tr>
      <tr>
          <td>&quot;Mitchell&quot;</td>
          <td>&quot;HdBoard&quot;</td>
          <td>970</td>
          <td>1992</td>
          <td>0</td>
          <td>0</td>
          <td>41.98651</td>
          <td>-93.606847</td>
          <td>132000</td>
          <td>1</td>
          <td>0</td>
          <td>0</td>
          <td>0</td>
          <td>1</td>
      </tr>
      <tr>
          <td>&quot;Mitchell&quot;</td>
          <td>&quot;HdBoard&quot;</td>
          <td>1389</td>
          <td>1974</td>
          <td>2</td>
          <td>418</td>
          <td>41.990921</td>
          <td>-93.60019</td>
          <td>170000</td>
          <td>1</td>
          <td>0</td>
          <td>0</td>
          <td>0</td>
          <td>1</td>
      </tr>
      <tr>
          <td>&quot;Mitchell&quot;</td>
          <td>&quot;HdBoard&quot;</td>
          <td>2000</td>
          <td>1993</td>
          <td>3</td>
          <td>650</td>
          <td>41.989265</td>
          <td>-93.599996</td>
          <td>188000</td>
          <td>1</td>
          <td>0</td>
          <td>0</td>
          <td>0</td>
          <td>1</td>
      </tr>
  </tbody>
</table>
</div>
<p>Now add a normalize step that asks for <code>s.numeric_features()</code>.
We wrote no column names,
but the step is fitted on the dummy step&rsquo;s output,
so the selector can see the new indicator columns.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">chained</span> <span class="o">=</span> <span class="n">dummied</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepNormalize</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">numeric_features</span><span class="p">()))</span>
</span></span><span class="line"><span class="cl"><span class="n">chained</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">ames_mini</span><span class="p">)</span><span class="o">.</span><span class="n">transform</span><span class="p">(</span><span class="n">ames_mini</span><span class="p">)</span></span></span></code></pre></div></div>
<div><style>
.dataframe > thead > tr,
.dataframe > tbody > tr {
  text-align: right;
  white-space: pre-wrap;
}
</style>
<small>shape: (2_930, 14)</small>
<table>
  <thead>
      <tr>
          <th>Neighborhood</th>
          <th>Exterior_1st</th>
          <th>Gr_Liv_Area</th>
          <th>Year_Built</th>
          <th>Garage_Cars</th>
          <th>Garage_Area</th>
          <th>Latitude</th>
          <th>Longitude</th>
          <th>Sale_Price</th>
          <th>Bldg_Type_OneFam</th>
          <th>Bldg_Type_Twnhs</th>
          <th>Bldg_Type_TwnhsE</th>
          <th>Bldg_Type_TwoFmCon</th>
          <th>Street_Pave</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>str</td>
          <td>str</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>i64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
      </tr>
      <tr>
          <td>&quot;North_Ames&quot;</td>
          <td>&quot;BrkFace&quot;</td>
          <td>0.309212</td>
          <td>-0.375473</td>
          <td>0.307157</td>
          <td>0.257179</td>
          <td>1.062069</td>
          <td>0.900517</td>
          <td>215000</td>
          <td>0.456263</td>
          <td>-0.188917</td>
          <td>-0.293875</td>
          <td>-0.147005</td>
          <td>0.064117</td>
      </tr>
      <tr>
          <td>&quot;North_Ames&quot;</td>
          <td>&quot;VinylSd&quot;</td>
          <td>-1.194223</td>
          <td>-0.34241</td>
          <td>-1.006668</td>
          <td>1.195897</td>
          <td>1.00661</td>
          <td>0.900439</td>
          <td>105000</td>
          <td>0.456263</td>
          <td>-0.188917</td>
          <td>-0.293875</td>
          <td>-0.147005</td>
          <td>0.064117</td>
      </tr>
      <tr>
          <td>&quot;North_Ames&quot;</td>
          <td>&quot;Wd Sdng&quot;</td>
          <td>-0.337661</td>
          <td>-0.441599</td>
          <td>-1.006668</td>
          <td>-0.746598</td>
          <td>0.987327</td>
          <td>0.914786</td>
          <td>172000</td>
          <td>0.456263</td>
          <td>-0.188917</td>
          <td>-0.293875</td>
          <td>-0.147005</td>
          <td>0.064117</td>
      </tr>
      <tr>
          <td>&quot;North_Ames&quot;</td>
          <td>&quot;BrkFace&quot;</td>
          <td>1.207317</td>
          <td>-0.11097</td>
          <td>0.307157</td>
          <td>0.229296</td>
          <td>0.910521</td>
          <td>0.995227</td>
          <td>244000</td>
          <td>0.456263</td>
          <td>-0.188917</td>
          <td>-0.293875</td>
          <td>-0.147005</td>
          <td>0.064117</td>
      </tr>
      <tr>
          <td>&quot;Gilbert&quot;</td>
          <td>&quot;VinylSd&quot;</td>
          <td>0.255801</td>
          <td>0.847855</td>
          <td>0.307157</td>
          <td>0.043412</td>
          <td>1.434908</td>
          <td>0.15424</td>
          <td>189900</td>
          <td>0.456263</td>
          <td>-0.188917</td>
          <td>-0.293875</td>
          <td>-0.147005</td>
          <td>0.064117</td>
      </tr>
      <tr>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
          <td>&hellip;</td>
      </tr>
      <tr>
          <td>&quot;Mitchell&quot;</td>
          <td>&quot;HdBoard&quot;</td>
          <td>-0.982555</td>
          <td>0.418037</td>
          <td>0.307157</td>
          <td>0.536006</td>
          <td>-2.472464</td>
          <td>1.483328</td>
          <td>142500</td>
          <td>0.456263</td>
          <td>-0.188917</td>
          <td>-0.293875</td>
          <td>-0.147005</td>
          <td>0.064117</td>
      </tr>
      <tr>
          <td>&quot;Mitchell&quot;</td>
          <td>&quot;HdBoard&quot;</td>
          <td>-1.182354</td>
          <td>0.384974</td>
          <td>0.307157</td>
          <td>0.052706</td>
          <td>-2.50777</td>
          <td>1.564886</td>
          <td>131000</td>
          <td>0.456263</td>
          <td>-0.188917</td>
          <td>-0.293875</td>
          <td>-0.147005</td>
          <td>0.064117</td>
      </tr>
      <tr>
          <td>&quot;Mitchell&quot;</td>
          <td>&quot;HdBoard&quot;</td>
          <td>-1.047836</td>
          <td>0.682541</td>
          <td>-2.320492</td>
          <td>-2.196499</td>
          <td>-2.60576</td>
          <td>1.402743</td>
          <td>132000</td>
          <td>0.456263</td>
          <td>-0.188917</td>
          <td>-0.293875</td>
          <td>-0.147005</td>
          <td>0.064117</td>
      </tr>
      <tr>
          <td>&quot;Mitchell&quot;</td>
          <td>&quot;HdBoard&quot;</td>
          <td>-0.218968</td>
          <td>0.087408</td>
          <td>0.307157</td>
          <td>-0.254004</td>
          <td>-2.366163</td>
          <td>1.661775</td>
          <td>170000</td>
          <td>0.456263</td>
          <td>-0.188917</td>
          <td>-0.293875</td>
          <td>-0.147005</td>
          <td>0.064117</td>
      </tr>
      <tr>
          <td>&quot;Mitchell&quot;</td>
          <td>&quot;HdBoard&quot;</td>
          <td>0.989715</td>
          <td>0.715604</td>
          <td>1.620981</td>
          <td>0.824127</td>
          <td>-2.456114</td>
          <td>1.669324</td>
          <td>188000</td>
          <td>0.456263</td>
          <td>-0.188917</td>
          <td>-0.293875</td>
          <td>-0.147005</td>
          <td>0.064117</td>
      </tr>
  </tbody>
</table>
</div>
<p>The normalize step lists the indicators (<code>Bldg_Type_OneFam</code>, <code>Street_Pave</code>, and so on) next to the original numeric columns,
even though none of them existed when we wrote the recipe.</p>
<h2 id="selectors-say-what-not-which">Selectors: say what, not which
</h2>
<p>Selectors are <em>descriptions</em> of columns,
and they live in the <code>Selectors</code> namespace,
which the mlfeatures docs import as <code>s</code>.
You can select by name, by type, by role (more on that next),
or by which step created a column:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">s</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;Income&#34;</span><span class="p">,</span> <span class="s2">&#34;Assets&#34;</span><span class="p">)</span>        <span class="c1"># by name</span>
</span></span><span class="line"><span class="cl"><span class="n">s</span><span class="o">.</span><span class="n">starts_with</span><span class="p">(</span><span class="s2">&#34;Garage&#34;</span><span class="p">)</span>          <span class="c1"># by name pattern</span>
</span></span><span class="line"><span class="cl"><span class="n">s</span><span class="o">.</span><span class="n">numeric</span><span class="p">()</span>                      <span class="c1"># by type</span>
</span></span><span class="line"><span class="cl"><span class="n">s</span><span class="o">.</span><span class="n">has_role</span><span class="p">(</span><span class="s2">&#34;geo&#34;</span><span class="p">)</span>                <span class="c1"># by role</span>
</span></span><span class="line"><span class="cl"><span class="n">s</span><span class="o">.</span><span class="n">has_source</span><span class="p">(</span><span class="n">step_type</span><span class="o">=</span><span class="n">StepDummy</span><span class="p">)</span>  <span class="c1"># by the step that produced it</span></span></span></code></pre></div></div>
<p>They compose with <code>&amp;</code>, <code>|</code>, <code>~</code>,
and <code>-</code>, so &ldquo;every numeric feature except the ones in the <code>geo</code> group&rdquo; is one expression.
We&rsquo;ll use that shortly.</p>
<p>You may have noticed we have been using <code>s.numeric_features()</code> and not <code>s.numeric()</code>.
That is deliberate and it brings us to roles.</p>
<h2 id="roles-what-a-column-is-for">Roles: what a column is for
</h2>
<p>In scikit-learn, &ldquo;which column is the target&rdquo; is something you track yourself,
by splitting <code>X</code> and <code>y</code> before anything else happens.
In a recipe, it is a property of the column in the data frame, called a <strong>role</strong>.</p>
<p>The two roles you will use constantly are <code>&quot;feature&quot;</code> (a column used as model input) and <code>&quot;target&quot;</code> (the column being predicted).
When we wrote <code>Recipe(data=credit_train, target=&quot;Status&quot;)</code>,
<code>Status</code> got the <code>target</code> role and every other column became a feature by default.</p>
<p>This is why <code>s.numeric_features()</code> exists.
It is <code>s.numeric()</code> restricted to the feature role,
so it leaves out a numeric target.
A plain type selector knows nothing about roles,
so it would happily normalize the thing you&rsquo;re trying to predict, which is almost never what you want.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">recipe</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">Recipe</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">ames_mini</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="s2">&#34;Sale_Price&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepNormalize</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">numeric_features</span><span class="p">()))</span>  <span class="c1"># leaves Sale_Price alone</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepNormalize</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">numeric</span><span class="p">()))</span>  <span class="c1"># includes Sale_Price</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">recipe</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">ames_mini</span><span class="p">)</span></span></span></code></pre></div></div>
<pre><code>Recipe (trained)
  Inputs: 11 columns (10 features, 1 target)
  Steps:
    step_normalize(Gr_Liv_Area, Year_Built, Garage_Cars, Garage_Area, Latitude, Longitude)              [trained]
    step_normalize(Gr_Liv_Area, Year_Built, Garage_Cars, Garage_Area, Latitude, Longitude, Sale_Price)  [trained]
</code></pre>
<p>You can name the features yourself with <code>features=</code>.
A role is just a string, though, so you can invent your own.
Here we tag the coordinates <code>geo</code>,
and then normalize every numeric feature <em>except</em> those.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">polars</span> <span class="k">as</span> <span class="nn">pl</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">recipe</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">Recipe</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">ames_mini</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="s2">&#34;Sale_Price&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">set_roles</span><span class="p">(</span><span class="n">geo</span><span class="o">=</span><span class="p">[</span><span class="s2">&#34;Latitude&#34;</span><span class="p">,</span> <span class="s2">&#34;Longitude&#34;</span><span class="p">])</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepNormalize</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">numeric_features</span><span class="p">()</span> <span class="o">-</span> <span class="n">s</span><span class="o">.</span><span class="n">has_role</span><span class="p">(</span><span class="s2">&#34;geo&#34;</span><span class="p">)))</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">fitted</span> <span class="o">=</span> <span class="n">recipe</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">ames_mini</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">fitted</span></span></span></code></pre></div></div>
<pre><code>Recipe (trained)
  Inputs: 11 columns (10 features, 2 geos, 1 target)
  Steps:
    step_normalize(Gr_Liv_Area, Year_Built, Garage_Cars, Garage_Area)  [trained]
</code></pre>
<p>Roles can also change part way through a recipe.
<code>add_role()</code>, <code>update_role()</code>,
and <code>remove_role()</code> take effect at the point they are written:
steps after them see the new role, steps before them do not.
Here the dummy columns get an <code>indicator</code> role so the normalization
that follows can skip them:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">mlfeatures</span> <span class="kn">import</span> <span class="n">StepDummy</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">recipe</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">Recipe</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">ames_mini</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="s2">&#34;Sale_Price&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepDummy</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">nominal_features</span><span class="p">()))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add_role</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">has_source</span><span class="p">(</span><span class="n">step_type</span><span class="o">=</span><span class="n">StepDummy</span><span class="p">),</span> <span class="n">role</span><span class="o">=</span><span class="s2">&#34;indicator&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepNormalize</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">numeric_features</span><span class="p">()</span> <span class="o">-</span> <span class="n">s</span><span class="o">.</span><span class="n">has_role</span><span class="p">(</span><span class="s2">&#34;indicator&#34;</span><span class="p">)))</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">fitted</span> <span class="o">=</span> <span class="n">recipe</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">ames_mini</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">fitted</span><span class="o">.</span><span class="n">summary</span><span class="p">()</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;roles&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">str</span><span class="o">.</span><span class="n">contains</span><span class="p">(</span><span class="s2">&#34;indicator&#34;</span><span class="p">))</span><span class="o">.</span><span class="n">head</span><span class="p">()</span></span></span></code></pre></div></div>
<div><style>
.dataframe > thead > tr,
.dataframe > tbody > tr {
  text-align: right;
  white-space: pre-wrap;
}
</style>
<small>shape: (5, 5)</small>
<table>
  <thead>
      <tr>
          <th>name</th>
          <th>dtype</th>
          <th>roles</th>
          <th>source</th>
          <th>sparse</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>str</td>
          <td>str</td>
          <td>str</td>
          <td>str</td>
          <td>bool</td>
      </tr>
      <tr>
          <td>&quot;Neighborhood_Blueste&quot;</td>
          <td>&quot;int&quot;</td>
          <td>&quot;feature, indicator&quot;</td>
          <td>&quot;dummy&quot;</td>
          <td>false</td>
      </tr>
      <tr>
          <td>&quot;Neighborhood_Briardale&quot;</td>
          <td>&quot;int&quot;</td>
          <td>&quot;feature, indicator&quot;</td>
          <td>&quot;dummy&quot;</td>
          <td>false</td>
      </tr>
      <tr>
          <td>&quot;Neighborhood_Brookside&quot;</td>
          <td>&quot;int&quot;</td>
          <td>&quot;feature, indicator&quot;</td>
          <td>&quot;dummy&quot;</td>
          <td>false</td>
      </tr>
      <tr>
          <td>&quot;Neighborhood_Clear_Creek&quot;</td>
          <td>&quot;int&quot;</td>
          <td>&quot;feature, indicator&quot;</td>
          <td>&quot;dummy&quot;</td>
          <td>false</td>
      </tr>
      <tr>
          <td>&quot;Neighborhood_College_Creek&quot;</td>
          <td>&quot;int&quot;</td>
          <td>&quot;feature, indicator&quot;</td>
          <td>&quot;dummy&quot;</td>
          <td>false</td>
      </tr>
  </tbody>
</table>
</div>
<p>That <code>has_source()</code> selector is the last one worth a closer look.</p>
<h2 id="selecting-by-where-a-column-came-from">Selecting by where a column came from
</h2>
<p>A fitted recipe tracks the <em>lineage</em> of every column:
which step produced it and which columns it was derived from.
A selector can ask for it.</p>
<p><code>s.has_source(step_type=StepDummy)</code> means &ldquo;the columns that <code>StepDummy</code> produced&rdquo;.
Every step also has an <code>id</code> (it defaults to the step&rsquo;s short name, like <code>&quot;dummy&quot;</code>, and a second step of the same type becomes <code>&quot;dummy_2&quot;</code>),
so you can be more specific with <code>s.has_source(&quot;dummy_2&quot;)</code>,
or name steps yourself with <code>id=</code>.</p>
<p>The lineage is also queryable after the fact.
If a model flags a PCA component as important,
you can ask what it was built from:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">mlfeatures</span> <span class="kn">import</span> <span class="n">StepPca</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">recipe</span> <span class="o">=</span> <span class="n">Recipe</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">ames_mini</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="s2">&#34;Sale_Price&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">add</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">StepPca</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;Garage_Cars&#34;</span><span class="p">,</span> <span class="s2">&#34;Garage_Area&#34;</span><span class="p">,</span> <span class="s2">&#34;Gr_Liv_Area&#34;</span><span class="p">),</span> <span class="n">num_comp</span><span class="o">=</span><span class="mi">2</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">fitted</span> <span class="o">=</span> <span class="n">recipe</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">ames_mini</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">fitted</span><span class="o">.</span><span class="n">lineage</span><span class="o">.</span><span class="n">ancestors</span><span class="p">(</span><span class="s2">&#34;PC1&#34;</span><span class="p">)</span></span></span></code></pre></div></div>
<pre><code>{'Garage_Area', 'Garage_Cars', 'Gr_Liv_Area'}
</code></pre>
<h2 id="putting-it-together">Putting it together
</h2>
<p>Back to the scenario from the start:
encode the categories, compress the encoded columns together with the geographic columns using PCA,
then normalize everything numeric, <em>including</em> the new components.
Here it is as a recipe on the Ames housing data (we only encode two of the categorical columns to keep the output readable).
The first normalize standardizes the PCA inputs,
which matters because latitude and longitude are on a very different scale from the 0/1 indicators:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">mlfeatures</span> <span class="kn">import</span> <span class="n">StepPca</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">ames_train</span><span class="p">,</span> <span class="n">ames_test</span> <span class="o">=</span> <span class="n">train_test_split</span><span class="p">(</span><span class="n">ames_mini</span><span class="p">,</span> <span class="n">train_size</span><span class="o">=</span><span class="mf">0.8</span><span class="p">,</span> <span class="n">random_state</span><span class="o">=</span><span class="mi">502</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">compress</span> <span class="o">=</span> <span class="n">s</span><span class="o">.</span><span class="n">has_source</span><span class="p">(</span><span class="n">step_type</span><span class="o">=</span><span class="n">StepDummy</span><span class="p">)</span> <span class="o">|</span> <span class="n">s</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;Latitude&#34;</span><span class="p">,</span> <span class="s2">&#34;Longitude&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">recipe</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">Recipe</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">ames_train</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="s2">&#34;Sale_Price&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepDummy</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;Bldg_Type&#34;</span><span class="p">,</span> <span class="s2">&#34;Street&#34;</span><span class="p">)))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepNormalize</span><span class="p">(</span><span class="n">compress</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepPca</span><span class="p">(</span><span class="n">compress</span><span class="p">,</span> <span class="n">num_comp</span><span class="o">=</span><span class="mi">3</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">StepNormalize</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">numeric_features</span><span class="p">()))</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">fitted</span> <span class="o">=</span> <span class="n">recipe</span><span class="o">.</span><span class="n">fit</span><span class="p">(</span><span class="n">ames_train</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">fitted</span></span></span></code></pre></div></div>
<pre><code>Recipe (trained)
  Inputs: 10 columns (9 features, 1 target)
  Steps:
    step_dummy(Bldg_Type, Street → Bldg_Type_OneFam, Bldg_Type_Twnhs, Bldg_Type_TwnhsE, Bldg_Type_TwoFmCon, Street_Pave)                 [trained]
    step_normalize(Latitude, Longitude, Bldg_Type_OneFam, Bldg_Type_Twnhs, Bldg_Type_TwnhsE, Bldg_Type_TwoFmCon, Street_Pave)            [trained]
    step_pca(Latitude, Longitude, Bldg_Type_OneFam, Bldg_Type_Twnhs, Bldg_Type_TwnhsE, Bldg_Type_TwoFmCon, Street_Pave → PC1, PC2, PC3)  [trained]
    step_normalize(Gr_Liv_Area, Year_Built, Garage_Cars, Garage_Area, PC1, PC2, PC3)                                                     [trained]
</code></pre>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">fitted</span><span class="o">.</span><span class="n">transform</span><span class="p">(</span><span class="n">ames_test</span><span class="p">)</span><span class="o">.</span><span class="n">head</span><span class="p">()</span></span></span></code></pre></div></div>
<div><style>
.dataframe > thead > tr,
.dataframe > tbody > tr {
  text-align: right;
  white-space: pre-wrap;
}
</style>
<small>shape: (5, 10)</small>
<table>
  <thead>
      <tr>
          <th>Neighborhood</th>
          <th>Exterior_1st</th>
          <th>Gr_Liv_Area</th>
          <th>Year_Built</th>
          <th>Garage_Cars</th>
          <th>Garage_Area</th>
          <th>Sale_Price</th>
          <th>PC1</th>
          <th>PC2</th>
          <th>PC3</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>str</td>
          <td>str</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
          <td>i64</td>
          <td>f64</td>
          <td>f64</td>
          <td>f64</td>
      </tr>
      <tr>
          <td>&quot;Old_Town&quot;</td>
          <td>&quot;Wd Sdng&quot;</td>
          <td>0.076542</td>
          <td>-2.522462</td>
          <td>-2.340051</td>
          <td>-2.217032</td>
          <td>148000</td>
          <td>0.346995</td>
          <td>-0.348378</td>
          <td>0.421788</td>
      </tr>
      <tr>
          <td>&quot;Bloomington_Heights&quot;</td>
          <td>&quot;VinylSd&quot;</td>
          <td>0.187633</td>
          <td>1.047201</td>
          <td>1.645233</td>
          <td>0.739286</td>
          <td>226500</td>
          <td>-2.551539</td>
          <td>2.128751</td>
          <td>-0.750674</td>
      </tr>
      <tr>
          <td>&quot;Clear_Creek&quot;</td>
          <td>&quot;Wd Sdng&quot;</td>
          <td>1.74089</td>
          <td>-2.092781</td>
          <td>0.316805</td>
          <td>-0.527708</td>
          <td>240000</td>
          <td>0.506054</td>
          <td>0.170912</td>
          <td>-0.309718</td>
      </tr>
      <tr>
          <td>&quot;Brookside&quot;</td>
          <td>&quot;Wd Sdng&quot;</td>
          <td>-0.394081</td>
          <td>-1.563942</td>
          <td>0.316805</td>
          <td>-0.152302</td>
          <td>100000</td>
          <td>0.387593</td>
          <td>-0.297109</td>
          <td>0.216065</td>
      </tr>
      <tr>
          <td>&quot;Timberland&quot;</td>
          <td>&quot;VinylSd&quot;</td>
          <td>0.268427</td>
          <td>1.014149</td>
          <td>1.645233</td>
          <td>1.574563</td>
          <td>270000</td>
          <td>0.527388</td>
          <td>-0.779915</td>
          <td>-0.646561</td>
      </tr>
  </tbody>
</table>
</div>
<p>A few things to notice.
There is one selector, <code>compress</code>,
that unions &ldquo;whatever the dummy step made&rdquo; with two named columns,
and the living area, year built,
and garage columns flow past the PCA untouched (they are only normalized, at the end).
There are no nested branches to reconcile,
just a list of steps in the order they run.
And if a rare neighborhood goes missing from a particular training split,
nothing in the recipe needs editing,
because nothing in it names a dummy column.</p>
<p>If you want to know what each step did,
<code>fitted.summary()</code> gives you the column-by-column accounting,
and the recipe prints as a readable record of the whole pipeline.</p>
<h2 id="whats-next">What&rsquo;s next
</h2>
<p>A recipe is a specification you fit once and apply anywhere,
which also means you can save a fitted recipe to JSON or YAML and load it back in production without the training data (see <code>to_json()</code> and <code>from_json()</code>).</p>
<p>In the next two posts, we&rsquo;ll look at how recipes fit into the rest of your stack:
In the meantime, the <a href="https://tidymodels.github.io/mlfeatures/" target="_blank" rel="noopener">mlfeatures documentation</a> has the full list of steps and six worked examples ported from <a href="https://www.tmwr.org/" target="_blank" rel="noopener"><em>Tidy Modeling with R</em></a>.
and tuning, then with polars and the <code>df.mlf</code> accessor.
In the meantime, the <a href="https://tidymodels.github.io/mlfeatures/" target="_blank" rel="noopener">mlfeatures documentation</a> has the full list of steps and six worked examples ported from <em>Tidy Modeling with R</em>.</p>
<p>mlfeatures is new and there are plenty of great things to come.
This is mainly focused on additional steps that will be useful to users.
This initial release provides a solid foundation and a set of steps that should cover a lot of basic cases.</p>
<p>A note on where this comes from:
mlfeatures is a Python port of the R package <a href="https://opensource.posit.co/software/recipes">recipes</a>, part of tidymodels.
If you have used recipes, most of this will feel familiar.
We have been working on the R package for quite a while and think that it is worth porting to our Python users as well.
We know that 1:1 ports are usually not great, so we took the best of recipes,
added some cool things,
and made sure that it was as pythonic as possible.</p>
<p>Two differences are deliberate:
mlfeatures follows scikit-learn&rsquo;s vocabulary (&ldquo;feature&rdquo; and &ldquo;target&rdquo; rather than &ldquo;predictor&rdquo; and &ldquo;outcome&rdquo;),
and role changes such as <code>add_role()</code> take effect at the point you write them,
whereas in R they are applied up front no matter where they appear.</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-12-03_mlfeatures-recipes/featured.png" length="272675" type="image/png" />
    </item>
    <item>
      <title>posit::glimpse() Newsletter – December 2026</title>
      <link>https://opensource.posit.co/blog/2026-12-02_glimpse-2026-12/</link>
      <pubDate>Wed, 02 Dec 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-12-02_glimpse-2026-12/</guid>
      <dc:creator>Isabella Velásquez</dc:creator><description><![CDATA[<blockquote>
<p>Welcome to our newsletter, posit::glimpse()!</p>
<p>If you&rsquo;re currently reading this on our blog, consider subscribing to Product Updates - Open Source on our <a href="https://posit.co/about/subscription-management" target="_blank" rel="noopener">subscription page</a> to receive this newsletter directly in your inbox.</p>
</blockquote>
<p>Every month, we round up some of the most important open-source news for Posit&rsquo;s community! We hope that you enjoy this newsletter and maybe even share it with a friend.</p>
<p>The table of contents on the right can help you navigate through all the updates. As you scroll, it will open up to show you subcategories →</p>
<h2 id="announcements">Announcements
</h2>
<h3 id="posits-2026-open-source-pledge-update">Posit&rsquo;s 2026 Open Source Pledge update
</h3>
<p>For the third year running, Posit has gone past the <a href="https://opensourcepledge.com/" target="_blank" rel="noopener">Open Source Pledge</a> minimum of $2,000 per developer. This year, we gave more than $580,000 across 130 developers, about $4,500 each.</p>
<ul>
<li>Learn more: <a href="https://posit.co/blog/posit-open-source-pledge-2026" target="_blank" rel="noopener">Posit&rsquo;s 2026 Open Source Pledge update</a></li>
</ul>
<h2 id="help-shape-positron-take-our-survey">Help shape Positron: take our survey
</h2>
<p>The Positron team wants to hear from everyone who works with data in code, whether they use Positron, tried it and stopped, or have never opened it. The team reads every response and uses the answers to decide what to work on next.</p>
<ul>
<li><a href="https://survey.positron.posit.co/?src=glimpse" target="_blank" rel="noopener">Take the survey</a>.</li>
</ul>
<p>Check out some of what is in the November release of Positron:</p>
<ul>
<li>
<p>Our new Object Explorer is like the <a href="https://positron.posit.co/data-explorer" target="_blank" rel="noopener">Data Explorer</a>, but for data that is not rectangular, such as R lists, model fits, Python dicts, and JSON files. You can search across names and values, open a nested data frame in the Data Explorer, and copy the code that gets to any item, such as <code>fit$coefficients[[&quot;wt&quot;]]</code>. To open the Object Explorer, run <code>%view</code> in Python or <code>View()</code> in R, or click the view button in the Variables pane. In the editor, you can also use the <strong>Open in Object Explorer</strong> code action on a variable.</p>
</li>
<li>
<p><a href="https://assistant.posit.co/" target="_blank" rel="noopener">Posit Assistant</a> and other coding agents that use the Positron MCP server can now do more with Positron. Agents can read help pages and vignettes from your installed R and Python packages, can read the output of data apps that Positron runs, read Viewer output such as Plotly charts, and trace Snowflake data lineage.</p>
</li>
<li>
<p>Speaking of the <a href="https://opensource.posit.co/blog/2026-11-04_positron-mcp/" target="_blank" rel="noopener">Positron MCP server</a>, it now starts through a launcher at a stable path, so your agent configuration keeps working after Positron upgrades. <em>Positron MCP: Add to Coding Agent</em> can now also set up OpenCode, Copilot CLI, and Kiro CLI. <strong>Fix</strong> and <strong>Explain</strong> on errors can send the error to a coding agent such as Claude Code, with the <a href="positron://settings/ai.errorActions.agent"><code>ai.errorActions.agent</code></a> setting.</p>
</li>
<li>
<p>Positron is now smaller and faster, about 224 MB smaller on each platform! We have also reduced file counts by many thousands, helping most when you install Positron on a network file system, where startup, upgrades, and antivirus scans can slow down with each file. Positron also does less work in the background now for interpreter discovery.</p>
</li>
</ul>
<h2 id="data-validation-libraries-for-polars-2026-edition">Data validation libraries for Polars (2026 edition)
</h2>
<p>This follow-up to the 2025 survey runs nine Python libraries through the same checks on a shared Polars 2.2 table. Pandera, Patito, Pointblank, Validoopsie and Dataframely return, joined by newcomers Daffy, checkedframe, Pavise and polspec.</p>
<ul>
<li>Read more: <a href="https://opensource.posit.co/blog/2026-11-30_validation-libs-2026/" target="_blank" rel="noopener">Data validation libraries for Polars (2026 edition)</a></li>
</ul>
<h2 id="key-product-updates-and-new-releases">Key product updates and new releases
</h2>
<h3 id="censored-040">censored 0.4.0
</h3>
<p>censored 0.4.0 adds &ldquo;ranger&rdquo; and &ldquo;randomForestSRC&rdquo; engines for survival random forests with <code>rand_forest()</code>, plus a &ldquo;censored regression&rdquo; mode for <code>null_model()</code> that fits a Kaplan-Meier baseline. For mboost, <code>learn_rate</code> is now tunable, and a new <code>multi_predict()</code> method speeds up <code>tune_grid()</code> about 3×.</p>
<ul>
<li>Read more: <a href="https://opensource.posit.co/blog/2026-11-20_censored-0-4-0/" target="_blank" rel="noopener">censored 0.4.0</a></li>
</ul>
<h3 id="commons-020">commons 0.2.0
</h3>
<p>commons 0.2.0 for R splits <code>commons()</code> in two:<code> commons()</code> now only builds the data structure (data sources, semantic layer and context layer), while the new <code>agent()</code> creates the agent harness. The same trusted code and context can now power Shiny apps, other R packages, and coding agents such as Posit Assistant, Claude Code and Codex.</p>
<p>In apps deployed to Posit Connect, users can share conversations, plots, tables and documents as static content, and agents can write self-contained Quarto reports that fetch data through <code>commons()</code> methods. A matching Python release is expected in a few weeks.</p>
<ul>
<li>Read more: <a href="https://opensource.posit.co/blog/2026-11-19_commons-0-2-0/" target="_blank" rel="noopener">commons 0.2.0</a></li>
</ul>
<h3 id="great-docs-since-v010-new-features-faster-builds-and-a-firmer-foundation">Great Docs since v0.10: new features, faster builds, and a firmer foundation
</h3>
<p>Great Docs v0.11.0 through v0.17.0 extend the Python documentation site generator beyond Python APIs. It now generates reference pages for Click, Go and Rust CLIs, and for MCP servers. Pages gain a lightbox for images, a <code>{{&lt; compare &gt;}}</code> image slider, embedded marimo notebooks, and Termshow terminal recordings, which can be scripted and checked for drift. Builds are faster thanks to reused work, Quarto freeze on by default, and parallel tasks.</p>
<ul>
<li>Read more: <a href="https://opensource.posit.co/blog/2026-11-12_great-docs-general-update/" target="_blank" rel="noopener">Great Docs Since v0.10: New Features, Faster Builds, and a Firmer Foundation</a></li>
</ul>
<h3 id="mizu-thread-speed-parallel-r-and-python-over-shared-memory">mizu: thread-speed parallel R and Python over shared memory
</h3>
<p>mizu (R) and pymizu (Python) 0.1.0 are bindings to libmizu, a brand new C library for lock-free, shared-memory parallelism. A task round trip takes under 1 µs, about 100× faster than mirai or <code>ProcessPoolExecutor</code>. The two bindings share a wire format, so R and Python can drive each other&rsquo;s workers, and data frames and Arrow tables pass between them as zero-copy views. They also support async that works with promises, Shiny and asyncio.</p>
<ul>
<li>Read more: <a href="https://opensource.posit.co/blog/2026-11-05_mizu-0-1-0/" target="_blank" rel="noopener">mizu: thread-speed parallel R and Python over shared memory</a></li>
</ul>
<h3 id="rray">rray
</h3>
<p>rray is back on CRAN! Inspired by NumPy, this array-focused R package offers broadcasting throughout and supports all kinds of array manipulation, including combining, splitting and permuting.</p>
<ul>
<li>Learn more: <a href="https://rray.r-lib.org/" target="_blank" rel="noopener">rray</a></li>
</ul>
<h3 id="shiny-for-r-115">Shiny for R 1.15
</h3>
<p>Shiny for R 1.15 bundles a version-matched Agent Skill that steers coding agents toward bslib layouts, ExtendedTask and good debugging practices. btw finds it automatically, or you can install it with <code>btw::btw_skill_install_package(&quot;shiny&quot;)</code>. Autoreload now uses OS file events through watcher (now a required dependency). Session handling is fixed too: reactives stay readable after a session closes, and reconnecting no longer causes errors. The release also includes <code>dateInput()</code> and <code>testServer()</code> improvements.</p>
<ul>
<li>Read more: <a href="https://opensource.posit.co/blog/2026-11-23_shiny-r-1-15/" target="_blank" rel="noopener">Shiny for R 1.15</a></li>
</ul>
<h2 id="ai-updates">AI updates
</h2>
<p>Catch up on the latest from Posit’s AI newsletter:</p>
<ul>
<li><a href="https://opensource.posit.co/blog/2026-11-12_ai-newsletter/" target="_blank" rel="noopener">Auto mode is now the default in Posit Assistant</a>: Auto mode makes Posit Assistant safer by reducing approval fatigue from Normal mode, the earlier default, which required users to approve most of the agent’s actions.</li>
<li><a href="https://opensource.posit.co/blog/2026-11-06_ai-newsletter/" target="_blank" rel="noopener">How to monitor costs with Posit Assistant</a>: Monitor costs with Posit Assistant’s estimated cost tracker to see what you’re spending as you work.</li>
</ul>
<h2 id="recent-data-science-lab-episodes">Recent Data Science Lab episodes
</h2>
<p>The Data Science Lab is an engaging, relaxed weekly webinar where we share data science workflows and tools. Missed a live session? Catch up on these recent episodes:</p>















  
  
  
  
  

  
  
  
  
  
    
  

  
  
  
  
  
    
  

  
  
  
  
  



<div class="grid grid-cols-2 gap-6 xl:gap-8 xl:gap-8 mb-6">
  
    <div>
      











  
  
  
  
  
















  
  
    
  












  
  





  
    
  











  
  






  





  
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  






















  
    
  





  
    
  


























<div id="item-f824220f449e537c613e45c614f1b31b" class="@container h-full">
  <a href="https://opensource.posit.co/resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/" title="How can you add AI voice agents to a mobile Shiny app? | Lucas Da Silva | DS Lab"
     class="card-link flex flex-col @venti:flex-row rounded-xl  h-full">

      



      
      

    
    
    <div class="w-full @venti:w-1/2 @venti:self-center aspect-[40/21] flex-shrink-0 flex items-center justify-center overflow-hidden rounded-xl">
      
        









  
  
    
    

    

    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @max-tall:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_6b1b4b158d3689b9.webp 1x,
                  /resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_7207cca5db599727.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_6f25c800f26de919.jpg"
          srcset="/resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_6f25c800f26de919.jpg 1x,
                  /resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_f86f7fccacd589d2.jpg 2x"
          alt="How can you add AI voice agents to a mobile Shiny app? | Lucas Da Silva | DS Lab"
          class="mx-auto h-full w-full object-cover"
          loading="lazy" />
      </picture>
    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @tall:@max-grande:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_7207cca5db599727.webp 1x,
                  /resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_2615779a5c0f8f70.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_f86f7fccacd589d2.jpg"
          srcset="/resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_f86f7fccacd589d2.jpg 1x,
                  /resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_65023fdebb54e230.jpg 2x"
          alt="How can you add AI voice agents to a mobile Shiny app? | Lucas Da Silva | DS Lab"
          class="mx-auto h-full w-full object-cover"
          loading="lazy" />
      </picture>
    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @grande:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_2615779a5c0f8f70.webp 1x,
                  /resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_46b9cd6b253d2f52.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_65023fdebb54e230.jpg"
          srcset="/resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_65023fdebb54e230.jpg 1x,
                  /resources/videos/2026-11-11_how-can-you-add-ai-voice-agents-to-a-mobile-shiny-app-lucas-da-silva-ds-lab/thumbnail_hu_8816eafad5a7a56e.jpg 2x"
          alt="How can you add AI voice agents to a mobile Shiny app? | Lucas Da Silva | DS Lab"
          class="mx-auto h-full w-full object-cover"
          loading="lazy" />
      </picture>
    
  
  


      
    </div>

    
    <div class="hidden gap-y-2 @nip:flex @venti:w-1/2 flex-auto flex-col p-3 @venti:pl-5 text-gray-700 mt-2">

      
      

      
      
      <div class="hidden @short:flex flex-wrap gap-x-2 items-center text-xs font-medium text-gray-500">
        
          <span>Nov 11, 2026</span>
          <span>|</span>
        
        
        
          <span>56 min</span>
          <span>|</span>
        
        
          <span>512 views</span>
          
        
        
      </div>
      

      
      <h3 class="m-0! mt-3 font-semibold text-sm @grande:text-lg @venti:text-xl @trenta:text-2xl line-clamp-2 text-sm @tall:text-base @grande:text-lg @venti:text-xl @trenta:text-2xl text-gray-600">How can you add AI voice agents to a mobile Shiny app? | Lucas Da Silva | DS Lab</h3>
      

      
        <p class="m-0! text-xs @short:text-sm @grande:text-md @venti:text-md @trenta:text-lg line-clamp-2 short@line-clamp-3 @tall:line-clamp-3 font-medium text-gray-600">Use shinyrealtime and GPT Realtime for a live voice agent, or MediaRecorder plus Deepgram for voice notes! Give the agent tools to do the work, and keep the app organized in Shiny modules.
In this Data Science Lab session, Lucas Da Silva, a data analyst at Suffolk Construction, demonstrates how his team uses AI and automation to bridge the gap between programming and construction field operations. Lucas presents the evolution of &lsquo;Vera,&rsquo; a tool designed to solve the manual friction of construction scheduling. With Shiny for Python, Deepgram transcription, and an LLM, voice notes from the job site can be mapped to schedule tasks and reviewed later, no paper needed.
The Data Science Lab is a live weekly call. Register at pos.it/dslab! Discord invites go out each week on lives calls. We&rsquo;d love to have you! It&rsquo;s is an open, messy space for learning and asking questions. Think of it like pair coding with a friend or two. Learn something new, and share what you know to help others grow.
Originally recorded September 29, 2026.
0:00 Welcome to the Data Science Lab 1:33 Meet Lucas Da Silva, Suffolk Construction 2:53 How the session works 4:26 Construction scheduling 101: planners and superintendents 5:49 The problem: a digital schedule turned into paper and back 7:42 The proposed solution: a voice assistant on the job site 9:39 Getting buy-in for AI tools 11:11 Demo: Vera, the voice agent (built with shinyrealtime) 17:15 Q&amp;A: speed, undo, and how the agent uses tools 20:10 Q&amp;A: BIM, change history, and exporting to P6 22:07 Field-testing lessons: why friction isn&rsquo;t always a bad thing 25:28 Q&amp;A: security and privacy 27:22 Demo: Vera Notes and Vera Review 29:29 Q&amp;A: accents and construction lingo 34:07 Mapping notes to schedule tasks with an LLM 37:11 Learning Shiny on the job 40:37 Code walkthrough: Shiny modules 42:19 Recording audio with JavaScript and MediaRecorder 43:32 Transcription with Deepgram 46:03 Don&rsquo;t one-shot it: building an app step by step 47:42 How audio flows through the app 49:04 Storing and structuring notes 50:10 Q&amp;A: Shiny vs. Streamlit, and why Shiny for Python 52:00 Demo code on GitHub (QR code) 54:17 Wrap-up and thank you
Resources:
Download Positron (the IDE Lucas uses): https://positron.posit.co/download.html Lucas’ GitHub: https://github.com/Suffolk-Construction-Corporation-Inc/presentations_and_materials/tree/main/data_science_lab_2026 Lucas’ presentation: https://github.com/Suffolk-Construction-Corporation-Inc/presentations_and_materials/tree/main/data_science_lab_2026 Shiny modules: https://mastering-shiny.org/scaling-modules.html data-dict package: https://data-dict.tidyverse.org/ Voice-Enabled Applications
Shinyrealtime: https://github.com/posit-dev/shinyrealtime Deepgram: https://deepgram.com Deepgram repo: https://github.com/deepgram/deepgram-python-sdk Talk To Your Data Applications
commons: https://opensource.posit.co/blog/2026-09-15_commons-0-1-0/ commons repo: https://posit-dev.github.io/commons/ Other Cool Things Lucas Saw At Conf That May (or May Not) Be Relevant
Shinyreact: https://github.com/posit-dev/shinyreact Data-dict: https://data-dict.tidyverse.org/ </p>
      

      

      <div class="grow"></div>
      
        
          <div class="hidden @grande:flex flex-wrap gap-x-1 gap-y-4 py-2 overflow-hidden h-10 items-end">
            
              <span class="pill">
                data-dict
              </span>
            
              <span class="pill">
                Positron
              </span>
            
              <span class="pill">
                Shiny for Python
              </span>
            
              <span class="pill">
                Shiny
              </span>
            
              <span class="pill">
                shinyreact
              </span>
            
              <span class="pill">
                tidyverse
              </span>
            
              <span class="pill">
                tidyverse.org
              </span>
            
          </div>
        
      
    </div>
  </a>
</div>


    </div>
  
    <div>
      











  
  
  
  
  
















  
  
    
  












  
  





  
    
  











  
  






  





  
  
    
  
    
  
    
  
    
  






















  
    
  





  
    
  


























<div id="item-bb3eafd71c0452278ea3141ba095ace3" class="@container h-full">
  <a href="https://opensource.posit.co/resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/" title="How do you use Nix &amp; rix for data science? | Eric Nantz | Data Science Lab"
     class="card-link flex flex-col @venti:flex-row rounded-xl  h-full">

      



      
      

    
    
    <div class="w-full @venti:w-1/2 @venti:self-center aspect-[40/21] flex-shrink-0 flex items-center justify-center overflow-hidden rounded-xl">
      
        









  
  
    
    

    

    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @max-tall:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_f2609377fc4faa32.webp 1x,
                  /resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_29d41ac8052a838a.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_6996e12c0b0bc6b6.jpg"
          srcset="/resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_6996e12c0b0bc6b6.jpg 1x,
                  /resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_40c6fb97342b6f4d.jpg 2x"
          alt="How do you use Nix &amp; rix for data science? | Eric Nantz | Data Science Lab"
          class="mx-auto h-full w-full object-cover"
          loading="lazy" />
      </picture>
    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @tall:@max-grande:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_29d41ac8052a838a.webp 1x,
                  /resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_e106b5dd0a1f20be.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_40c6fb97342b6f4d.jpg"
          srcset="/resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_40c6fb97342b6f4d.jpg 1x,
                  /resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_5bc37b75934f0c08.jpg 2x"
          alt="How do you use Nix &amp; rix for data science? | Eric Nantz | Data Science Lab"
          class="mx-auto h-full w-full object-cover"
          loading="lazy" />
      </picture>
    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @grande:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_e106b5dd0a1f20be.webp 1x,
                  /resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_4d0001d5f81aef3a.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_5bc37b75934f0c08.jpg"
          srcset="/resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_5bc37b75934f0c08.jpg 1x,
                  /resources/videos/2026-11-16_how-do-you-use-nix-rix-for-data-science-eric-nantz-data-science-lab/thumbnail_hu_aaaa93a5033e3a19.jpg 2x"
          alt="How do you use Nix &amp; rix for data science? | Eric Nantz | Data Science Lab"
          class="mx-auto h-full w-full object-cover"
          loading="lazy" />
      </picture>
    
  
  


      
    </div>

    
    <div class="hidden gap-y-2 @nip:flex @venti:w-1/2 flex-auto flex-col p-3 @venti:pl-5 text-gray-700 mt-2">

      
      

      
      
      <div class="hidden @short:flex flex-wrap gap-x-2 items-center text-xs font-medium text-gray-500">
        
          <span>Nov 16, 2026</span>
          <span>|</span>
        
        
        
          <span>59 min</span>
          <span>|</span>
        
        
          <span>2k views</span>
          
        
        
      </div>
      

      
      <h3 class="m-0! mt-3 font-semibold text-sm @grande:text-lg @venti:text-xl @trenta:text-2xl line-clamp-2 text-sm @tall:text-base @grande:text-lg @venti:text-xl @trenta:text-2xl text-gray-600">How do you use Nix &amp; rix for data science? | Eric Nantz | Data Science Lab</h3>
      

      
        <p class="m-0! text-xs @short:text-sm @grande:text-md @venti:text-md @trenta:text-lg line-clamp-2 short@line-clamp-3 @tall:line-clamp-3 font-medium text-gray-600">You can use the {rix} R package as a bridge to Nix, allowing you to define a safe, sandboxed environment using familiar R syntax rather than mastering Nix’s complex DSL (domain-specific language)!
The Data Science Lab is a live weekly call. Register at pos.it/dslab! Discord invites go out each week on lives calls. We&rsquo;d love to have you! It&rsquo;s is an open, messy space for learning and asking questions. Think of it like pair coding with a friend or two. Learn something new, and share what you know to help others grow.
On this Lab, Eric Nantz, Senior Directory - Innovation Statistics at Eli Lilly &amp; Company, showcases how the {rix} R package, alongside Nix, empowers a data scientist to create reproducible, isolated, and efficient analytical environments.
NOTE! Eric had some technical difficulties during this recording, so please give us some grace! There are a couple of times where he drops off Zoom because his system crashes (which has nothing to do with Nix or rix, we promise!), but you can follow the timestamps below to get back on track.
Hosting crew from Posit: Libby Heeren, Isabella Velásquez Recorded: September 1, 2026
Eric Nantz&rsquo;s socials and urls:
Bluesky: https://bsky.app/profile/rpodcast.bsky.social Mastodon: https://podcastindex.social/@rpodcast LinkedIn: https://www.linkedin.com/in/eric-nantz-6621617/ GitHub: https://github.com/rpodcast R-Podcast: https://r-podcast.org R Weekly Highlights Podcast: https://serve.podhome.fm/r-weekly-highlights Shiny Developer Series: https://shinydevseries.com Resources mentioned in video and/or the chat:
NixOS lab management example (nixos-lab): https://github.com/giovantenne/nixos-lab DINUM (France) is switching to NixOS: https://discourse.nixos.org/t/dinum-france-is-switching-to-nixos/77558 devenv.sh: https://devenv.sh/ Eric&rsquo;s Nix/{rix} talk from R/Medicine: https://www.youtube.com/watch?v=-NARVwViEwA Slides for Eric&rsquo;s Nix/{rix} talk: https://rpodcast.github.io/rixshiny-rmed2025/#/title-slide Zero to Nix: https://zero-to-nix.com/ What is Nix (Shopify Engineering): https://shopify.engineering/what-is-nix What is Nix (Serokell): https://serokell.io/blog/what-is-nix xkcd: Dependency comic: https://xkcd.com/2347/ Timestamps:
00:00 Introduction 03:04 &ldquo;Why do we need reproducible environments?&rdquo; 05:42 What is Nix? 06:40 Introducing the {rix} R package 07:49 Demo: Project-specific R workflows with Nix 09:05 R Weekly Quarto calendar dashboard demo 11:15 Declaring dependencies in R with rix() 12:57 Generating the default.nix configuration file 15:38 &ldquo;Does this work with Positron?&rdquo; 15:46 &ldquo;Can you add packages to the environment later?&rdquo; 17:06 &ldquo;Who would find rix most useful?&rdquo; 19:57 Building the environment with nix-build 21:14 Entering the sandbox with nix-shell 22:20 Connecting IDEs like Positron and VS Code to the Nix shell 23:57 &ldquo;How does this work with Quarto and R/Python code chunks?&rdquo; 26:22 &ldquo;Does rix handle transitive dependencies?&rdquo; 27:54 The Nix store and immutable packages 28:50 &ldquo;What does this mean for packages that are not on CRAN?&rdquo; 30:55 Deploying with GitHub Actions and Nix 31:58 Zoom drop 35:40 Eric returns! 34:28 Comparing Nix and rix to renv, arv, and uvr 40:07 &ldquo;What is the status of Nix on Windows?&rdquo; 41:52 &ldquo;Are dev containers analogous to Docker?&rdquo; 43:27 Zoom drop 2 45:27 Eric returns again! 43:48 Using dev containers in Positron 45:04 &ldquo;What are your opinions on rix versus devenv.sh?&rdquo; 45:53 Collaborating and deploying projects with Nix 48:29 Bit-for-bit reproducibility: Nix vs. renv restore 52:01 &ldquo;Is it harder to use packages that are not on CRAN?&rdquo; 54:26 &ldquo;Can arv and rix be installed on the same system, or do they conflict?&rdquo; 55:30 Comparing rix, devenv, and direnv 57:42 Wrap-up and mentioning Bioconductor packages
</p>
      

      
        <div class="text-sm @grande:text-md">
          <div class="mt-2 flex flex-row gap-x-4 items-center">

  <div class="flex flex-row flex-shrink-0"><img
          src="https://opensource.posit.co/people/isabella-vel%C3%A1squez/headshot.jpeg"
          alt="Isabella Velásquez"
          class="my-0! w-6 h-6 rounded-full object-cover ring-2 ring-white "
          style="z-index: 10;"
        ></div><div class="line-clamp-2 font-medium text-gray-600">Isabella Velásquez</div></div>
        </div>
      

      <div class="grow"></div>
      
        
          <div class="hidden @grande:flex flex-wrap gap-x-1 gap-y-4 py-2 overflow-hidden h-10 items-end">
            
              <span class="pill">
                Positron
              </span>
            
              <span class="pill">
                Quarto
              </span>
            
              <span class="pill">
                renv
              </span>
            
              <span class="pill">
                Shiny
              </span>
            
          </div>
        
      
    </div>
  </a>
</div>


    </div>
  
</div>


<ul>
<li>Find all the recordings: <a href="https://www.youtube.com/playlist?list=PL9HYL-VRX0oSeWeMEGQt0id7adYQXebhT" target="_blank" rel="noopener">DS Lab YouTube Playlist</a></li>
<li>Register for the Data Science Lab here: <a href="https://pos.it/dslab" target="_blank" rel="noopener">pos.it/dslab</a></li>
<li>If you&rsquo;ve watched an episode (live or on demand), please consider taking our DS Lab End-of-Year survey: <a href="https://pos.it/dslab-survey" target="_blank" rel="noopener">Take the survey</a></li>
</ul>
<h2 id="showcases-from-the-community">Showcases from the community
</h2>
<p>Enjoyed Lucas&rsquo; Data Science Lab above? See more of the amazing work Suffolk Construction is doing with data in this video from Blake Abbenante:</p>
<script src="https://fast.wistia.com/player.js" async></script><script src="https://fast.wistia.com/embed/uc74eevf5o.js" async type="module"></script><style>wistia-player[media-id='uc74eevf5o']:not(:defined) { background: center / contain no-repeat url('https://fast.wistia.com/embed/medias/uc74eevf5o/swatch'); display: block; filter: blur(5px); padding-top:125.0%; }</style> <wistia-player media-id="uc74eevf5o" aspect="0.8"></wistia-player>
<p>Check out USDA_ERS&rsquo; new interactive Food Dollar tool, built in <a href="https://shiny.posit.co/py/" target="_blank" rel="noopener">Shiny for Python</a>! Thank you for sharing, Quinton Baker.</p>
<center><iframe src="https://www.linkedin.com/embed/feed/update/urn:li:share:7528489493365178368?collapsed=1" height="551" width="504" frameborder="0" allowfullscreen="" title="Embedded post"></iframe></center>
<h2 id="help-shape-glimpse-in-2027">Help shape Glimpse in 2027
</h2>
<p>As 2026 comes to a close, I&rsquo;d love to hear your ideas for making the Glimpse newsletter better in the new year. What would you like to see more (or less) of? Send your thoughts to isabella [dot] velasquez [at] posit [dot] co.</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-12-02_glimpse-2026-12/thumbnail.jpg" length="68574" type="image/jpeg" />
    </item>
    <item>
      <title>Help shape Positron: take our survey</title>
      <link>https://opensource.posit.co/blog/2026-12-01_positron-survey/</link>
      <pubDate>Tue, 01 Dec 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-12-01_positron-survey/</guid>
      <dc:creator>Jeroen Janssens</dc:creator><description><![CDATA[<p>We build Positron in the open, and we&rsquo;d like to know how it&rsquo;s going for you. So we put together a short survey: about five minutes, and almost every question is optional.</p>















  




  











<a href="https://survey.positron.posit.co/?src=blog" target="_blank" rel="noopener noreferrer"
  class="btn-shortcode inline-flex mb-5 mr-5 items-center px-4 py-3 text-sm leading-5 gap-2 rounded-lg bg-blue-500 text-white font-semibold align-middle hover:bg-blue-600 transition no-underline">Take the survey<span class="icon-[tabler--external-link] w-5 h-5 flex-none"></span></a>


<h2 id="we-want-to-hear-from-everyone">We want to hear from everyone
</h2>
<p>The survey is for anyone who writes code to work with data, whatever your relationship with Positron:</p>
<ul>
<li><strong>You use Positron</strong>, every day or now and then. Tell us what works and what gets in your way.</li>
<li><strong>You tried Positron and stopped.</strong> We&rsquo;d really like to know why. If you went back to RStudio, VS Code or something else, that&rsquo;s exactly the kind of answer we can learn the most from.</li>
<li><strong>You&rsquo;ve never tried Positron</strong>, or you&rsquo;d never heard of it until now. Tell us what&rsquo;s stopping you, and what you&rsquo;d want to know first.</li>
</ul>
<p>More than 250 people have filled it in since we first shared it last week. Thank you! Most of them use Positron already, so if you&rsquo;ve stopped using it or never started, your answers count double for us right now.</p>
<h2 id="what-we-ask">What we ask
</h2>
<p>The first question asks how you relate to Positron, and the survey takes it from there, so you only get questions that apply to you. Current users get asked what they like and what we should improve, people who stopped get asked why, and people who haven&rsquo;t tried it get asked what&rsquo;s in the way. At the end, there are a few questions about the languages and tools you use, so we can compare answers between groups.</p>
<h2 id="what-happens-with-your-answers">What happens with your answers
</h2>
<p>The Positron team reads every response, and the answers feed straight into what we work on next.</p>
<p>We don&rsquo;t collect your name or IP address. Leaving your email is optional, and only if you want to hear from us: you can say we may email you a few questions about your answers, or that you&rsquo;re open to a 30-minute user-research interview. We only use your email for what you ticked, and we delete it 12 months after the survey closes. See Posit&rsquo;s <a href="https://posit.co/about/privacy-policy" target="_blank" rel="noopener">privacy policy</a> for the details.</p>
<p>Found a bug in Positron? The survey isn&rsquo;t the fastest way to get it fixed. Please <a href="https://github.com/posit-dev/positron/issues" target="_blank" rel="noopener">open an issue on GitHub</a> instead, where it goes straight to the people who can fix it.</p>
<p>Thank you for taking the time!</p>















  




  











<a href="https://survey.positron.posit.co/?src=blog" target="_blank" rel="noopener noreferrer"
  class="btn-shortcode inline-flex mb-5 mr-5 items-center px-4 py-3 text-sm leading-5 gap-2 rounded-lg bg-blue-500 text-white font-semibold align-middle hover:bg-blue-600 transition no-underline">Take the survey<span class="icon-[tabler--external-link] w-5 h-5 flex-none"></span></a>


]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-12-01_positron-survey/header.png" length="181984" type="image/png" />
    </item>
    <item>
      <title>Data Validation Libraries for Polars (2026 Edition)</title>
      <link>https://opensource.posit.co/blog/2026-11-30_validation-libs-2026/</link>
      <pubDate>Mon, 30 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-11-30_validation-libs-2026/</guid>
      <dc:creator>Rich Iannone</dc:creator><description><![CDATA[<p>In the middle of 2025 we published a <a href="https://opensource.posit.co/blog/2025-06-04_validation-libs-2025/" target="_blank" rel="noopener">survey of data validation
libraries for
Polars</a>,
comparing five Python packages that could check a Polars DataFrame
against a set of expectations. A year and a half later, enough has
changed to make a second look worthwhile. Polars is now at <code>v2.2</code>,
following the <code>v2.0</code> release in October 2026. All five libraries from
the first survey have had new releases, and two of them have moved up a
major version. Several newer libraries have also appeared, and some of
them take approaches we didn&rsquo;t see at all the first time around:
validation through function decorators, schemas written as
<code>typing.Protocol</code> classes, and a single schema that both validates data
and generates it.</p>
<p>This edition covers nine libraries. The five returning ones are
<strong>Pandera</strong>, <strong>Patito</strong>, <strong>Pointblank</strong>, <strong>Validoopsie</strong>, and
<strong>Dataframely</strong>, and the four newcomers are <strong>Daffy</strong>, <strong>checkedframe</strong>,
<strong>Pavise</strong>, and <strong>polspec</strong>. We&rsquo;ll run every one of them against the
same small table we used in 2025, so you can compare the examples with
each other and with the earlier edition. One thing kept coming up as we
looked at them: more and more of these libraries use
<a href="https://narwhals-dev.github.io/narwhals/" target="_blank" rel="noopener">Narwhals</a>, a compatibility
layer that lets the same code work with Polars, Pandas, PyArrow, and
several other DataFrame libraries. That trend gets a section of its own
near the end.</p>
<div class="callout callout-note" role="note" aria-label="Note">
<div class="callout-body">
<p>As in 2025, Great Expectations is not included here. It remains one of
the most established validation frameworks in the Python ecosystem,
but it still doesn&rsquo;t offer native Polars support (the <a href="https://github.com/great-expectations/great_expectations/issues/10702" target="_blank" rel="noopener">issue proposing
Narwhals</a>
as a route to it remains open).</p>
</div>
</div>
<h2 id="the-libraries-at-a-glance">The Libraries at a Glance
</h2>
<p>The table below summarizes the nine libraries. The star counts are from
GitHub at the end of November 2026 and are only meant to give a rough
sense of how well known each project is. Several of the smaller projects
here are well made and actively maintained, and a low count often says
more about a library&rsquo;s age than about its quality.</p>
<div id="gebcumwjvl" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>
#gebcumwjvl table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }
#gebcumwjvl thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#gebcumwjvl p { margin: 0; padding: 0; }
 #gebcumwjvl .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #gebcumwjvl .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #gebcumwjvl .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 10px; padding-right: 10px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #gebcumwjvl .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; border-top-color: #FFFFFF; border-top-width: 0; }
 #gebcumwjvl .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #gebcumwjvl .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #gebcumwjvl .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #gebcumwjvl .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; overflow-x: hidden; }
 #gebcumwjvl .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #gebcumwjvl .gt_column_spanner_outer:first-child { padding-left: 0; }
 #gebcumwjvl .gt_column_spanner_outer:last-child { padding-right: 0; }
 #gebcumwjvl .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #gebcumwjvl .gt_spanner_row { border-bottom-style: hidden; }
 #gebcumwjvl .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #gebcumwjvl .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #gebcumwjvl .gt_from_md> :first-child { margin-top: 0; }
 #gebcumwjvl .gt_from_md> :last-child { margin-bottom: 0; }
 #gebcumwjvl .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #gebcumwjvl .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 10px; padding-right: 10px; }
 #gebcumwjvl .gt_indent_1 { text-indent: 5px; }
 #gebcumwjvl .gt_indent_2 { text-indent: calc(5px * 2); }
 #gebcumwjvl .gt_indent_3 { text-indent: calc(5px * 3); }
 #gebcumwjvl .gt_indent_4 { text-indent: calc(5px * 4); }
 #gebcumwjvl .gt_indent_5 { text-indent: calc(5px * 5); }
 #gebcumwjvl .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 10px; padding-right: 10px; vertical-align: top; }
 #gebcumwjvl .gt_row_group_first td { border-top-width: 2px; }
 #gebcumwjvl .gt_row_group_first th { border-top-width: 2px; }
 #gebcumwjvl .gt_striped { color: #333333; background-color: #F4F4F4; }
 #gebcumwjvl .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #gebcumwjvl .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #gebcumwjvl .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #gebcumwjvl .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #gebcumwjvl .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #gebcumwjvl .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #gebcumwjvl .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #gebcumwjvl .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #gebcumwjvl .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 10px; padding-right: 10px; text-align: left; }
 #gebcumwjvl .gt_left { text-align: left; }
 #gebcumwjvl .gt_center { text-align: center; }
 #gebcumwjvl .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #gebcumwjvl .gt_font_normal { font-weight: normal; }
 #gebcumwjvl .gt_font_bold { font-weight: bold; }
 #gebcumwjvl .gt_font_italic { font-style: italic; }
 #gebcumwjvl .gt_super { font-size: 65%; }
 #gebcumwjvl .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #gebcumwjvl .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #gebcumwjvl .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #gebcumwjvl .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 10px; padding-right: 10px; text-align: left; }
 #gebcumwjvl .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #gebcumwjvl .gt_asterisk { font-size: 100%; vertical-align: 0; }
</style>
<table style="table-layout: fixed;; width: 0px" class="gt_table" data-quarto-disable-processing="true" data-quarto-bootstrap="false">
<colgroup>
  <col style="width:130px;"/>
  <col style="width:80px;"/>
  <col style="width:70px;"/>
  <col style="width:240px;"/>
  <col style="width:260px;"/>
</colgroup>
<thead>
<tr class="gt_col_headings">
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="lib">Library</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="version">Version</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="stars">⭐</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="style">Approach</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="backends">DataFrames</th>
</tr>
</thead>
<tbody class="gt_table_body">
  <tr class="gt_group_heading_row">
    <th class="gt_group_heading" colspan="5" scope="colgroup" id="Returning-from-2025">Returning from 2025</th>
  </tr>
  <tr>
    <td headers="Returning-from-2025 lib" class="gt_row gt_left"><a href="https://github.com/unionai-oss/pandera">Pandera</a></td>
    <td headers="Returning-from-2025 version" class="gt_row gt_left">0.36.0</td>
    <td headers="Returning-from-2025 stars" class="gt_row gt_right">4,542</td>
    <td headers="Returning-from-2025 style" class="gt_row gt_left">Schema objects or class-based models</td>
    <td headers="Returning-from-2025 backends" class="gt_row gt_left">Polars, Pandas, PyArrow, Ibis, PySpark, DataFusion</td>
  </tr>
  <tr>
    <td headers="Returning-from-2025 lib" class="gt_row gt_left"><a href="https://github.com/JakobGM/patito">Patito</a></td>
    <td headers="Returning-from-2025 version" class="gt_row gt_left">0.8.6</td>
    <td headers="Returning-from-2025 stars" class="gt_row gt_right">644</td>
    <td headers="Returning-from-2025 style" class="gt_row gt_left">Pydantic-style models</td>
    <td headers="Returning-from-2025 backends" class="gt_row gt_left">Polars</td>
  </tr>
  <tr>
    <td headers="Returning-from-2025 lib" class="gt_row gt_left"><a href="https://github.com/posit-dev/pointblank">Pointblank</a></td>
    <td headers="Returning-from-2025 version" class="gt_row gt_left">1.3.0</td>
    <td headers="Returning-from-2025 stars" class="gt_row gt_right">506</td>
    <td headers="Returning-from-2025 style" class="gt_row gt_left">Chained validation steps with reports</td>
    <td headers="Returning-from-2025 backends" class="gt_row gt_left">Polars, Pandas, PySpark, DuckDB and other databases</td>
  </tr>
  <tr>
    <td headers="Returning-from-2025 lib" class="gt_row gt_left"><a href="https://github.com/akmalsoliev/Validoopsie">Validoopsie</a></td>
    <td headers="Returning-from-2025 version" class="gt_row gt_left">1.8.1</td>
    <td headers="Returning-from-2025 stars" class="gt_row gt_right">91</td>
    <td headers="Returning-from-2025 style" class="gt_row gt_left">Chained checks with impact levels</td>
    <td headers="Returning-from-2025 backends" class="gt_row gt_left">Anything Narwhals supports</td>
  </tr>
  <tr>
    <td headers="Returning-from-2025 lib" class="gt_row gt_left"><a href="https://github.com/Quantco/dataframely">Dataframely</a></td>
    <td headers="Returning-from-2025 version" class="gt_row gt_left">3.1.3</td>
    <td headers="Returning-from-2025 stars" class="gt_row gt_right">630</td>
    <td headers="Returning-from-2025 style" class="gt_row gt_left">Polars-native schema classes</td>
    <td headers="Returning-from-2025 backends" class="gt_row gt_left">Polars</td>
  </tr>
  <tr class="gt_group_heading_row">
    <th class="gt_group_heading" colspan="5" scope="colgroup" id="New-in-This-Edition">New in This Edition</th>
  </tr>
  <tr>
    <td headers="New-in-This-Edition lib" class="gt_row gt_left"><a href="https://github.com/vertti/daffy">Daffy</a></td>
    <td headers="New-in-This-Edition version" class="gt_row gt_left">3.3.0</td>
    <td headers="New-in-This-Edition stars" class="gt_row gt_right">60</td>
    <td headers="New-in-This-Edition style" class="gt_row gt_left">Decorators on functions</td>
    <td headers="New-in-This-Edition backends" class="gt_row gt_left">Polars, Pandas, Modin, PyArrow</td>
  </tr>
  <tr>
    <td headers="New-in-This-Edition lib" class="gt_row gt_left"><a href="https://github.com/CangyuanLi/checkedframe">checkedframe</a></td>
    <td headers="New-in-This-Edition version" class="gt_row gt_left">0.1.0</td>
    <td headers="New-in-This-Edition stars" class="gt_row gt_right">18</td>
    <td headers="New-in-This-Edition style" class="gt_row gt_left">Schema classes with flexible custom checks</td>
    <td headers="New-in-This-Edition backends" class="gt_row gt_left">Polars, Pandas, Modin, PyArrow, cuDF</td>
  </tr>
  <tr>
    <td headers="New-in-This-Edition lib" class="gt_row gt_left"><a href="https://github.com/kitagry/pavise">Pavise</a></td>
    <td headers="New-in-This-Edition version" class="gt_row gt_left">0.3.2</td>
    <td headers="New-in-This-Edition stars" class="gt_row gt_right">5</td>
    <td headers="New-in-This-Edition style" class="gt_row gt_left">Schemas as typing.Protocol classes</td>
    <td headers="New-in-This-Edition backends" class="gt_row gt_left">Polars, Pandas</td>
  </tr>
  <tr>
    <td headers="New-in-This-Edition lib" class="gt_row gt_left"><a href="https://github.com/MaxwellB13/polspec">polspec</a></td>
    <td headers="New-in-This-Edition version" class="gt_row gt_left">2.1.0</td>
    <td headers="New-in-This-Edition stars" class="gt_row gt_right">2</td>
    <td headers="New-in-This-Edition style" class="gt_row gt_left">One schema to validate and generate data</td>
    <td headers="New-in-This-Edition backends" class="gt_row gt_left">Polars 2</td>
  </tr>
</tbody>
</table>
</div>
<h2 id="the-test-case">The Test Case
</h2>
<p>To keep the comparison fair, every library in this survey validates the
same Polars DataFrame. It&rsquo;s the table from the 2025 edition, unchanged:
five users, each with an ID, an age, an email address, and a score. Two
of its rows have deliberate problems. The fifth user is 95 years old,
which is outside the age range we&rsquo;ll allow, and the third user&rsquo;s email
address isn&rsquo;t an email address at all.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">polars</span> <span class="k">as</span> <span class="nn">pl</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">user_data</span> <span class="o">=</span> <span class="n">pl</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">({</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;user_id&#34;</span><span class="p">:</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">],</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;age&#34;</span><span class="p">:</span> <span class="p">[</span><span class="mi">25</span><span class="p">,</span> <span class="mi">30</span><span class="p">,</span> <span class="mi">22</span><span class="p">,</span> <span class="mi">45</span><span class="p">,</span> <span class="mi">95</span><span class="p">],</span>  <span class="c1"># &lt;- includes a very high age</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;email&#34;</span><span class="p">:</span> <span class="p">[</span>
</span></span><span class="line"><span class="cl">        <span class="s2">&#34;user1@example.com&#34;</span><span class="p">,</span> <span class="s2">&#34;user2@example.com&#34;</span><span class="p">,</span> <span class="s2">&#34;invalid-email&#34;</span><span class="p">,</span>  <span class="c1"># &lt;- has an invalid email</span>
</span></span><span class="line"><span class="cl">        <span class="s2">&#34;user4@example.com&#34;</span><span class="p">,</span> <span class="s2">&#34;user5@example.com&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="p">],</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;score&#34;</span><span class="p">:</span> <span class="p">[</span><span class="mf">85.5</span><span class="p">,</span> <span class="mf">92.0</span><span class="p">,</span> <span class="mf">78.3</span><span class="p">,</span> <span class="mf">88.7</span><span class="p">,</span> <span class="mf">95.2</span><span class="p">]</span>
</span></span><span class="line"><span class="cl"><span class="p">})</span></span></span></code></pre></div></div>
<p>Each library will check the same five things. The columns should have
the expected types (integers for the ID and age, a string for the email,
a float for the score). Every <code>user_id</code> should be greater than zero,
every <code>age</code> should be between 18 and 80, every <code>email</code> should match a
simple email pattern, and every <code>score</code> should be between 0 and 100.
There are exactly two problems to find. What makes the comparison
interesting is how differently each one finds those problems, reports
them, and lets you deal with them.</p>
<h2 id="pandera">Pandera
</h2>
<p><strong>Pandera</strong> is the oldest and most widely used library in this survey,
and it keeps getting broader. Polars support arrived in early 2024, and
since the last survey the project has added a Narwhals-based backend
(<code>v0.32.0</code>, June 2026), first-class validation of PyArrow tables
(<code>v0.33.0</code>), and support for Apache DataFusion (<code>v0.35.0</code>). The Narwhals
backend lets Pandera&rsquo;s Polars, Ibis, and PySpark schemas share one
implementation instead of maintaining three, which makes it clear that
working across DataFrame libraries is a priority for the project.</p>
<p>The schema itself looks just as it did in 2025. Each column gets a type
and a list of checks, and you apply the schema to the data with
<code>validate()</code>:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">pandera.polars</span> <span class="k">as</span> <span class="nn">pa</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">schema</span> <span class="o">=</span> <span class="n">pa</span><span class="o">.</span><span class="n">DataFrameSchema</span><span class="p">({</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;user_id&#34;</span><span class="p">:</span> <span class="n">pa</span><span class="o">.</span><span class="n">Column</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">Int64</span><span class="p">,</span> <span class="n">checks</span><span class="o">=</span><span class="n">pa</span><span class="o">.</span><span class="n">Check</span><span class="o">.</span><span class="n">gt</span><span class="p">(</span><span class="mi">0</span><span class="p">)),</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;age&#34;</span><span class="p">:</span> <span class="n">pa</span><span class="o">.</span><span class="n">Column</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">Int64</span><span class="p">,</span> <span class="n">checks</span><span class="o">=</span><span class="p">[</span><span class="n">pa</span><span class="o">.</span><span class="n">Check</span><span class="o">.</span><span class="n">ge</span><span class="p">(</span><span class="mi">18</span><span class="p">),</span> <span class="n">pa</span><span class="o">.</span><span class="n">Check</span><span class="o">.</span><span class="n">le</span><span class="p">(</span><span class="mi">80</span><span class="p">)]),</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;email&#34;</span><span class="p">:</span> <span class="n">pa</span><span class="o">.</span><span class="n">Column</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">String</span><span class="p">,</span> <span class="n">checks</span><span class="o">=</span><span class="n">pa</span><span class="o">.</span><span class="n">Check</span><span class="o">.</span><span class="n">str_matches</span><span class="p">(</span><span class="sa">r</span><span class="s2">&#34;^[^@]+@[^@]+\.[^@]+$&#34;</span><span class="p">)),</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;score&#34;</span><span class="p">:</span> <span class="n">pa</span><span class="o">.</span><span class="n">Column</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">Float64</span><span class="p">,</span> <span class="n">checks</span><span class="o">=</span><span class="n">pa</span><span class="o">.</span><span class="n">Check</span><span class="o">.</span><span class="n">in_range</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">100</span><span class="p">))</span>
</span></span><span class="line"><span class="cl"><span class="p">})</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">try</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">schema</span><span class="o">.</span><span class="n">validate</span><span class="p">(</span><span class="n">user_data</span><span class="p">,</span> <span class="n">lazy</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="k">except</span> <span class="n">pa</span><span class="o">.</span><span class="n">errors</span><span class="o">.</span><span class="n">SchemaErrors</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="n">e</span><span class="o">.</span><span class="n">failure_cases</span><span class="p">)</span></span></span></code></pre></div></div>
<pre><code>shape: (2, 6)
┌───────────────┬────────────────┬────────┬─────────────────────────────────┬──────────────┬───────┐
│ failure_case  ┆ schema_context ┆ column ┆ check                           ┆ check_number ┆ index │
│ ---           ┆ ---            ┆ ---    ┆ ---                             ┆ ---          ┆ ---   │
│ str           ┆ str            ┆ str    ┆ str                             ┆ i32          ┆ i32   │
╞═══════════════╪════════════════╪════════╪═════════════════════════════════╪══════════════╪═══════╡
│ 95            ┆ Column         ┆ age    ┆ less_than_or_equal_to(80)       ┆ 1            ┆ 4     │
│ invalid-email ┆ Column         ┆ email  ┆ str_matches('^[^@]+@[^@]+\.[^@… ┆ 0            ┆ 2     │
└───────────────┴────────────────┴────────┴─────────────────────────────────┴──────────────┴───────┘
</code></pre>
<p>We need to correct something we said in 2025. We wrote then that
<strong>Pandera</strong> stops at the first failure, and while that is its default
behavior, passing <code>lazy=True</code> makes it run every check and collect all
of the failures before raising (<em>lazy</em> here means holding back the error
until every check has run). The result is the table above, a Polars
DataFrame of failure cases with the offending value, the column, the
check that failed, and the row index. Because the failures are
themselves data, you can filter them, join them back to the original
table, or write them to a log with the tools you already use.</p>
<p>What still sets <strong>Pandera</strong> apart is its statistical checks. A schema
can include hypothesis tests (a two-sample t-test between groups, for
instance), which makes it a good fit for data science work where the
distribution of a column matters as much as its individual values. It
also offers a class-based <code>DataFrameModel</code> API that works with static
type checkers, so the same schema can describe a function&rsquo;s inputs and
outputs as well as validate them at runtime.</p>
<h2 id="patito">Patito
</h2>
<p><strong>Patito</strong> brings the model-based style of Pydantic to DataFrames. A
schema is a class, each column is an annotated attribute, and
constraints use the same <code>Field</code> syntax that Pydantic users already
know:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">patito</span> <span class="k">as</span> <span class="nn">pt</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Annotated</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">class</span> <span class="nc">UserModel</span><span class="p">(</span><span class="n">pt</span><span class="o">.</span><span class="n">Model</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="n">user_id</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="n">pt</span><span class="o">.</span><span class="n">Field</span><span class="p">(</span><span class="n">gt</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="n">age</span><span class="p">:</span> <span class="n">Annotated</span><span class="p">[</span><span class="nb">int</span><span class="p">,</span> <span class="n">pt</span><span class="o">.</span><span class="n">Field</span><span class="p">(</span><span class="n">ge</span><span class="o">=</span><span class="mi">18</span><span class="p">,</span> <span class="n">le</span><span class="o">=</span><span class="mi">80</span><span class="p">)]</span>
</span></span><span class="line"><span class="cl">    <span class="n">email</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="n">pt</span><span class="o">.</span><span class="n">Field</span><span class="p">(</span><span class="n">pattern</span><span class="o">=</span><span class="sa">r</span><span class="s2">&#34;^[^@]+@[^@]+\.[^@]+$&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="n">score</span><span class="p">:</span> <span class="nb">float</span> <span class="o">=</span> <span class="n">pt</span><span class="o">.</span><span class="n">Field</span><span class="p">(</span><span class="n">ge</span><span class="o">=</span><span class="mf">0.0</span><span class="p">,</span> <span class="n">le</span><span class="o">=</span><span class="mf">100.0</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">try</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">UserModel</span><span class="o">.</span><span class="n">validate</span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="k">except</span> <span class="n">pt</span><span class="o">.</span><span class="n">exceptions</span><span class="o">.</span><span class="n">DataFrameValidationError</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="n">e</span><span class="p">)</span></span></span></code></pre></div></div>
<pre><code>2 validation errors for UserModel
age
  1 row with out of bound values. (type=value_error.rowvalue)
email
  1 row with out of bound values. (type=value_error.rowvalue)
</code></pre>
<p><strong>Patito</strong> reports every failure in a single pass, grouped by column,
and its messages read like Pydantic&rsquo;s own. The library has changed less
than the others since 2025 (its most recent release, <code>v0.8.6</code>, came out
in February), which makes sense for a tool that already does what it
sets out to do. It&rsquo;s still Polars-only, and it still has its most
distinctive feature: you can turn the rows of a validated DataFrame into
instances of the model, complete with any methods or properties you
define on the class. That&rsquo;s handy in applications that already use
Pydantic and need to treat the same records both as a table and as
objects. Its <code>.examples()</code> method, which generates valid test data from
a model, is also worth knowing about.</p>
<h2 id="pointblank">Pointblank
</h2>
<p><strong>Pointblank</strong>, which we develop at Posit, treats validation as a series
of steps and collects the results into a report. Each step is a method
on a <code>Validate</code> object, thresholds decide how many failing rows trigger
a warning, an error, or a critical state, and <code>interrogate()</code> runs the
whole plan:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">pointblank</span> <span class="k">as</span> <span class="nn">pb</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">schema</span> <span class="o">=</span> <span class="n">pb</span><span class="o">.</span><span class="n">Schema</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">columns</span><span class="o">=</span><span class="p">[(</span><span class="s2">&#34;user_id&#34;</span><span class="p">,</span> <span class="s2">&#34;Int64&#34;</span><span class="p">),</span> <span class="p">(</span><span class="s2">&#34;age&#34;</span><span class="p">,</span> <span class="s2">&#34;Int64&#34;</span><span class="p">),</span> <span class="p">(</span><span class="s2">&#34;email&#34;</span><span class="p">,</span> <span class="s2">&#34;String&#34;</span><span class="p">),</span> <span class="p">(</span><span class="s2">&#34;score&#34;</span><span class="p">,</span> <span class="s2">&#34;Float64&#34;</span><span class="p">)]</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">validation</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">pb</span><span class="o">.</span><span class="n">Validate</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">user_data</span><span class="p">,</span> <span class="n">label</span><span class="o">=</span><span class="s2">&#34;An example.&#34;</span><span class="p">,</span> <span class="n">tbl_name</span><span class="o">=</span><span class="s2">&#34;users&#34;</span><span class="p">,</span> <span class="n">thresholds</span><span class="o">=</span><span class="p">(</span><span class="mf">0.1</span><span class="p">,</span> <span class="mf">0.2</span><span class="p">,</span> <span class="mf">0.3</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">col_vals_gt</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;user_id&#34;</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">col_vals_between</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;age&#34;</span><span class="p">,</span> <span class="n">left</span><span class="o">=</span><span class="mi">18</span><span class="p">,</span> <span class="n">right</span><span class="o">=</span><span class="mi">80</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">col_vals_regex</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;email&#34;</span><span class="p">,</span> <span class="n">pattern</span><span class="o">=</span><span class="sa">r</span><span class="s2">&#34;^[^@]+@[^@]+\.[^@]+$&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">col_vals_between</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;score&#34;</span><span class="p">,</span> <span class="n">left</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">right</span><span class="o">=</span><span class="mi">100</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">col_schema_match</span><span class="p">(</span><span class="n">schema</span><span class="o">=</span><span class="n">schema</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">interrogate</span><span class="p">()</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">validation</span></span></span></code></pre></div></div>
<div id="pb_tbl" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap');
#pb_tbl table {
          font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }
#pb_tbl thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#pb_tbl p { margin: 0; padding: 0; }
 #pb_tbl .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 90%; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #pb_tbl .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #pb_tbl .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #pb_tbl .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
 #pb_tbl .gt_heading { background-color: #FFFFFF; text-align: left; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #pb_tbl .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #pb_tbl .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #pb_tbl .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
 #pb_tbl .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #pb_tbl .gt_column_spanner_outer:first-child { padding-left: 0; }
 #pb_tbl .gt_column_spanner_outer:last-child { padding-right: 0; }
 #pb_tbl .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #pb_tbl .gt_spanner_row { border-bottom-style: hidden; }
 #pb_tbl .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #pb_tbl .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #pb_tbl .gt_from_md> :first-child { margin-top: 0; }
 #pb_tbl .gt_from_md> :last-child { margin-bottom: 0; }
 #pb_tbl .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #pb_tbl .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
 #pb_tbl .gt_indent_1 { text-indent: 5px; }
 #pb_tbl .gt_indent_2 { text-indent: calc(5px * 2); }
 #pb_tbl .gt_indent_3 { text-indent: calc(5px * 3); }
 #pb_tbl .gt_indent_4 { text-indent: calc(5px * 4); }
 #pb_tbl .gt_indent_5 { text-indent: calc(5px * 5); }
 #pb_tbl .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
 #pb_tbl .gt_row_group_first td { border-top-width: 2px; }
 #pb_tbl .gt_row_group_first th { border-top-width: 2px; }
 #pb_tbl .gt_striped { color: #333333; background-color: #F4F4F4; }
 #pb_tbl .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #pb_tbl .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #pb_tbl .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #pb_tbl .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #pb_tbl .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #pb_tbl .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #pb_tbl .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #pb_tbl .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #pb_tbl .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #pb_tbl .gt_left { text-align: left; }
 #pb_tbl .gt_center { text-align: center; }
 #pb_tbl .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #pb_tbl .gt_font_normal { font-weight: normal; }
 #pb_tbl .gt_font_bold { font-weight: bold; }
 #pb_tbl .gt_font_italic { font-style: italic; }
 #pb_tbl .gt_super { font-size: 65%; }
 #pb_tbl .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #pb_tbl .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #pb_tbl .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #pb_tbl .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
 #pb_tbl .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #pb_tbl .gt_asterisk { font-size: 100%; vertical-align: 0; }
</style>
<table style="table-layout: fixed;; width: 0px" class="gt_table" aria-labelledby="pb_tbl-title" aria-describedby="pb_tbl-subtitle" data-quarto-disable-processing="true" data-quarto-bootstrap="false">
<colgroup>
  <col style="width:4px;"/>
  <col style="width:35px;"/>
  <col style="width:190px;"/>
  <col style="width:120px;"/>
  <col style="width:120px;"/>
  <col style="width:50px;"/>
  <col style="width:50px;"/>
  <col style="width:60px;"/>
  <col style="width:60px;"/>
  <col style="width:60px;"/>
  <col style="width:30px;"/>
  <col style="width:30px;"/>
  <col style="width:30px;"/>
  <col style="width:65px;"/>
</colgroup>
<thead>
  <tr class="gt_heading">
    <td colspan="14" class="gt_heading gt_title gt_font_normal" id="pb_tbl-title" style="color: #444444;font-size: 28px;text-align: left;font-weight: bold; text-align: left;">Pointblank Validation</td>
  </tr>
  <tr class="gt_heading">
    <td colspan="14" class="gt_heading gt_subtitle gt_font_normal gt_bottom_border" id="pb_tbl-subtitle" style="text-align: left;"><div><span style='text-decoration-style: solid; text-decoration-color: #ADD8E6; text-decoration-line: underline; text-underline-position: under; color: #333333; font-variant-numeric: tabular-nums; padding-left: 4px; margin-right: 5px; padding-right: 2px;'>An example.</span><div style="padding-top: 10px; padding-bottom: 5px;"><span style='background-color: #0075FF; color: #FFFFFF; padding: 0.5em 0.5em; position: inherit; text-transform: uppercase; margin: 5px 0px 5px 0px; border: solid 1px #0075FF; font-weight: bold; padding: 2px 15px 2px 15px; font-size: 10px;'>Polars</span><span style='background-color: none; color: #222222; padding: 0.5em 0.5em; position: inherit; margin: 5px 10px 5px -4px; border: solid 1px #0075FF; font-weight: bold; padding: 2px 15px 2px 15px; font-size: 10px;'>users</span><span><span style="background-color: #AAAAAA; color: white; padding: 0.5em 0.5em; position: inherit; text-transform: uppercase; margin: 5px 0px 5px 5px; border: solid 1px #AAAAAA; font-weight: bold; padding: 2px 15px 2px 15px; font-size: smaller;">WARNING</span><span style="background-color: none; color: #333333; padding: 0.5em 0.5em; position: inherit; margin: 5px 0px 5px -4px; font-weight: bold; border: solid 1px #AAAAAA; padding: 2px 15px 2px 15px; font-size: smaller; margin-right: 5px;">0.1</span><span style="background-color: #EBBC14; color: white; padding: 0.5em 0.5em; position: inherit; text-transform: uppercase; margin: 5px 0px 5px 1px; border: solid 1px #EBBC14; font-weight: bold; padding: 2px 15px 2px 15px; font-size: smaller;">ERROR</span><span style="background-color: none; color: #333333; padding: 0.5em 0.5em; position: inherit; margin: 5px 0px 5px -4px; font-weight: bold; border: solid 1px #EBBC14; padding: 2px 15px 2px 15px; font-size: smaller; margin-right: 5px;">0.2</span><span style="background-color: #FF3300; color: white; padding: 0.5em 0.5em; position: inherit; text-transform: uppercase; margin: 5px 0px 5px 1px; border: solid 1px #FF3300; font-weight: bold; padding: 2px 15px 2px 15px; font-size: smaller;">CRITICAL</span><span style="background-color: none; color: #333333; padding: 0.5em 0.5em; position: inherit; margin: 5px 0px 5px -4px; font-weight: bold; border: solid 1px #FF3300; padding: 2px 15px 2px 15px; font-size: smaller;">0.3</span></span></div></div></td>
  </tr>
<tr class="gt_col_headings">
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-status_color"></th>
  <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-i"></th>
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-type_upd">STEP</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-columns_upd">COLUMNS</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-values_upd">VALUES</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-tbl">TBL</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-eval">EVAL</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-test_units">UNITS</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-pass">PASS</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-fail">FAIL</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-w_upd">W</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-e_upd">E</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-c_upd">C</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_center" rowspan="1" colspan="1" style="color: #666666;font-weight: bold;" scope="col" id="pb_tbl-extract_upd">EXT</th>
</tr>
</thead>
<tbody class="gt_table_body">
  <tr>
    <td style="height: 40px; background-color: #4CA64C; color: transparent;font-size: 0px;" headers="pb_tbl-status_color" class="gt_row gt_left">#4CA64C</td>
    <td style="height: 40px; color: #666666;font-size: 13px;font-weight: bold;" headers="pb_tbl-i" class="gt_row gt_right">1</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px;" headers="pb_tbl-type_upd" class="gt_row gt_left">
        <div style="margin: 0; padding: 0; display: inline-block; height: 30px; vertical-align: middle; width: 16%;">
            <!--?xml version="1.0" encoding="UTF-8"?--><?xml version="1.0" encoding="UTF-8"?>
<svg width="30px" height="30px" viewBox="0 0 67 67" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="background: #FFFFFF;">
    <title>col_vals_gt</title>
    <g id="pb_tbl-type_upd-0-Icons" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="pb_tbl-type_upd-0-col_vals_gt" transform="translate(1.500000, 1.500000)" fill-rule="nonzero">
            <path d="M55,0 C57.4852813,0 59.7352813,1.00735931 61.363961,2.63603897 C62.9926407,4.26471863 64,6.51471863 64,9 L64,9 L64,64 L9,64 C6.51471862,64 4.26471862,62.9926407 2.63603897,61.363961 C1.00735931,59.7352814 0,57.4852814 0,55 L0,55 L0,9 C0,6.51471863 1.00735931,4.26471863 2.63603897,2.63603897 C4.26471862,1.00735931 6.51471862,0 9,0 L9,0 L55,0 Z" id="pb_tbl-type_upd-0-rectangle" stroke="#000000" stroke-width="2" fill="#FFFFFF"></path>
            <path d="M48.7619048,10 L15.2380953,10 C12.3466667,10 10,12.3466667 10,15.2380952 L10,48.7619048 C10,51.6533333 12.3466667,54 15.2380953,54 L48.7619048,54 C51.6533333,54 54,51.6533333 54,48.7619048 L54,15.2380952 C54,12.3466667 51.6533333,10 48.7619048,10 Z M25.2638095,44.3828571 L24.0695238,42.6647619 L39.5847619,32 L24.0695238,21.3352381 L25.2638095,19.6171429 L43.2828572,32 L25.2638095,44.3828571 Z" id="pb_tbl-type_upd-0-greater_than" fill="#000000"></path>
        </g>
    </g>
</svg>
        </div>
        <div style="font-family: 'IBM Plex Mono', monospace, courier; color: black; font-size: 11px; display: inline-block; vertical-align: middle;">
            <div>col_vals_gt()</div>
        </div>
        </td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_tbl-columns_upd" class="gt_row gt_left">user_id</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_tbl-values_upd" class="gt_row gt_left">0</td>
    <td style="height: 40px; background-color: #FCFCFC; border-left: 1px solid #D3D3D3;" headers="pb_tbl-tbl" class="gt_row gt_center"><svg width="25px" height="25px" viewBox="0 0 25 25" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="vertical-align: middle;">
    <g id="pb_tbl-tbl-0-unchanged" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="pb_tbl-tbl-0-unchanged" transform="translate(0.500000, 0.570147)">
            <rect id="pb_tbl-tbl-0-Rectangle" x="0.125132506" y="0" width="23.749735" height="23.7894737"></rect>
            <path d="M5.80375046,8.18194736 C3.77191832,8.18194736 2.11875046,9.83495328 2.11875046,11.8669474 C2.11875046,13.8989414 3.77191832,15.5519474 5.80375046,15.5519474 C7.8355826,15.5519474 9.48875046,13.8989414 9.48875046,11.8669474 C9.48875046,9.83495328 7.83552863,8.18194736 5.80375046,8.18194736 Z M5.80375046,14.814915 C4.17821997,14.814915 2.85578285,13.4924778 2.85578285,11.8669474 C2.85578285,10.2414169 4.17821997,8.91897975 5.80375046,8.91897975 C7.42928095,8.91897975 8.75171807,10.2414169 8.75171807,11.8669474 C8.75171807,13.4924778 7.42928095,14.814915 5.80375046,14.814915 Z" id="pb_tbl-tbl-0-Shape" fill="#000000" fill-rule="nonzero"></path>
            <path d="M13.9638189,8.699335 C13.9364621,8.70430925 13.9091059,8.71176968 13.8842359,8.71923074 C13.7822704,8.73663967 13.6877654,8.77643115 13.6056956,8.83860518 L10.2433156,11.3852598 C10.0766886,11.5046343 9.97720993,11.6986181 9.97720993,11.9025491 C9.97720993,12.1064807 10.0766886,12.3004639 10.2433156,12.4198383 L13.6056956,14.966493 C13.891697,15.1803725 14.2970729,15.1231721 14.5109517,14.8371707 C14.7248313,14.5511692 14.6676309,14.145794 14.3816294,13.9319145 L12.5313257,12.5392127 L21.8812495,12.5392127 L21.8812495,11.2658854 L12.5313257,11.2658854 L14.3816294,9.87318364 C14.6377872,9.71650453 14.7497006,9.40066014 14.6477351,9.11714553 C14.5482564,8.83363156 14.262255,8.65954352 13.9638189,8.699335 Z" id="pb_tbl-tbl-0-arrow" fill="#000000" transform="translate(15.929230, 11.894737) rotate(-180.000000) translate(-15.929230, -11.894737) "></path>
        </g>
    </g>
</svg></td>
    <td style="height: 40px; background-color: #FCFCFC; border-right: 1px solid #D3D3D3;" headers="pb_tbl-eval" class="gt_row gt_center"><span style="color:#4CA64C;">&check;</span></td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px;" headers="pb_tbl-test_units" class="gt_row gt_right">5</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5;" headers="pb_tbl-pass" class="gt_row gt_right">5<br />1.00</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5;" headers="pb_tbl-fail" class="gt_row gt_right">0<br />0.00</td>
    <td style="height: 40px; background-color: #FCFCFC; border-left: 1px solid #D3D3D3;" headers="pb_tbl-w_upd" class="gt_row gt_center"><span style="color: #AAAAAA;">&cir;</span></td>
    <td style="height: 40px; background-color: #FCFCFC;" headers="pb_tbl-e_upd" class="gt_row gt_center"><span style="color: #EBBC14;">&cir;</span></td>
    <td style="height: 40px; background-color: #FCFCFC; border-right: 1px solid #D3D3D3;" headers="pb_tbl-c_upd" class="gt_row gt_center"><span style="color: #FF3300;">&cir;</span></td>
    <td style="height: 40px;" headers="pb_tbl-extract_upd" class="gt_row gt_center">—</td>
  </tr>
  <tr>
    <td style="height: 40px; background-color: #EBBC14; color: transparent;font-size: 0px;" headers="pb_tbl-status_color" class="gt_row gt_left">#EBBC14</td>
    <td style="height: 40px; color: #666666;font-size: 13px;font-weight: bold;" headers="pb_tbl-i" class="gt_row gt_right">2</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px;" headers="pb_tbl-type_upd" class="gt_row gt_left">
        <div style="margin: 0; padding: 0; display: inline-block; height: 30px; vertical-align: middle; width: 16%;">
            <!--?xml version="1.0" encoding="UTF-8"?--><?xml version="1.0" encoding="UTF-8"?>
<svg width="30px" height="30px" viewBox="0 0 67 67" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <title>col_vals_between</title>
    <g id="pb_tbl-type_upd-1-Icons" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="pb_tbl-type_upd-1-col_vals_between" transform="translate(0.000000, 0.206897)">
            <path d="M56.712234,1 C59.1975153,1 61.4475153,2.00735931 63.076195,3.63603897 C64.7048747,5.26471863 65.712234,7.51471863 65.712234,10 L65.712234,10 L65.712234,65 L10.712234,65 C8.22695259,65 5.97695259,63.9926407 4.34827294,62.363961 C2.71959328,60.7352814 1.71223397,58.4852814 1.71223397,56 L1.71223397,56 L1.71223397,10 C1.71223397,7.51471863 2.71959328,5.26471863 4.34827294,3.63603897 C5.97695259,2.00735931 8.22695259,1 10.712234,1 L10.712234,1 Z" id="pb_tbl-type_upd-1-rectangle" stroke="#000000" stroke-width="2" fill="#FFFFFF"></path>
            <path d="M11.993484,21.96875 C10.962234,22.082031 10.188797,22.964844 10.212234,24 L10.212234,42 C10.200515,42.722656 10.579422,43.390625 11.204422,43.753906 C11.825515,44.121094 12.598953,44.121094 13.220047,43.753906 C13.845047,43.390625 14.223953,42.722656 14.212234,42 L14.212234,24 C14.220047,23.457031 14.009109,22.9375 13.626297,22.554688 C13.243484,22.171875 12.723953,21.960938 12.180984,21.96875 C12.118484,21.964844 12.055984,21.964844 11.993484,21.96875 Z M55.993484,21.96875 C54.962234,22.082031 54.188797,22.964844 54.212234,24 L54.212234,42 C54.200515,42.722656 54.579422,43.390625 55.204422,43.753906 C55.825515,44.121094 56.598953,44.121094 57.220047,43.753906 C57.845047,43.390625 58.223953,42.722656 58.212234,42 L58.212234,24 C58.220047,23.457031 58.009109,22.9375 57.626297,22.554688 C57.243484,22.171875 56.723953,21.960938 56.180984,21.96875 C56.118484,21.964844 56.055984,21.964844 55.993484,21.96875 Z M16.212234,22 C15.661453,22 15.212234,22.449219 15.212234,23 C15.212234,23.550781 15.661453,24 16.212234,24 C16.763015,24 17.212234,23.550781 17.212234,23 C17.212234,22.449219 16.763015,22 16.212234,22 Z M20.212234,22 C19.661453,22 19.212234,22.449219 19.212234,23 C19.212234,23.550781 19.661453,24 20.212234,24 C20.763015,24 21.212234,23.550781 21.212234,23 C21.212234,22.449219 20.763015,22 20.212234,22 Z M24.212234,22 C23.661453,22 23.212234,22.449219 23.212234,23 C23.212234,23.550781 23.661453,24 24.212234,24 C24.763015,24 25.212234,23.550781 25.212234,23 C25.212234,22.449219 24.763015,22 24.212234,22 Z M28.212234,22 C27.661453,22 27.212234,22.449219 27.212234,23 C27.212234,23.550781 27.661453,24 28.212234,24 C28.763015,24 29.212234,23.550781 29.212234,23 C29.212234,22.449219 28.763015,22 28.212234,22 Z M32.212234,22 C31.661453,22 31.212234,22.449219 31.212234,23 C31.212234,23.550781 31.661453,24 32.212234,24 C32.763015,24 33.212234,23.550781 33.212234,23 C33.212234,22.449219 32.763015,22 32.212234,22 Z M36.212234,22 C35.661453,22 35.212234,22.449219 35.212234,23 C35.212234,23.550781 35.661453,24 36.212234,24 C36.763015,24 37.212234,23.550781 37.212234,23 C37.212234,22.449219 36.763015,22 36.212234,22 Z M40.212234,22 C39.661453,22 39.212234,22.449219 39.212234,23 C39.212234,23.550781 39.661453,24 40.212234,24 C40.763015,24 41.212234,23.550781 41.212234,23 C41.212234,22.449219 40.763015,22 40.212234,22 Z M44.212234,22 C43.661453,22 43.212234,22.449219 43.212234,23 C43.212234,23.550781 43.661453,24 44.212234,24 C44.763015,24 45.212234,23.550781 45.212234,23 C45.212234,22.449219 44.763015,22 44.212234,22 Z M48.212234,22 C47.661453,22 47.212234,22.449219 47.212234,23 C47.212234,23.550781 47.661453,24 48.212234,24 C48.763015,24 49.212234,23.550781 49.212234,23 C49.212234,22.449219 48.763015,22 48.212234,22 Z M52.212234,22 C51.661453,22 51.212234,22.449219 51.212234,23 C51.212234,23.550781 51.661453,24 52.212234,24 C52.763015,24 53.212234,23.550781 53.212234,23 C53.212234,22.449219 52.763015,22 52.212234,22 Z M21.462234,27.96875 C21.419265,27.976563 21.376297,27.988281 21.337234,28 C21.177078,28.027344 21.02864,28.089844 20.899734,28.1875 L15.618484,32.1875 C15.356765,32.375 15.200515,32.679688 15.200515,33 C15.200515,33.320313 15.356765,33.625 15.618484,33.8125 L20.899734,37.8125 C21.348953,38.148438 21.985672,38.058594 22.321609,37.609375 C22.657547,37.160156 22.567703,36.523438 22.118484,36.1875 L19.212234,34 L49.212234,34 L46.305984,36.1875 C45.856765,36.523438 45.766922,37.160156 46.102859,37.609375 C46.438797,38.058594 47.075515,38.148438 47.524734,37.8125 L52.805984,33.8125 C53.067703,33.625 53.223953,33.320313 53.223953,33 C53.223953,32.679688 53.067703,32.375 52.805984,32.1875 L47.524734,28.1875 C47.30989,28.027344 47.040359,27.960938 46.774734,28 C46.743484,28 46.712234,28 46.680984,28 C46.282547,28.074219 45.96614,28.382813 45.884109,28.78125 C45.802078,29.179688 45.970047,29.585938 46.305984,29.8125 L49.212234,32 L19.212234,32 L22.118484,29.8125 C22.520828,29.566406 22.696609,29.070313 22.536453,28.625 C22.380203,28.179688 21.930984,27.90625 21.462234,27.96875 Z M16.212234,42 C15.661453,42 15.212234,42.449219 15.212234,43 C15.212234,43.550781 15.661453,44 16.212234,44 C16.763015,44 17.212234,43.550781 17.212234,43 C17.212234,42.449219 16.763015,42 16.212234,42 Z M20.212234,42 C19.661453,42 19.212234,42.449219 19.212234,43 C19.212234,43.550781 19.661453,44 20.212234,44 C20.763015,44 21.212234,43.550781 21.212234,43 C21.212234,42.449219 20.763015,42 20.212234,42 Z M24.212234,42 C23.661453,42 23.212234,42.449219 23.212234,43 C23.212234,43.550781 23.661453,44 24.212234,44 C24.763015,44 25.212234,43.550781 25.212234,43 C25.212234,42.449219 24.763015,42 24.212234,42 Z M28.212234,42 C27.661453,42 27.212234,42.449219 27.212234,43 C27.212234,43.550781 27.661453,44 28.212234,44 C28.763015,44 29.212234,43.550781 29.212234,43 C29.212234,42.449219 28.763015,42 28.212234,42 Z M32.212234,42 C31.661453,42 31.212234,42.449219 31.212234,43 C31.212234,43.550781 31.661453,44 32.212234,44 C32.763015,44 33.212234,43.550781 33.212234,43 C33.212234,42.449219 32.763015,42 32.212234,42 Z M36.212234,42 C35.661453,42 35.212234,42.449219 35.212234,43 C35.212234,43.550781 35.661453,44 36.212234,44 C36.763015,44 37.212234,43.550781 37.212234,43 C37.212234,42.449219 36.763015,42 36.212234,42 Z M40.212234,42 C39.661453,42 39.212234,42.449219 39.212234,43 C39.212234,43.550781 39.661453,44 40.212234,44 C40.763015,44 41.212234,43.550781 41.212234,43 C41.212234,42.449219 40.763015,42 40.212234,42 Z M44.212234,42 C43.661453,42 43.212234,42.449219 43.212234,43 C43.212234,43.550781 43.661453,44 44.212234,44 C44.763015,44 45.212234,43.550781 45.212234,43 C45.212234,42.449219 44.763015,42 44.212234,42 Z M48.212234,42 C47.661453,42 47.212234,42.449219 47.212234,43 C47.212234,43.550781 47.661453,44 48.212234,44 C48.763015,44 49.212234,43.550781 49.212234,43 C49.212234,42.449219 48.763015,42 48.212234,42 Z M52.212234,42 C51.661453,42 51.212234,42.449219 51.212234,43 C51.212234,43.550781 51.661453,44 52.212234,44 C52.763015,44 53.212234,43.550781 53.212234,43 C53.212234,42.449219 52.763015,42 52.212234,42 Z" id="pb_tbl-type_upd-1-inside_range" fill="#000000" fill-rule="nonzero"></path>
        </g>
    </g>
</svg>
        </div>
        <div style="font-family: 'IBM Plex Mono', monospace, courier; color: black; font-size: 10px; display: inline-block; vertical-align: middle;">
            <div>col_vals_between()</div>
        </div>
        </td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_tbl-columns_upd" class="gt_row gt_left">age</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_tbl-values_upd" class="gt_row gt_left">[18, 80]</td>
    <td style="height: 40px; background-color: #FCFCFC; border-left: 1px solid #D3D3D3;" headers="pb_tbl-tbl" class="gt_row gt_center"><svg width="25px" height="25px" viewBox="0 0 25 25" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="vertical-align: middle;">
    <g id="pb_tbl-tbl-1-unchanged" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="pb_tbl-tbl-1-unchanged" transform="translate(0.500000, 0.570147)">
            <rect id="pb_tbl-tbl-1-Rectangle" x="0.125132506" y="0" width="23.749735" height="23.7894737"></rect>
            <path d="M5.80375046,8.18194736 C3.77191832,8.18194736 2.11875046,9.83495328 2.11875046,11.8669474 C2.11875046,13.8989414 3.77191832,15.5519474 5.80375046,15.5519474 C7.8355826,15.5519474 9.48875046,13.8989414 9.48875046,11.8669474 C9.48875046,9.83495328 7.83552863,8.18194736 5.80375046,8.18194736 Z M5.80375046,14.814915 C4.17821997,14.814915 2.85578285,13.4924778 2.85578285,11.8669474 C2.85578285,10.2414169 4.17821997,8.91897975 5.80375046,8.91897975 C7.42928095,8.91897975 8.75171807,10.2414169 8.75171807,11.8669474 C8.75171807,13.4924778 7.42928095,14.814915 5.80375046,14.814915 Z" id="pb_tbl-tbl-1-Shape" fill="#000000" fill-rule="nonzero"></path>
            <path d="M13.9638189,8.699335 C13.9364621,8.70430925 13.9091059,8.71176968 13.8842359,8.71923074 C13.7822704,8.73663967 13.6877654,8.77643115 13.6056956,8.83860518 L10.2433156,11.3852598 C10.0766886,11.5046343 9.97720993,11.6986181 9.97720993,11.9025491 C9.97720993,12.1064807 10.0766886,12.3004639 10.2433156,12.4198383 L13.6056956,14.966493 C13.891697,15.1803725 14.2970729,15.1231721 14.5109517,14.8371707 C14.7248313,14.5511692 14.6676309,14.145794 14.3816294,13.9319145 L12.5313257,12.5392127 L21.8812495,12.5392127 L21.8812495,11.2658854 L12.5313257,11.2658854 L14.3816294,9.87318364 C14.6377872,9.71650453 14.7497006,9.40066014 14.6477351,9.11714553 C14.5482564,8.83363156 14.262255,8.65954352 13.9638189,8.699335 Z" id="pb_tbl-tbl-1-arrow" fill="#000000" transform="translate(15.929230, 11.894737) rotate(-180.000000) translate(-15.929230, -11.894737) "></path>
        </g>
    </g>
</svg></td>
    <td style="height: 40px; background-color: #FCFCFC; border-right: 1px solid #D3D3D3;" headers="pb_tbl-eval" class="gt_row gt_center"><span style="color:#4CA64C;">&check;</span></td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px;" headers="pb_tbl-test_units" class="gt_row gt_right">5</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5;" headers="pb_tbl-pass" class="gt_row gt_right">4<br />0.80</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5;" headers="pb_tbl-fail" class="gt_row gt_right">1<br />0.20</td>
    <td style="height: 40px; background-color: #FCFCFC; border-left: 1px solid #D3D3D3;" headers="pb_tbl-w_upd" class="gt_row gt_center"><span style="color: #AAAAAA;">&#9679;</span></td>
    <td style="height: 40px; background-color: #FCFCFC;" headers="pb_tbl-e_upd" class="gt_row gt_center"><span style="color: #EBBC14;">&#9679;</span></td>
    <td style="height: 40px; background-color: #FCFCFC; border-right: 1px solid #D3D3D3;" headers="pb_tbl-c_upd" class="gt_row gt_center"><span style="color: #FF3300;">&cir;</span></td>
    <td style="height: 40px;" headers="pb_tbl-extract_upd" class="gt_row gt_center"><a href="data:text/csv;base64,X3Jvd19udW1fLHVzZXJfaWQsYWdlLGVtYWlsLHNjb3JlCjUsNSw5NSx1c2VyNUBleGFtcGxlLmNvbSw5NS4yCg==" download="extract_0002.csv"><button style="background-color: #67C2DC; color: #FFFFFF; border: none; padding: 5px; font-weight: bold; cursor: pointer; border-radius: 4px;">CSV</button></a></td>
  </tr>
  <tr>
    <td style="height: 40px; background-color: #EBBC14; color: transparent;font-size: 0px;" headers="pb_tbl-status_color" class="gt_row gt_left">#EBBC14</td>
    <td style="height: 40px; color: #666666;font-size: 13px;font-weight: bold;" headers="pb_tbl-i" class="gt_row gt_right">3</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px;" headers="pb_tbl-type_upd" class="gt_row gt_left">
        <div style="margin: 0; padding: 0; display: inline-block; height: 30px; vertical-align: middle; width: 16%;">
            <!--?xml version="1.0" encoding="UTF-8"?--><?xml version="1.0" encoding="UTF-8"?>
<svg width="30px" height="30px" viewBox="0 0 67 67" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <title>col_vals_regex</title>
    <g id="pb_tbl-type_upd-2-Icons" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="pb_tbl-type_upd-2-col_vals_regex" transform="translate(0.000000, 0.034483)">
            <path d="M56.712234,1 C59.1975153,1 61.4475153,2.00735931 63.076195,3.63603897 C64.7048747,5.26471863 65.712234,7.51471863 65.712234,10 L65.712234,10 L65.712234,65 L10.712234,65 C8.22695259,65 5.97695259,63.9926407 4.34827294,62.363961 C2.71959328,60.7352814 1.71223397,58.4852814 1.71223397,56 L1.71223397,56 L1.71223397,10 C1.71223397,7.51471863 2.71959328,5.26471863 4.34827294,3.63603897 C5.97695259,2.00735931 8.22695259,1 10.712234,1 L10.712234,1 Z" id="pb_tbl-type_upd-2-rectangle" stroke="#000000" stroke-width="2" fill="#FFFFFF"></path>
            <g id="pb_tbl-type_upd-2-regex_symbols" transform="translate(18.000000, 12.000000)" fill="#000000" fill-rule="nonzero">
                <path d="M4.17434508,33.013582 C1.94895328,33.013582 0.138006923,34.8245284 0.138006923,37.0499202 C0.138006923,39.275312 1.94895328,41.0862583 4.17434508,41.0862583 C6.39973688,41.0862583 8.21068324,39.275312 8.21068324,37.0499202 C8.21068324,34.8245284 6.39973688,33.013582 4.17434508,33.013582 Z" id="pb_tbl-type_upd-2-full_stop"></path>
                <path d="M23.9479718,23.3175402 L21.5628264,23.3175402 C21.2344032,23.3175402 20.9665401,23.0520067 20.9665401,22.7212538 L20.9665401,15.1022979 L14.3445004,18.8873192 C14.0626621,19.050366 13.7016292,18.952538 13.5362533,18.6706991 L12.3436806,16.6442575 C12.262157,16.506832 12.2388642,16.3437852 12.2807909,16.1900549 C12.3203879,16.0363251 12.4205455,15.9058874 12.557971,15.8266929 L19.1800101,11.9880994 L12.557971,8.15183511 C12.4205455,8.07264112 12.3203879,7.93987439 12.2807909,7.78614401 C12.2388642,7.63241423 12.262157,7.46936689 12.3413509,7.33194137 L13.5339237,5.30549975 C13.6993001,5.02366143 14.0626621,4.92816199 14.3445004,5.09120934 L20.9665401,8.87390091 L20.9665401,1.25494501 C20.9665401,0.926521818 21.2344032,0.658658658 21.5628264,0.658658658 L23.9479718,0.658658658 C24.2787247,0.658658658 24.5442582,0.926521818 24.5442582,1.25494501 L24.5442582,8.87390091 L31.1662979,5.09120934 C31.4481362,4.92816199 31.8091691,5.02366143 31.9745455,5.30549975 L33.1671182,7.33194137 C33.2486413,7.46936689 33.2719341,7.63241423 33.2300074,7.78614401 C33.1904104,7.93987439 33.0902528,8.07264112 32.9528278,8.15183511 L26.3307882,11.9880994 L32.9528278,15.8243638 C33.0879237,15.9058874 33.1880813,16.0363251 33.2300074,16.1900549 C33.269605,16.3437852 33.2486413,16.506832 33.1671182,16.6442575 L31.9745455,18.6706991 C31.8091691,18.952538 31.4481362,19.050366 31.1662979,18.8849895 L24.5442582,15.1022979 L24.5442582,22.7212538 C24.5442582,23.0520067 24.2787247,23.3175402 23.9479718,23.3175402 Z" id="pb_tbl-type_upd-2-asterisk"></path>
            </g>
        </g>
    </g>
</svg>
        </div>
        <div style="font-family: 'IBM Plex Mono', monospace, courier; color: black; font-size: 11px; display: inline-block; vertical-align: middle;">
            <div>col_vals_regex()</div>
        </div>
        </td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_tbl-columns_upd" class="gt_row gt_left">email</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_tbl-values_upd" class="gt_row gt_left">^[^@]+@[^@]+\.[^@]+$</td>
    <td style="height: 40px; background-color: #FCFCFC; border-left: 1px solid #D3D3D3;" headers="pb_tbl-tbl" class="gt_row gt_center"><svg width="25px" height="25px" viewBox="0 0 25 25" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="vertical-align: middle;">
    <g id="pb_tbl-tbl-2-unchanged" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="pb_tbl-tbl-2-unchanged" transform="translate(0.500000, 0.570147)">
            <rect id="pb_tbl-tbl-2-Rectangle" x="0.125132506" y="0" width="23.749735" height="23.7894737"></rect>
            <path d="M5.80375046,8.18194736 C3.77191832,8.18194736 2.11875046,9.83495328 2.11875046,11.8669474 C2.11875046,13.8989414 3.77191832,15.5519474 5.80375046,15.5519474 C7.8355826,15.5519474 9.48875046,13.8989414 9.48875046,11.8669474 C9.48875046,9.83495328 7.83552863,8.18194736 5.80375046,8.18194736 Z M5.80375046,14.814915 C4.17821997,14.814915 2.85578285,13.4924778 2.85578285,11.8669474 C2.85578285,10.2414169 4.17821997,8.91897975 5.80375046,8.91897975 C7.42928095,8.91897975 8.75171807,10.2414169 8.75171807,11.8669474 C8.75171807,13.4924778 7.42928095,14.814915 5.80375046,14.814915 Z" id="pb_tbl-tbl-2-Shape" fill="#000000" fill-rule="nonzero"></path>
            <path d="M13.9638189,8.699335 C13.9364621,8.70430925 13.9091059,8.71176968 13.8842359,8.71923074 C13.7822704,8.73663967 13.6877654,8.77643115 13.6056956,8.83860518 L10.2433156,11.3852598 C10.0766886,11.5046343 9.97720993,11.6986181 9.97720993,11.9025491 C9.97720993,12.1064807 10.0766886,12.3004639 10.2433156,12.4198383 L13.6056956,14.966493 C13.891697,15.1803725 14.2970729,15.1231721 14.5109517,14.8371707 C14.7248313,14.5511692 14.6676309,14.145794 14.3816294,13.9319145 L12.5313257,12.5392127 L21.8812495,12.5392127 L21.8812495,11.2658854 L12.5313257,11.2658854 L14.3816294,9.87318364 C14.6377872,9.71650453 14.7497006,9.40066014 14.6477351,9.11714553 C14.5482564,8.83363156 14.262255,8.65954352 13.9638189,8.699335 Z" id="pb_tbl-tbl-2-arrow" fill="#000000" transform="translate(15.929230, 11.894737) rotate(-180.000000) translate(-15.929230, -11.894737) "></path>
        </g>
    </g>
</svg></td>
    <td style="height: 40px; background-color: #FCFCFC; border-right: 1px solid #D3D3D3;" headers="pb_tbl-eval" class="gt_row gt_center"><span style="color:#4CA64C;">&check;</span></td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px;" headers="pb_tbl-test_units" class="gt_row gt_right">5</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5;" headers="pb_tbl-pass" class="gt_row gt_right">4<br />0.80</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5;" headers="pb_tbl-fail" class="gt_row gt_right">1<br />0.20</td>
    <td style="height: 40px; background-color: #FCFCFC; border-left: 1px solid #D3D3D3;" headers="pb_tbl-w_upd" class="gt_row gt_center"><span style="color: #AAAAAA;">&#9679;</span></td>
    <td style="height: 40px; background-color: #FCFCFC;" headers="pb_tbl-e_upd" class="gt_row gt_center"><span style="color: #EBBC14;">&#9679;</span></td>
    <td style="height: 40px; background-color: #FCFCFC; border-right: 1px solid #D3D3D3;" headers="pb_tbl-c_upd" class="gt_row gt_center"><span style="color: #FF3300;">&cir;</span></td>
    <td style="height: 40px;" headers="pb_tbl-extract_upd" class="gt_row gt_center"><a href="data:text/csv;base64,X3Jvd19udW1fLHVzZXJfaWQsYWdlLGVtYWlsLHNjb3JlCjMsMywyMixpbnZhbGlkLWVtYWlsLDc4LjMK" download="extract_0003.csv"><button style="background-color: #67C2DC; color: #FFFFFF; border: none; padding: 5px; font-weight: bold; cursor: pointer; border-radius: 4px;">CSV</button></a></td>
  </tr>
  <tr>
    <td style="height: 40px; background-color: #4CA64C; color: transparent;font-size: 0px;" headers="pb_tbl-status_color" class="gt_row gt_left">#4CA64C</td>
    <td style="height: 40px; color: #666666;font-size: 13px;font-weight: bold;" headers="pb_tbl-i" class="gt_row gt_right">4</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px;" headers="pb_tbl-type_upd" class="gt_row gt_left">
        <div style="margin: 0; padding: 0; display: inline-block; height: 30px; vertical-align: middle; width: 16%;">
            <!--?xml version="1.0" encoding="UTF-8"?--><?xml version="1.0" encoding="UTF-8"?>
<svg width="30px" height="30px" viewBox="0 0 67 67" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <title>col_vals_between</title>
    <g id="pb_tbl-type_upd-3-Icons" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="pb_tbl-type_upd-3-col_vals_between" transform="translate(0.000000, 0.206897)">
            <path d="M56.712234,1 C59.1975153,1 61.4475153,2.00735931 63.076195,3.63603897 C64.7048747,5.26471863 65.712234,7.51471863 65.712234,10 L65.712234,10 L65.712234,65 L10.712234,65 C8.22695259,65 5.97695259,63.9926407 4.34827294,62.363961 C2.71959328,60.7352814 1.71223397,58.4852814 1.71223397,56 L1.71223397,56 L1.71223397,10 C1.71223397,7.51471863 2.71959328,5.26471863 4.34827294,3.63603897 C5.97695259,2.00735931 8.22695259,1 10.712234,1 L10.712234,1 Z" id="pb_tbl-type_upd-3-rectangle" stroke="#000000" stroke-width="2" fill="#FFFFFF"></path>
            <path d="M11.993484,21.96875 C10.962234,22.082031 10.188797,22.964844 10.212234,24 L10.212234,42 C10.200515,42.722656 10.579422,43.390625 11.204422,43.753906 C11.825515,44.121094 12.598953,44.121094 13.220047,43.753906 C13.845047,43.390625 14.223953,42.722656 14.212234,42 L14.212234,24 C14.220047,23.457031 14.009109,22.9375 13.626297,22.554688 C13.243484,22.171875 12.723953,21.960938 12.180984,21.96875 C12.118484,21.964844 12.055984,21.964844 11.993484,21.96875 Z M55.993484,21.96875 C54.962234,22.082031 54.188797,22.964844 54.212234,24 L54.212234,42 C54.200515,42.722656 54.579422,43.390625 55.204422,43.753906 C55.825515,44.121094 56.598953,44.121094 57.220047,43.753906 C57.845047,43.390625 58.223953,42.722656 58.212234,42 L58.212234,24 C58.220047,23.457031 58.009109,22.9375 57.626297,22.554688 C57.243484,22.171875 56.723953,21.960938 56.180984,21.96875 C56.118484,21.964844 56.055984,21.964844 55.993484,21.96875 Z M16.212234,22 C15.661453,22 15.212234,22.449219 15.212234,23 C15.212234,23.550781 15.661453,24 16.212234,24 C16.763015,24 17.212234,23.550781 17.212234,23 C17.212234,22.449219 16.763015,22 16.212234,22 Z M20.212234,22 C19.661453,22 19.212234,22.449219 19.212234,23 C19.212234,23.550781 19.661453,24 20.212234,24 C20.763015,24 21.212234,23.550781 21.212234,23 C21.212234,22.449219 20.763015,22 20.212234,22 Z M24.212234,22 C23.661453,22 23.212234,22.449219 23.212234,23 C23.212234,23.550781 23.661453,24 24.212234,24 C24.763015,24 25.212234,23.550781 25.212234,23 C25.212234,22.449219 24.763015,22 24.212234,22 Z M28.212234,22 C27.661453,22 27.212234,22.449219 27.212234,23 C27.212234,23.550781 27.661453,24 28.212234,24 C28.763015,24 29.212234,23.550781 29.212234,23 C29.212234,22.449219 28.763015,22 28.212234,22 Z M32.212234,22 C31.661453,22 31.212234,22.449219 31.212234,23 C31.212234,23.550781 31.661453,24 32.212234,24 C32.763015,24 33.212234,23.550781 33.212234,23 C33.212234,22.449219 32.763015,22 32.212234,22 Z M36.212234,22 C35.661453,22 35.212234,22.449219 35.212234,23 C35.212234,23.550781 35.661453,24 36.212234,24 C36.763015,24 37.212234,23.550781 37.212234,23 C37.212234,22.449219 36.763015,22 36.212234,22 Z M40.212234,22 C39.661453,22 39.212234,22.449219 39.212234,23 C39.212234,23.550781 39.661453,24 40.212234,24 C40.763015,24 41.212234,23.550781 41.212234,23 C41.212234,22.449219 40.763015,22 40.212234,22 Z M44.212234,22 C43.661453,22 43.212234,22.449219 43.212234,23 C43.212234,23.550781 43.661453,24 44.212234,24 C44.763015,24 45.212234,23.550781 45.212234,23 C45.212234,22.449219 44.763015,22 44.212234,22 Z M48.212234,22 C47.661453,22 47.212234,22.449219 47.212234,23 C47.212234,23.550781 47.661453,24 48.212234,24 C48.763015,24 49.212234,23.550781 49.212234,23 C49.212234,22.449219 48.763015,22 48.212234,22 Z M52.212234,22 C51.661453,22 51.212234,22.449219 51.212234,23 C51.212234,23.550781 51.661453,24 52.212234,24 C52.763015,24 53.212234,23.550781 53.212234,23 C53.212234,22.449219 52.763015,22 52.212234,22 Z M21.462234,27.96875 C21.419265,27.976563 21.376297,27.988281 21.337234,28 C21.177078,28.027344 21.02864,28.089844 20.899734,28.1875 L15.618484,32.1875 C15.356765,32.375 15.200515,32.679688 15.200515,33 C15.200515,33.320313 15.356765,33.625 15.618484,33.8125 L20.899734,37.8125 C21.348953,38.148438 21.985672,38.058594 22.321609,37.609375 C22.657547,37.160156 22.567703,36.523438 22.118484,36.1875 L19.212234,34 L49.212234,34 L46.305984,36.1875 C45.856765,36.523438 45.766922,37.160156 46.102859,37.609375 C46.438797,38.058594 47.075515,38.148438 47.524734,37.8125 L52.805984,33.8125 C53.067703,33.625 53.223953,33.320313 53.223953,33 C53.223953,32.679688 53.067703,32.375 52.805984,32.1875 L47.524734,28.1875 C47.30989,28.027344 47.040359,27.960938 46.774734,28 C46.743484,28 46.712234,28 46.680984,28 C46.282547,28.074219 45.96614,28.382813 45.884109,28.78125 C45.802078,29.179688 45.970047,29.585938 46.305984,29.8125 L49.212234,32 L19.212234,32 L22.118484,29.8125 C22.520828,29.566406 22.696609,29.070313 22.536453,28.625 C22.380203,28.179688 21.930984,27.90625 21.462234,27.96875 Z M16.212234,42 C15.661453,42 15.212234,42.449219 15.212234,43 C15.212234,43.550781 15.661453,44 16.212234,44 C16.763015,44 17.212234,43.550781 17.212234,43 C17.212234,42.449219 16.763015,42 16.212234,42 Z M20.212234,42 C19.661453,42 19.212234,42.449219 19.212234,43 C19.212234,43.550781 19.661453,44 20.212234,44 C20.763015,44 21.212234,43.550781 21.212234,43 C21.212234,42.449219 20.763015,42 20.212234,42 Z M24.212234,42 C23.661453,42 23.212234,42.449219 23.212234,43 C23.212234,43.550781 23.661453,44 24.212234,44 C24.763015,44 25.212234,43.550781 25.212234,43 C25.212234,42.449219 24.763015,42 24.212234,42 Z M28.212234,42 C27.661453,42 27.212234,42.449219 27.212234,43 C27.212234,43.550781 27.661453,44 28.212234,44 C28.763015,44 29.212234,43.550781 29.212234,43 C29.212234,42.449219 28.763015,42 28.212234,42 Z M32.212234,42 C31.661453,42 31.212234,42.449219 31.212234,43 C31.212234,43.550781 31.661453,44 32.212234,44 C32.763015,44 33.212234,43.550781 33.212234,43 C33.212234,42.449219 32.763015,42 32.212234,42 Z M36.212234,42 C35.661453,42 35.212234,42.449219 35.212234,43 C35.212234,43.550781 35.661453,44 36.212234,44 C36.763015,44 37.212234,43.550781 37.212234,43 C37.212234,42.449219 36.763015,42 36.212234,42 Z M40.212234,42 C39.661453,42 39.212234,42.449219 39.212234,43 C39.212234,43.550781 39.661453,44 40.212234,44 C40.763015,44 41.212234,43.550781 41.212234,43 C41.212234,42.449219 40.763015,42 40.212234,42 Z M44.212234,42 C43.661453,42 43.212234,42.449219 43.212234,43 C43.212234,43.550781 43.661453,44 44.212234,44 C44.763015,44 45.212234,43.550781 45.212234,43 C45.212234,42.449219 44.763015,42 44.212234,42 Z M48.212234,42 C47.661453,42 47.212234,42.449219 47.212234,43 C47.212234,43.550781 47.661453,44 48.212234,44 C48.763015,44 49.212234,43.550781 49.212234,43 C49.212234,42.449219 48.763015,42 48.212234,42 Z M52.212234,42 C51.661453,42 51.212234,42.449219 51.212234,43 C51.212234,43.550781 51.661453,44 52.212234,44 C52.763015,44 53.212234,43.550781 53.212234,43 C53.212234,42.449219 52.763015,42 52.212234,42 Z" id="pb_tbl-type_upd-3-inside_range" fill="#000000" fill-rule="nonzero"></path>
        </g>
    </g>
</svg>
        </div>
        <div style="font-family: 'IBM Plex Mono', monospace, courier; color: black; font-size: 10px; display: inline-block; vertical-align: middle;">
            <div>col_vals_between()</div>
        </div>
        </td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_tbl-columns_upd" class="gt_row gt_left">score</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_tbl-values_upd" class="gt_row gt_left">[0, 100]</td>
    <td style="height: 40px; background-color: #FCFCFC; border-left: 1px solid #D3D3D3;" headers="pb_tbl-tbl" class="gt_row gt_center"><svg width="25px" height="25px" viewBox="0 0 25 25" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="vertical-align: middle;">
    <g id="pb_tbl-tbl-3-unchanged" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="pb_tbl-tbl-3-unchanged" transform="translate(0.500000, 0.570147)">
            <rect id="pb_tbl-tbl-3-Rectangle" x="0.125132506" y="0" width="23.749735" height="23.7894737"></rect>
            <path d="M5.80375046,8.18194736 C3.77191832,8.18194736 2.11875046,9.83495328 2.11875046,11.8669474 C2.11875046,13.8989414 3.77191832,15.5519474 5.80375046,15.5519474 C7.8355826,15.5519474 9.48875046,13.8989414 9.48875046,11.8669474 C9.48875046,9.83495328 7.83552863,8.18194736 5.80375046,8.18194736 Z M5.80375046,14.814915 C4.17821997,14.814915 2.85578285,13.4924778 2.85578285,11.8669474 C2.85578285,10.2414169 4.17821997,8.91897975 5.80375046,8.91897975 C7.42928095,8.91897975 8.75171807,10.2414169 8.75171807,11.8669474 C8.75171807,13.4924778 7.42928095,14.814915 5.80375046,14.814915 Z" id="pb_tbl-tbl-3-Shape" fill="#000000" fill-rule="nonzero"></path>
            <path d="M13.9638189,8.699335 C13.9364621,8.70430925 13.9091059,8.71176968 13.8842359,8.71923074 C13.7822704,8.73663967 13.6877654,8.77643115 13.6056956,8.83860518 L10.2433156,11.3852598 C10.0766886,11.5046343 9.97720993,11.6986181 9.97720993,11.9025491 C9.97720993,12.1064807 10.0766886,12.3004639 10.2433156,12.4198383 L13.6056956,14.966493 C13.891697,15.1803725 14.2970729,15.1231721 14.5109517,14.8371707 C14.7248313,14.5511692 14.6676309,14.145794 14.3816294,13.9319145 L12.5313257,12.5392127 L21.8812495,12.5392127 L21.8812495,11.2658854 L12.5313257,11.2658854 L14.3816294,9.87318364 C14.6377872,9.71650453 14.7497006,9.40066014 14.6477351,9.11714553 C14.5482564,8.83363156 14.262255,8.65954352 13.9638189,8.699335 Z" id="pb_tbl-tbl-3-arrow" fill="#000000" transform="translate(15.929230, 11.894737) rotate(-180.000000) translate(-15.929230, -11.894737) "></path>
        </g>
    </g>
</svg></td>
    <td style="height: 40px; background-color: #FCFCFC; border-right: 1px solid #D3D3D3;" headers="pb_tbl-eval" class="gt_row gt_center"><span style="color:#4CA64C;">&check;</span></td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px;" headers="pb_tbl-test_units" class="gt_row gt_right">5</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5;" headers="pb_tbl-pass" class="gt_row gt_right">5<br />1.00</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5;" headers="pb_tbl-fail" class="gt_row gt_right">0<br />0.00</td>
    <td style="height: 40px; background-color: #FCFCFC; border-left: 1px solid #D3D3D3;" headers="pb_tbl-w_upd" class="gt_row gt_center"><span style="color: #AAAAAA;">&cir;</span></td>
    <td style="height: 40px; background-color: #FCFCFC;" headers="pb_tbl-e_upd" class="gt_row gt_center"><span style="color: #EBBC14;">&cir;</span></td>
    <td style="height: 40px; background-color: #FCFCFC; border-right: 1px solid #D3D3D3;" headers="pb_tbl-c_upd" class="gt_row gt_center"><span style="color: #FF3300;">&cir;</span></td>
    <td style="height: 40px;" headers="pb_tbl-extract_upd" class="gt_row gt_center">—</td>
  </tr>
  <tr>
    <td style="height: 40px; background-color: #4CA64C; color: transparent;font-size: 0px;" headers="pb_tbl-status_color" class="gt_row gt_left">#4CA64C</td>
    <td style="height: 40px; color: #666666;font-size: 13px;font-weight: bold;" headers="pb_tbl-i" class="gt_row gt_right">5</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px;" headers="pb_tbl-type_upd" class="gt_row gt_left">
        <div style="margin: 0; padding: 0; display: inline-block; height: 30px; vertical-align: middle; width: 16%;">
            <!--?xml version="1.0" encoding="UTF-8"?--><?xml version="1.0" encoding="UTF-8"?>
<svg width="30px" height="30px" viewBox="0 0 67 67" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <title>col_schema_match</title>
    <g id="pb_tbl-type_upd-4-Icons" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="pb_tbl-type_upd-4-col_schema_match" transform="translate(0.000000, 0.310345)">
            <path d="M56.712234,1.01466935 C59.1975153,1.01466935 61.4475153,2.02202867 63.076195,3.65070832 C64.7048747,5.27938798 65.712234,7.52938798 65.712234,10.0146694 L65.712234,10.0146694 L65.712234,65.0146694 L10.712234,65.0146694 C8.22695259,65.0146694 5.97695259,64.00731 4.34827294,62.3786304 C2.71959328,60.7499507 1.71223397,58.4999507 1.71223397,56.0146694 L1.71223397,56.0146694 L1.71223397,10.0146694 C1.71223397,7.52938798 2.71959328,5.27938798 4.34827294,3.65070832 C5.97695259,2.02202867 8.22695259,1.01466935 10.712234,1.01466935 L10.712234,1.01466935 Z" id="pb_tbl-type_upd-4-rectangle" stroke="#000000" stroke-width="2" fill="#FFFFFF"></path>
            <path d="M53.712234,39.7885268 L54.212234,56.2885268 L42.212234,56.7885268 L42.212234,39.7885268 L53.712234,39.7885268 Z M39.712234,39.7885268 L39.712234,56.7885268 L27.712234,56.7885268 L27.712234,39.7885268 L39.712234,39.7885268 Z M25.212234,39.7885268 L25.212234,56.7885268 L13.712234,56.7885268 L13.212234,40.2885268 L25.212234,39.7885268 Z" id="pb_tbl-type_upd-4-columns_schema" stroke="#000000" fill-rule="nonzero"></path>
            <g id="pb_tbl-type_upd-4-vertical_equal" transform="translate(30.000000, 29.000000)" stroke="#000000" stroke-linecap="square">
                <line x1="2.21223397" y1="0.514669353" x2="2.21223397" y2="7.58573716" id="pb_tbl-type_upd-4-Line"></line>
                <line x1="5.21223397" y1="0.514669353" x2="5.21223397" y2="7.58573716" id="pb_tbl-type_upd-4-Line-Copy"></line>
            </g>
            <path d="M41.712234,9.01466935 L41.712234,27.0146694 L53.712234,27.0146694 C54.262234,27.0146694 54.712234,26.5646694 54.712234,26.0146694 L54.712234,10.0146694 C54.712234,9.46466935 54.262234,9.01466935 53.712234,9.01466935 L41.712234,9.01466935 Z M27.212234,9.01466935 C27.212234,9.01466935 27.212234,15.0146694 27.212234,27.0146694 L40.212234,27.0146694 L40.212234,9.01466935 C31.5455673,9.01466935 27.212234,9.01466935 27.212234,9.01466935 Z M13.712234,9.01466935 C13.162234,9.01466935 12.712234,9.46466935 12.712234,10.0146694 L12.712234,26.0146694 C12.712234,26.5646694 13.162234,27.0146694 13.712234,27.0146694 L25.712234,27.0146694 L25.712234,9.01466935 L13.712234,9.01466935 Z" id="pb_tbl-type_upd-4-columns_real" fill="#000000" fill-rule="nonzero"></path>
        </g>
    </g>
</svg>
        </div>
        <div style="font-family: 'IBM Plex Mono', monospace, courier; color: black; font-size: 10px; display: inline-block; vertical-align: middle;">
            <div>col_schema_match()</div>
        </div>
        </td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_tbl-columns_upd" class="gt_row gt_left">&mdash;</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_tbl-values_upd" class="gt_row gt_left">SCHEMA</td>
    <td style="height: 40px; background-color: #FCFCFC; border-left: 1px solid #D3D3D3;" headers="pb_tbl-tbl" class="gt_row gt_center"><svg width="25px" height="25px" viewBox="0 0 25 25" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="vertical-align: middle;">
    <g id="pb_tbl-tbl-4-unchanged" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="pb_tbl-tbl-4-unchanged" transform="translate(0.500000, 0.570147)">
            <rect id="pb_tbl-tbl-4-Rectangle" x="0.125132506" y="0" width="23.749735" height="23.7894737"></rect>
            <path d="M5.80375046,8.18194736 C3.77191832,8.18194736 2.11875046,9.83495328 2.11875046,11.8669474 C2.11875046,13.8989414 3.77191832,15.5519474 5.80375046,15.5519474 C7.8355826,15.5519474 9.48875046,13.8989414 9.48875046,11.8669474 C9.48875046,9.83495328 7.83552863,8.18194736 5.80375046,8.18194736 Z M5.80375046,14.814915 C4.17821997,14.814915 2.85578285,13.4924778 2.85578285,11.8669474 C2.85578285,10.2414169 4.17821997,8.91897975 5.80375046,8.91897975 C7.42928095,8.91897975 8.75171807,10.2414169 8.75171807,11.8669474 C8.75171807,13.4924778 7.42928095,14.814915 5.80375046,14.814915 Z" id="pb_tbl-tbl-4-Shape" fill="#000000" fill-rule="nonzero"></path>
            <path d="M13.9638189,8.699335 C13.9364621,8.70430925 13.9091059,8.71176968 13.8842359,8.71923074 C13.7822704,8.73663967 13.6877654,8.77643115 13.6056956,8.83860518 L10.2433156,11.3852598 C10.0766886,11.5046343 9.97720993,11.6986181 9.97720993,11.9025491 C9.97720993,12.1064807 10.0766886,12.3004639 10.2433156,12.4198383 L13.6056956,14.966493 C13.891697,15.1803725 14.2970729,15.1231721 14.5109517,14.8371707 C14.7248313,14.5511692 14.6676309,14.145794 14.3816294,13.9319145 L12.5313257,12.5392127 L21.8812495,12.5392127 L21.8812495,11.2658854 L12.5313257,11.2658854 L14.3816294,9.87318364 C14.6377872,9.71650453 14.7497006,9.40066014 14.6477351,9.11714553 C14.5482564,8.83363156 14.262255,8.65954352 13.9638189,8.699335 Z" id="pb_tbl-tbl-4-arrow" fill="#000000" transform="translate(15.929230, 11.894737) rotate(-180.000000) translate(-15.929230, -11.894737) "></path>
        </g>
    </g>
</svg></td>
    <td style="height: 40px; background-color: #FCFCFC; border-right: 1px solid #D3D3D3;" headers="pb_tbl-eval" class="gt_row gt_center"><span style="color:#4CA64C;">&check;</span></td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px;" headers="pb_tbl-test_units" class="gt_row gt_right">1</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5;" headers="pb_tbl-pass" class="gt_row gt_right">1<br />1.00</td>
    <td style="height: 40px; color: black;font-family: IBM Plex Mono;font-size: 11px; border-left: 1px dashed #E5E5E5;" headers="pb_tbl-fail" class="gt_row gt_right">0<br />0.00</td>
    <td style="height: 40px; background-color: #FCFCFC; border-left: 1px solid #D3D3D3;" headers="pb_tbl-w_upd" class="gt_row gt_center"><span style="color: #AAAAAA;">&cir;</span></td>
    <td style="height: 40px; background-color: #FCFCFC;" headers="pb_tbl-e_upd" class="gt_row gt_center"><span style="color: #EBBC14;">&cir;</span></td>
    <td style="height: 40px; background-color: #FCFCFC; border-right: 1px solid #D3D3D3;" headers="pb_tbl-c_upd" class="gt_row gt_center"><span style="color: #FF3300;">&cir;</span></td>
    <td style="height: 40px;" headers="pb_tbl-extract_upd" class="gt_row gt_center">—</td>
  </tr>
</tbody>
<tfoot><tr class="gt_sourcenotes"><td class="gt_sourcenote" colspan="14" style="text-align: left;"><span class="gt_from_md"><div style='margin-top: 5px; margin-bottom: 5px;'><span style='background-color: #FFF; color: #444; padding: 0.5em 0.5em; position: inherit; text-transform: uppercase; margin-left: 10px; margin-right: 5px; border: solid 1px #999999; font-variant-numeric: tabular-nums; border-radius: 0; padding: 2px 10px 2px 10px;'>2026-11-30 17:41:07 UTC</span><span style='background-color: #FFF; color: #444; padding: 0.5em 0.5em; position: inherit; margin-right: 5px; border: solid 1px #999999; font-variant-numeric: tabular-nums; border-radius: 0; padding: 2px 10px 2px 10px;'>< 1 s</span><span style='background-color: #FFF; color: #444; padding: 0.5em 0.5em; position: inherit; text-transform: uppercase; margin: 5px 1px 5px -1px; border: solid 1px #999999; font-variant-numeric: tabular-nums; border-radius: 0; padding: 2px 10px 2px 10px;'>2026-11-30 17:41:07 UTC</span></div></span></td></tr><tr class="gt_sourcenotes"><td class="gt_sourcenote" colspan="14" style="text-align: left;"><span class="gt_from_md"><hr style='border: none; border-top-width: 1px; border-top-style: dotted; border-top-color: #B5B5B5; margin-top: -3px; margin-bottom: 3px;'>
<strong>Notes</strong>
<p><span style='font-variant: small-caps; font-weight: bold; font-size: smaller; text-transform: uppercase; color: #333333;'>Step 5</span> <span style='font-family: "IBM Plex Mono", monospace; font-size: smaller;'>(schema_check)</span> <span style="color:#4CA64C;">✓</span> Schema validation <strong>passed</strong>.</p>
<details style="margin-top: 2px; margin-bottom: 8px; font-size: 12px; text-indent: 12px;">
<summary style="cursor: pointer; font-weight: bold; color: #555; margin-bottom: -5px;">Schema Comparison</summary>
<div style="margin-top: 6px; padding-left: 15px; padding-right: 15px;">
<div id="pb_step_tbl" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap');
#pb_step_tbl table {
          font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }
<p>#pb_step_tbl thead, tbody, tfoot, tr, td, th { border-style: none; }
tr { background-color: transparent; }
#pb_step_tbl p { margin: 0; padding: 0; }
#pb_step_tbl .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
#pb_step_tbl .gt_caption { padding-top: 4px; padding-bottom: 4px; }
#pb_step_tbl .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
#pb_step_tbl .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; border-top-color: #FFFFFF; border-top-width: 0; }
#pb_step_tbl .gt_heading { background-color: #FFFFFF; text-align: left; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
#pb_step_tbl .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
#pb_step_tbl .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
#pb_step_tbl .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; overflow-x: hidden; }
#pb_step_tbl .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
#pb_step_tbl .gt_column_spanner_outer:first-child { padding-left: 0; }
#pb_step_tbl .gt_column_spanner_outer:last-child { padding-right: 0; }
#pb_step_tbl .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
#pb_step_tbl .gt_spanner_row { border-bottom-style: hidden; }
#pb_step_tbl .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
#pb_step_tbl .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
#pb_step_tbl .gt_from_md&gt; :first-child { margin-top: 0; }
#pb_step_tbl .gt_from_md&gt; :last-child { margin-bottom: 0; }
#pb_step_tbl .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
#pb_step_tbl .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; }
#pb_step_tbl .gt_indent_1 { text-indent: 5px; }
#pb_step_tbl .gt_indent_2 { text-indent: calc(5px * 2); }
#pb_step_tbl .gt_indent_3 { text-indent: calc(5px * 3); }
#pb_step_tbl .gt_indent_4 { text-indent: calc(5px * 4); }
#pb_step_tbl .gt_indent_5 { text-indent: calc(5px * 5); }
#pb_step_tbl .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 5px; padding-right: 5px; vertical-align: top; }
#pb_step_tbl .gt_row_group_first td { border-top-width: 2px; }
#pb_step_tbl .gt_row_group_first th { border-top-width: 2px; }
#pb_step_tbl .gt_striped { color: #333333; background-color: #F4F4F4; }
#pb_step_tbl .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
#pb_step_tbl .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
#pb_step_tbl .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
#pb_step_tbl .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
#pb_step_tbl .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
#pb_step_tbl .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
#pb_step_tbl .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
#pb_step_tbl .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
#pb_step_tbl .gt_sourcenote { font-size: 12px; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
#pb_step_tbl .gt_left { text-align: left; }
#pb_step_tbl .gt_center { text-align: center; }
#pb_step_tbl .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
#pb_step_tbl .gt_font_normal { font-weight: normal; }
#pb_step_tbl .gt_font_bold { font-weight: bold; }
#pb_step_tbl .gt_font_italic { font-style: italic; }
#pb_step_tbl .gt_super { font-size: 65%; }
#pb_step_tbl .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
#pb_step_tbl .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
#pb_step_tbl .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
#pb_step_tbl .gt_sourcenote { font-size: 12px; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; text-align: left; }
#pb_step_tbl .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
#pb_step_tbl .gt_asterisk { font-size: 100%; vertical-align: 0; }</p>
</style>
<table style="table-layout: fixed;; width: 0px" class="gt_table" data-quarto-disable-processing="true" data-quarto-bootstrap="false">
<colgroup>
  <col style="width:40px;"/>
  <col style="width:190px;"/>
  <col style="width:190px;"/>
  <col style="width:40px;"/>
  <col style="width:190px;"/>
  <col style="width:30px;"/>
  <col style="width:190px;"/>
  <col style="width:30px;"/>
</colgroup>
<thead>
<tr class="gt_col_headings gt_spanner_row">
  <th class="gt_center gt_columns_top_border gt_column_spanner_outer" rowspan="1" colspan="3" scope="colgroup" id="pb_step_tbl-TABLE">
    <span class="gt_column_spanner">TABLE</span>
  </th>
  <th class="gt_center gt_columns_top_border gt_column_spanner_outer" rowspan="1" colspan="5" scope="colgroup" id="pb_step_tbl-SCHEMA">
    <span class="gt_column_spanner">SCHEMA</span>
  </th>
</tr>
<tr class="gt_col_headings">
  <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="pb_step_tbl-index_target"></th>
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="pb_step_tbl-col_name_target">COLUMN</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="pb_step_tbl-dtype_target">DATA TYPE</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1" scope="col" id="pb_step_tbl-index_exp"></th>
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="pb_step_tbl-col_name_exp">COLUMN</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="pb_step_tbl-col_name_exp_correct"></th>
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="pb_step_tbl-dtype_exp">DATA TYPE</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="pb_step_tbl-dtype_exp_correct"></th>
</tr>
</thead>
<tbody class="gt_table_body">
  <tr>
    <td style="font-size: 13px;" headers="pb_step_tbl-TABLE pb_step_tbl-index_target" class="gt_row gt_right">1</td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-TABLE pb_step_tbl-col_name_target" class="gt_row gt_left">user_id</td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-TABLE pb_step_tbl-dtype_target" class="gt_row gt_left">Int64</td>
    <td style="font-size: 13px; border-left: 3px double #E5E5E5;" headers="pb_step_tbl-SCHEMA pb_step_tbl-index_exp" class="gt_row gt_right">1</td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-SCHEMA pb_step_tbl-col_name_exp" class="gt_row gt_left">user_id</td>
    <td headers="pb_step_tbl-SCHEMA pb_step_tbl-col_name_exp_correct" class="gt_row gt_left"><span style='color: #4CA64C;'>✓</span></td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-SCHEMA pb_step_tbl-dtype_exp" class="gt_row gt_left">Int64</td>
    <td headers="pb_step_tbl-SCHEMA pb_step_tbl-dtype_exp_correct" class="gt_row gt_left"><span style='color: #4CA64C;'>✓</span></td>
  </tr>
  <tr>
    <td style="font-size: 13px;" headers="pb_step_tbl-TABLE pb_step_tbl-index_target" class="gt_row gt_right">2</td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-TABLE pb_step_tbl-col_name_target" class="gt_row gt_left">age</td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-TABLE pb_step_tbl-dtype_target" class="gt_row gt_left">Int64</td>
    <td style="font-size: 13px; border-left: 3px double #E5E5E5;" headers="pb_step_tbl-SCHEMA pb_step_tbl-index_exp" class="gt_row gt_right">2</td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-SCHEMA pb_step_tbl-col_name_exp" class="gt_row gt_left">age</td>
    <td headers="pb_step_tbl-SCHEMA pb_step_tbl-col_name_exp_correct" class="gt_row gt_left"><span style='color: #4CA64C;'>✓</span></td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-SCHEMA pb_step_tbl-dtype_exp" class="gt_row gt_left">Int64</td>
    <td headers="pb_step_tbl-SCHEMA pb_step_tbl-dtype_exp_correct" class="gt_row gt_left"><span style='color: #4CA64C;'>✓</span></td>
  </tr>
  <tr>
    <td style="font-size: 13px;" headers="pb_step_tbl-TABLE pb_step_tbl-index_target" class="gt_row gt_right">3</td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-TABLE pb_step_tbl-col_name_target" class="gt_row gt_left">email</td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-TABLE pb_step_tbl-dtype_target" class="gt_row gt_left">String</td>
    <td style="font-size: 13px; border-left: 3px double #E5E5E5;" headers="pb_step_tbl-SCHEMA pb_step_tbl-index_exp" class="gt_row gt_right">3</td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-SCHEMA pb_step_tbl-col_name_exp" class="gt_row gt_left">email</td>
    <td headers="pb_step_tbl-SCHEMA pb_step_tbl-col_name_exp_correct" class="gt_row gt_left"><span style='color: #4CA64C;'>✓</span></td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-SCHEMA pb_step_tbl-dtype_exp" class="gt_row gt_left">String</td>
    <td headers="pb_step_tbl-SCHEMA pb_step_tbl-dtype_exp_correct" class="gt_row gt_left"><span style='color: #4CA64C;'>✓</span></td>
  </tr>
  <tr>
    <td style="font-size: 13px;" headers="pb_step_tbl-TABLE pb_step_tbl-index_target" class="gt_row gt_right">4</td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-TABLE pb_step_tbl-col_name_target" class="gt_row gt_left">score</td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-TABLE pb_step_tbl-dtype_target" class="gt_row gt_left">Float64</td>
    <td style="font-size: 13px; border-left: 3px double #E5E5E5;" headers="pb_step_tbl-SCHEMA pb_step_tbl-index_exp" class="gt_row gt_right">4</td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-SCHEMA pb_step_tbl-col_name_exp" class="gt_row gt_left">score</td>
    <td headers="pb_step_tbl-SCHEMA pb_step_tbl-col_name_exp_correct" class="gt_row gt_left"><span style='color: #4CA64C;'>✓</span></td>
    <td style="color: black;font-family: IBM Plex Mono;font-size: 13px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;" headers="pb_step_tbl-SCHEMA pb_step_tbl-dtype_exp" class="gt_row gt_left">Float64</td>
    <td headers="pb_step_tbl-SCHEMA pb_step_tbl-dtype_exp_correct" class="gt_row gt_left"><span style='color: #4CA64C;'>✓</span></td>
  </tr>
</tbody>
<tfoot><tr class="gt_sourcenotes"><td class="gt_sourcenote" colspan="8"><span class="gt_from_md"><div style='padding-bottom: 2px;'>Supplied Column Schema:</div><div style='border-style: solid; border-width: thin; border-color: lightblue; padding-left: 2px; padding-right: 2px; padding-bottom: 3px;'><code style='color: #303030; font-family: monospace; font-size: 8px;'>[('user_id', 'Int64'), ('age', 'Int64'), ('email', 'String'), ('score', 'Float64')]</code></div></span></td></tr><tr class="gt_sourcenotes"><td class="gt_sourcenote" colspan="8"><span class="gt_from_md">
<div style='padding-bottom: 2px;'>Schema Match Settings</div>
<div style='padding-bottom: 4px;'><div style="display: flex; font-size: 13.7px; padding-top: 2px;"><div style="border-style: solid; border-width: 1px; border-color: #87CEFA; border-radius: 5px; background-color: #F0F8FF; font-size: x-small; padding-left: 4px; padding-right: 4px; margin-left: 5px; margin-right: 5px;  margin-top: 2px; ">COMPLETE</div><div style="border-style: solid; border-width: 1px; border-color: #87CEFA; border-radius: 5px; background-color: #F0F8FF; font-size: x-small; padding-left: 4px; padding-right: 4px; margin-left: 5px; margin-right: 5px;  margin-top: 2px; ">IN ORDER</div><div style="border-style: solid; border-width: 1px; border-color: #A9A9A9; border-radius: 5px; background-color: #F5F5F5; font-size: x-small; padding-left: 4px; padding-right: 4px; margin-left: 5px; margin-right: 5px;  margin-top: 2px; ">COLUMN &ne; column</div><div style="border-style: solid; border-width: 1px; border-color: #A9A9A9; border-radius: 5px; background-color: #F5F5F5; font-size: x-small; padding-left: 4px; padding-right: 4px; margin-left: 5px; margin-right: 5px;  margin-top: 2px; ">DTYPE &ne; dtype</div><div style="border-style: solid; border-width: 1px; border-color: #A9A9A9; border-radius: 5px; background-color: #F5F5F5; font-size: x-small; padding-left: 4px; padding-right: 4px; margin-left: 5px; margin-right: 5px;  margin-top: 2px; ">float &ne; float64</div></div></div>
</span></td></tr></tfoot>
</table>
</div>
</div>
</details>
</span></td></tr></tfoot>
</table>
</div>
<p>The report shows each step with its pass and fail counts and the
threshold levels it reached, and you can share it with people who will
never read the validation code. A lot has happened since the last
survey, and the library reached <code>v1.0.0</code> in October 2026. New features
include composable validation steps (a <code>Steps</code> object that lets you
write checks once and reuse them across plans), referential integrity
checks with <code>col_vals_in_table()</code>, table comparison with <code>pb.compare()</code>,
schema inference, and synthetic data generation from a schema.
<strong>Pointblank</strong> uses Narwhals and Ibis, so the same plan can run against
Polars, Pandas, PySpark, or a database table.</p>
<p><strong>Pointblank</strong> is a good fit when you need to communicate validation
results as well as enforce them, and when you&rsquo;re willing to accept some
failures. With thresholds, you can tolerate a small share of bad rows
and tighten the standard over time.</p>
<h2 id="validoopsie">Validoopsie
</h2>
<p><strong>Validoopsie</strong> sorts its checks into namespaces (values, strings,
nulls, dates, types, and so on) and chains them together much like Great
Expectations does, but it&rsquo;s a far smaller library. It has used Narwhals
from the start, so it works with any DataFrame library Narwhals
supports. Its most interesting idea is the <em>impact level</em>. Each check is
marked <code>&quot;low&quot;</code>, <code>&quot;medium&quot;</code>, or <code>&quot;high&quot;</code>, and a failing <code>&quot;high&quot;</code> check
raises an exception, while the others are logged at different
severities. Combined with a <code>threshold=</code> for the share of rows allowed
to fail, this lets you decide exactly how a pipeline should react when
the data isn&rsquo;t perfect.</p>
<p><strong>Validoopsie</strong> logs its results through
<a href="https://github.com/Delgan/loguru" target="_blank" rel="noopener">loguru</a>. The first two lines below
shorten that output so it fits on the page:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">sys</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">loguru</span> <span class="kn">import</span> <span class="n">logger</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">validoopsie</span> <span class="kn">import</span> <span class="n">Validate</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">narwhals.dtypes</span> <span class="kn">import</span> <span class="n">Int64</span><span class="p">,</span> <span class="n">Float64</span><span class="p">,</span> <span class="n">String</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">logger</span><span class="o">.</span><span class="n">remove</span><span class="p">()</span>
</span></span><span class="line"><span class="cl"><span class="n">logger</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">stdout</span><span class="p">,</span> <span class="n">level</span><span class="o">=</span><span class="s2">&#34;WARNING&#34;</span><span class="p">,</span> <span class="nb">format</span><span class="o">=</span><span class="s2">&#34;</span><span class="si">{level}</span><span class="s2">: </span><span class="si">{message}</span><span class="s2">&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">validation</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">Validate</span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">ValuesValidation</span><span class="o">.</span><span class="n">ColumnValuesToBeBetween</span><span class="p">(</span><span class="n">column</span><span class="o">=</span><span class="s2">&#34;user_id&#34;</span><span class="p">,</span> <span class="n">min_value</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">impact</span><span class="o">=</span><span class="s2">&#34;high&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">ValuesValidation</span><span class="o">.</span><span class="n">ColumnValuesToBeBetween</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">column</span><span class="o">=</span><span class="s2">&#34;age&#34;</span><span class="p">,</span> <span class="n">min_value</span><span class="o">=</span><span class="mi">18</span><span class="p">,</span> <span class="n">max_value</span><span class="o">=</span><span class="mi">80</span><span class="p">,</span> <span class="n">threshold</span><span class="o">=</span><span class="mf">0.1</span><span class="p">,</span> <span class="n">impact</span><span class="o">=</span><span class="s2">&#34;medium&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">StringValidation</span><span class="o">.</span><span class="n">PatternMatch</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">column</span><span class="o">=</span><span class="s2">&#34;email&#34;</span><span class="p">,</span> <span class="n">pattern</span><span class="o">=</span><span class="sa">r</span><span class="s2">&#34;^[^@]+@[^@]+\.[^@]+$&#34;</span><span class="p">,</span> <span class="n">threshold</span><span class="o">=</span><span class="mf">0.05</span><span class="p">,</span> <span class="n">impact</span><span class="o">=</span><span class="s2">&#34;low&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">ValuesValidation</span><span class="o">.</span><span class="n">ColumnValuesToBeBetween</span><span class="p">(</span><span class="n">column</span><span class="o">=</span><span class="s2">&#34;score&#34;</span><span class="p">,</span> <span class="n">min_value</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">max_value</span><span class="o">=</span><span class="mi">100</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">TypeValidation</span><span class="o">.</span><span class="n">TypeCheck</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">frame_schema_definition</span><span class="o">=</span><span class="p">{</span><span class="s2">&#34;user_id&#34;</span><span class="p">:</span> <span class="n">Int64</span><span class="p">,</span> <span class="s2">&#34;age&#34;</span><span class="p">:</span> <span class="n">Int64</span><span class="p">,</span> <span class="s2">&#34;email&#34;</span><span class="p">:</span> <span class="n">String</span><span class="p">,</span> <span class="s2">&#34;score&#34;</span><span class="p">:</span> <span class="n">Float64</span><span class="p">},</span>
</span></span><span class="line"><span class="cl">        <span class="n">impact</span><span class="o">=</span><span class="s2">&#34;high&#34;</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">validation</span><span class="o">.</span><span class="n">validate</span><span class="p">()</span>
</span></span><span class="line"><span class="cl"><span class="n">validation</span><span class="o">.</span><span class="n">results</span><span class="p">[</span><span class="s2">&#34;Summary&#34;</span><span class="p">]</span></span></span></code></pre></div></div>
<pre><code>ERROR: Failed validation: ColumnValuesToBeBetween_age - The column 'age' has values that are not between 18 and 80.
WARNING: Failed validation: PatternMatch_email - The column 'email' has entries that do not match the pattern '^[^@]+@[^@]+\.[^@]+$'.

{'passed': False,
 'validations': ['ColumnValuesToBeBetween_user_id',
  'ColumnValuesToBeBetween_age',
  'PatternMatch_email',
  'ColumnValuesToBeBetween_score',
  'TypeCheck_DataTypeColumnValidation'],
 'failed_validation': ['ColumnValuesToBeBetween_age', 'PatternMatch_email']}
</code></pre>
<p>The failing <code>age</code> check was marked <code>&quot;medium&quot;</code> and is logged as an error,
while the failing <code>email</code> check was marked <code>&quot;low&quot;</code> and is logged as a
warning. Neither stops the pipeline, because the only <code>&quot;high&quot;</code> checks
(the ID range and the column types) passed. The full <code>results</code>
dictionary records each check&rsquo;s status, threshold, failing values, and
failure percentage, so it&rsquo;s easy to send along to a monitoring system.
<strong>Validoopsie</strong> works well in production pipelines where you want to
keep a close eye on data quality without letting one bad batch stop
everything.</p>
<h2 id="dataframely">Dataframely
</h2>
<p><strong>Dataframely</strong>, from QuantCo, is a Polars-native library that has been
through two major versions since the last survey. Version 2 (October
2025) made columns non-nullable by default and introduced lazy
validation, where <em>lazy</em> is meant in the Polars sense: the checks become
part of a <code>LazyFrame</code> query and only run when it&rsquo;s collected. Version 3
(July 2026) went further with a &ldquo;lazy in, lazy out&rdquo; design in which a
<code>LazyFrame</code> passed to <code>validate()</code> returns a <code>LazyFrame</code>. It also
replaced group rules (rules evaluated separately for each group of rows)
with Polars window expressions using <code>over()</code>, and trimmed its I/O layer
to focus on validation itself. Here&rsquo;s the schema for our test table:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">dataframely</span> <span class="k">as</span> <span class="nn">dy</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">class</span> <span class="nc">UserSchema</span><span class="p">(</span><span class="n">dy</span><span class="o">.</span><span class="n">Schema</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="n">user_id</span> <span class="o">=</span> <span class="n">dy</span><span class="o">.</span><span class="n">Int64</span><span class="p">(</span><span class="n">primary_key</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="nb">min</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="n">age</span> <span class="o">=</span> <span class="n">dy</span><span class="o">.</span><span class="n">Int64</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">    <span class="n">email</span> <span class="o">=</span> <span class="n">dy</span><span class="o">.</span><span class="n">String</span><span class="p">(</span><span class="n">regex</span><span class="o">=</span><span class="sa">r</span><span class="s2">&#34;^[^@]+@[^@]+\.[^@]+$&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="n">score</span> <span class="o">=</span> <span class="n">dy</span><span class="o">.</span><span class="n">Float64</span><span class="p">(</span><span class="nb">min</span><span class="o">=</span><span class="mf">0.0</span><span class="p">,</span> <span class="nb">max</span><span class="o">=</span><span class="mf">100.0</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="nd">@dy.rule</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">    <span class="k">def</span> <span class="nf">age_in_range</span><span class="p">(</span><span class="bp">cls</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">pl</span><span class="o">.</span><span class="n">Expr</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">        <span class="k">return</span> <span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;age&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">is_between</span><span class="p">(</span><span class="mi">18</span><span class="p">,</span> <span class="mi">80</span><span class="p">,</span> <span class="n">closed</span><span class="o">=</span><span class="s2">&#34;both&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">try</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">UserSchema</span><span class="o">.</span><span class="n">validate</span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="k">except</span> <span class="n">dy</span><span class="o">.</span><span class="n">exc</span><span class="o">.</span><span class="n">ValidationError</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="n">e</span><span class="p">)</span></span></span></code></pre></div></div>
<pre><code>2 rules failed validation:
 - 'age_in_range' failed for 1 rows
 * Column 'email' failed validation for 1 rules:
   - 'regex' failed for 1 rows
</code></pre>
<p>The <code>age</code> range could have been set with <code>min</code> and <code>max</code>, as <code>score</code> is,
but we wrote it as a custom rule to show how rules work. Rules written
with <code>@dy.rule()</code> are ordinary Polars expressions, so anything Polars
can compute can become a constraint. <strong>Dataframely</strong>&rsquo;s most useful
feature for production work is soft validation. Instead of raising,
<code>filter()</code> splits the data into the rows that passed and a record of the
rows that didn&rsquo;t:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">good_data</span><span class="p">,</span> <span class="n">failures</span> <span class="o">=</span> <span class="n">UserSchema</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&#34;Valid rows: </span><span class="si">{</span><span class="nb">len</span><span class="p">(</span><span class="n">good_data</span><span class="p">)</span><span class="si">}</span><span class="s2">&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="nb">print</span><span class="p">(</span><span class="n">failures</span><span class="o">.</span><span class="n">counts</span><span class="p">())</span>
</span></span><span class="line"><span class="cl"><span class="nb">print</span><span class="p">(</span><span class="n">failures</span><span class="o">.</span><span class="n">invalid</span><span class="p">())</span></span></span></code></pre></div></div>
<pre><code>Valid rows: 3
{'age_in_range': 1, 'email|regex': 1}
shape: (2, 4)
┌─────────┬─────┬───────────────────┬───────┐
│ user_id ┆ age ┆ email             ┆ score │
│ ---     ┆ --- ┆ ---               ┆ ---   │
│ i64     ┆ i64 ┆ str               ┆ f64   │
╞═════════╪═════╪═══════════════════╪═══════╡
│ 3       ┆ 22  ┆ invalid-email     ┆ 78.3  │
│ 5       ┆ 95  ┆ user5@example.com ┆ 95.2  │
└─────────┴─────┴───────────────────┴───────┘
</code></pre>
<p>The failure object can count failures by rule, show which rules tend to
fail together, and return the invalid rows themselves. <strong>Dataframely</strong>
can also validate <em>collections</em> of related DataFrames (checking, for
example, that every order refers to an existing customer), and its
schemas work with static type checkers. It&rsquo;s a good choice for data
engineering work on Polars, where the relationships between tables
matter as much as what&rsquo;s in each one.</p>
<h2 id="daffy">Daffy
</h2>
<p><strong>Daffy</strong> is the oldest of the newcomers (its repository dates from
2021), but it reached <code>v1.0.0</code> in November 2025 and has moved quickly
since, going through two more major versions in under a year. It works
differently from every other library here. Rather than validating a
DataFrame wherever you call a method, <strong>Daffy</strong> validates the DataFrames
that go into and come out of a function, using the decorators <code>@df_in</code>
and <code>@df_out</code>. That puts the checks right where data passes from one
step of a pipeline to the next, which is often where a mismatch first
causes trouble.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">daffy</span> <span class="kn">import</span> <span class="n">df_in</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nd">@df_in</span><span class="p">({</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;user_id&#34;</span><span class="p">:</span> <span class="p">{</span><span class="s2">&#34;dtype&#34;</span><span class="p">:</span> <span class="s2">&#34;Int64&#34;</span><span class="p">,</span> <span class="s2">&#34;checks&#34;</span><span class="p">:</span> <span class="p">{</span><span class="s2">&#34;gt&#34;</span><span class="p">:</span> <span class="mi">0</span><span class="p">}},</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;age&#34;</span><span class="p">:</span> <span class="p">{</span><span class="s2">&#34;dtype&#34;</span><span class="p">:</span> <span class="s2">&#34;Int64&#34;</span><span class="p">,</span> <span class="s2">&#34;checks&#34;</span><span class="p">:</span> <span class="p">{</span><span class="s2">&#34;between&#34;</span><span class="p">:</span> <span class="p">(</span><span class="mi">18</span><span class="p">,</span> <span class="mi">80</span><span class="p">)}},</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;email&#34;</span><span class="p">:</span> <span class="p">{</span><span class="s2">&#34;dtype&#34;</span><span class="p">:</span> <span class="s2">&#34;String&#34;</span><span class="p">,</span> <span class="s2">&#34;checks&#34;</span><span class="p">:</span> <span class="p">{</span><span class="s2">&#34;str_regex&#34;</span><span class="p">:</span> <span class="sa">r</span><span class="s2">&#34;^[^@]+@[^@]+\.[^@]+$&#34;</span><span class="p">}},</span>
</span></span><span class="line"><span class="cl">    <span class="s2">&#34;score&#34;</span><span class="p">:</span> <span class="p">{</span><span class="s2">&#34;dtype&#34;</span><span class="p">:</span> <span class="s2">&#34;Float64&#34;</span><span class="p">,</span> <span class="s2">&#34;checks&#34;</span><span class="p">:</span> <span class="p">{</span><span class="s2">&#34;between&#34;</span><span class="p">:</span> <span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">100</span><span class="p">)}},</span>
</span></span><span class="line"><span class="cl"><span class="p">})</span>
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">mean_score</span><span class="p">(</span><span class="n">df</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="n">df</span><span class="p">[</span><span class="s2">&#34;score&#34;</span><span class="p">]</span><span class="o">.</span><span class="n">mean</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">try</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">mean_score</span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="k">except</span> <span class="ne">AssertionError</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="n">e</span><span class="p">)</span></span></span></code></pre></div></div>
<pre><code>Check violations in function 'mean_score' parameter 'df':
  Column 'age' failed between: 1 values. Examples: [95]
  Column 'email' failed str_regex: 1 values. Examples: ['invalid-email']
</code></pre>
<p>The function never runs, because its input fails two checks, and the
message names the function, the parameter, and some of the failing
values. In its simplest form, <code>@df_in([&quot;user_id&quot;, &quot;email&quot;])</code> only
confirms that the columns exist, which is cheap and catches more real
bugs than you might expect. <strong>Daffy</strong> also supports regex patterns for
matching column names, uniqueness and nullability constraints, and
row-level validation through a Pydantic model for checks that span
several fields. It uses Narwhals and works with Polars, Pandas, Modin,
and PyArrow. <strong>Daffy</strong> is also the easiest library here to adopt a
little at a time, since you can add a decorator to one function without
touching anything else.</p>
<h2 id="checkedframe">checkedframe
</h2>
<p><strong>checkedframe</strong> is a lightweight library that has used Narwhals from
the start. Its author wanted it to work with any DataFrame library and
to stay independent of Pydantic. A schema is a class whose attributes
are column types, and you can add checks with built-in helpers or write
your own as decorated methods that take a Series, an expression, or a
whole DataFrame, depending on what the check needs:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">checkedframe</span> <span class="k">as</span> <span class="nn">cf</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">class</span> <span class="nc">UserSchema</span><span class="p">(</span><span class="n">cf</span><span class="o">.</span><span class="n">Schema</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="n">user_id</span> <span class="o">=</span> <span class="n">cf</span><span class="o">.</span><span class="n">Int64</span><span class="p">(</span><span class="n">checks</span><span class="o">=</span><span class="p">[</span><span class="n">cf</span><span class="o">.</span><span class="n">Check</span><span class="o">.</span><span class="n">gt</span><span class="p">(</span><span class="mi">0</span><span class="p">)])</span>
</span></span><span class="line"><span class="cl">    <span class="n">age</span> <span class="o">=</span> <span class="n">cf</span><span class="o">.</span><span class="n">Int64</span><span class="p">(</span><span class="n">checks</span><span class="o">=</span><span class="p">[</span><span class="n">cf</span><span class="o">.</span><span class="n">Check</span><span class="o">.</span><span class="n">is_between</span><span class="p">(</span><span class="mi">18</span><span class="p">,</span> <span class="mi">80</span><span class="p">)])</span>
</span></span><span class="line"><span class="cl">    <span class="n">email</span> <span class="o">=</span> <span class="n">cf</span><span class="o">.</span><span class="n">String</span><span class="p">(</span><span class="n">checks</span><span class="o">=</span><span class="p">[</span><span class="n">cf</span><span class="o">.</span><span class="n">Check</span><span class="o">.</span><span class="n">str_contains</span><span class="p">(</span><span class="sa">r</span><span class="s2">&#34;^[^@]+@[^@]+\.[^@]+$&#34;</span><span class="p">)])</span>
</span></span><span class="line"><span class="cl">    <span class="n">score</span> <span class="o">=</span> <span class="n">cf</span><span class="o">.</span><span class="n">Float64</span><span class="p">(</span><span class="n">checks</span><span class="o">=</span><span class="p">[</span><span class="n">cf</span><span class="o">.</span><span class="n">Check</span><span class="o">.</span><span class="n">is_between</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">100</span><span class="p">)])</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">try</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">UserSchema</span><span class="o">.</span><span class="n">validate</span><span class="p">(</span><span class="n">user_data</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="k">except</span> <span class="n">cf</span><span class="o">.</span><span class="n">exceptions</span><span class="o">.</span><span class="n">SchemaError</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="n">e</span><span class="p">)</span></span></span></code></pre></div></div>
<pre><code>Found 2 error(s)
  age: 1 error(s)
    - is_between failed for 1 / 5 (20.00%) rows: Must be in range [18, 80]
  email: 1 error(s)
    - contains failed for 1 / 5 (20.00%) rows: Must contain ^[^@]+@[^@]+\.[^@]+$
</code></pre>
<p>Despite its name, <code>cf.Check.str_contains()</code> takes a regular expression,
and the <code>^</code> and <code>$</code> anchors make it a full match (hence the &ldquo;Must
contain&rdquo; wording in the message). The error message reports every
failure along with the share of rows affected. Since <strong>checkedframe</strong>
isn&rsquo;t tied to one DataFrame library, the same schema works on a Pandas
version of the table without any changes:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="k">try</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">UserSchema</span><span class="o">.</span><span class="n">validate</span><span class="p">(</span><span class="n">user_data</span><span class="o">.</span><span class="n">to_pandas</span><span class="p">())</span>
</span></span><span class="line"><span class="cl"><span class="k">except</span> <span class="n">cf</span><span class="o">.</span><span class="n">exceptions</span><span class="o">.</span><span class="n">SchemaError</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="n">e</span><span class="p">)</span></span></span></code></pre></div></div>
<pre><code>Found 2 error(s)
  age: 1 error(s)
    - is_between failed for 1 / 5 (20.00%) rows: Must be in range [18, 80]
  email: 1 error(s)
    - contains failed for 1 / 5 (20.00%) rows: Must contain ^[^@]+@[^@]+\.[^@]+$
</code></pre>
<p><strong>checkedframe</strong> also has a <code>filter()</code> method that keeps only the
passing rows, safe casting that won&rsquo;t make a conversion if it would lose
information, and schema generation from existing data. The project has
had a single release so far (<code>v0.1.0</code>, September 2025), so it&rsquo;s still
young, but its design is clear and it makes good use of Narwhals.</p>
<h2 id="pavise">Pavise
</h2>
<p><strong>Pavise</strong> starts from Python&rsquo;s type system. A schema is a plain
<code>typing.Protocol</code> class, written without any base class or special
syntax beyond <code>typing.Annotated</code>. Wrapping a DataFrame as
<code>DataFrame[UserSchema]</code> validates it at runtime, and the same annotation
lets mypy or pyright check that each function receives the right kind of
DataFrame:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Annotated</span><span class="p">,</span> <span class="n">Protocol</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">pavise.polars</span> <span class="kn">import</span> <span class="n">DataFrame</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">pavise.exceptions</span> <span class="kn">import</span> <span class="n">ValidationError</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">pavise.validators</span> <span class="kn">import</span> <span class="n">Gt</span><span class="p">,</span> <span class="n">Range</span><span class="p">,</span> <span class="n">Regex</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">class</span> <span class="nc">UserSchema</span><span class="p">(</span><span class="n">Protocol</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="n">user_id</span><span class="p">:</span> <span class="n">Annotated</span><span class="p">[</span><span class="nb">int</span><span class="p">,</span> <span class="n">Gt</span><span class="p">(</span><span class="mi">0</span><span class="p">)]</span>
</span></span><span class="line"><span class="cl">    <span class="n">age</span><span class="p">:</span> <span class="n">Annotated</span><span class="p">[</span><span class="nb">int</span><span class="p">,</span> <span class="n">Range</span><span class="p">(</span><span class="mi">18</span><span class="p">,</span> <span class="mi">80</span><span class="p">)]</span>
</span></span><span class="line"><span class="cl">    <span class="n">email</span><span class="p">:</span> <span class="n">Annotated</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">Regex</span><span class="p">(</span><span class="sa">r</span><span class="s2">&#34;^[^@]+@[^@]+\.[^@]+$&#34;</span><span class="p">)]</span>
</span></span><span class="line"><span class="cl">    <span class="n">score</span><span class="p">:</span> <span class="n">Annotated</span><span class="p">[</span><span class="nb">float</span><span class="p">,</span> <span class="n">Range</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">100</span><span class="p">)]</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">try</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">DataFrame</span><span class="p">[</span><span class="n">UserSchema</span><span class="p">](</span><span class="n">user_data</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="k">except</span> <span class="n">ValidationError</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="n">e</span><span class="p">)</span></span></span></code></pre></div></div>
<pre><code>Column 'age': values must be in range [18, 80]

Sample invalid values (showing first 1 of 1):
  Row 4: 95
</code></pre>
<p><strong>Pavise</strong> reports only the <code>age</code> problem here, because it stops at the
first failing column (that&rsquo;s on purpose). <strong>Pavise</strong> is meant to guard
the edges of a system (where a file is read or a database is queried),
and there it&rsquo;s better to fail quickly with a clear message. Because it
uses Protocols, it gets structural subtyping for free: a DataFrame with
extra columns still satisfies a schema that doesn&rsquo;t mention them, and a
DataFrame validated against a more specific schema (<code>DataFrame[Child]</code>,
where the <code>Child</code> Protocol extends <code>Parent</code>) is accepted wherever a
<code>DataFrame[Parent]</code> is expected. The same schema works with Pandas if
you import <code>DataFrame</code> from <code>pavise.pandas</code> instead of <code>pavise.polars</code>,
and it also handles Polars <code>LazyFrame</code> objects. <strong>Pavise</strong> is a recent
project (created at the start of 2026), and it&rsquo;s most likely to appeal
to people who rely a lot on static type checking.</p>
<h2 id="polspec">polspec
</h2>
<p><strong>polspec</strong> is the newest library here, created in September 2026, and
it requires Polars 2. It tries to solve a common problem: the schema
that validates production data and the fixtures used in tests are
usually written separately, and over time they drift apart. A
<strong>polspec</strong> schema does both jobs. Each column gets a type and its
constraints, and the resulting class can both validate a DataFrame and
generate one:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">polspec</span> <span class="kn">import</span> <span class="n">ColSpec</span><span class="p">,</span> <span class="n">FrameSpec</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">class</span> <span class="nc">Users</span><span class="p">(</span><span class="n">FrameSpec</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="n">user_id</span> <span class="o">=</span> <span class="n">ColSpec</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">Int64</span><span class="p">,</span> <span class="n">bounds</span><span class="o">=</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">10</span><span class="o">**</span><span class="mi">9</span><span class="p">),</span> <span class="n">unique</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="n">age</span> <span class="o">=</span> <span class="n">ColSpec</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">Int64</span><span class="p">,</span> <span class="n">bounds</span><span class="o">=</span><span class="p">(</span><span class="mi">18</span><span class="p">,</span> <span class="mi">80</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">    <span class="n">email</span> <span class="o">=</span> <span class="n">ColSpec</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">String</span><span class="p">,</span> <span class="nb">format</span><span class="o">=</span><span class="s2">&#34;email&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="n">score</span> <span class="o">=</span> <span class="n">ColSpec</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">Float64</span><span class="p">,</span> <span class="n">bounds</span><span class="o">=</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">100</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nb">print</span><span class="p">(</span><span class="n">Users</span><span class="o">.</span><span class="n">inspect</span><span class="p">(</span><span class="n">user_data</span><span class="p">))</span></span></span></code></pre></div></div>
<pre><code>Validation failed for DataFrame against 'Users' (2 error(s) found):
  - Column 'age': found 1 value(s) out of bounds [18, 80] (min found: 22, max found: 95). Out of bounds samples: [95] (20.0% of rows)
  - Column 'email': found 1 value(s) that are not email (an address with one '@' and a dotted domain). Invalid samples: ['invalid-email'] (20.0% of rows)
</code></pre>
<p>The <code>inspect()</code> method returns every finding at once as a report,
including the observed range of the out-of-bounds column and the share
of rows affected (<code>validate()</code> raises an error with the same
information). To generate data, you use the same class:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="nb">print</span><span class="p">(</span><span class="n">Users</span><span class="o">.</span><span class="n">generate</span><span class="p">(</span><span class="mi">5</span><span class="p">,</span> <span class="n">seed</span><span class="o">=</span><span class="mi">23</span><span class="p">))</span></span></span></code></pre></div></div>
<pre><code>shape: (5, 4)
┌───────────┬─────┬──────────────────────────┬───────────┐
│ user_id   ┆ age ┆ email                    ┆ score     │
│ ---       ┆ --- ┆ ---                      ┆ ---       │
│ i64       ┆ i64 ┆ str                      ┆ f64       │
╞═══════════╪═════╪══════════════════════════╪═══════════╡
│ 666943414 ┆ 50  ┆ io5m@fqknrcbg.net        ┆ 79.733203 │
│ 771953561 ┆ 72  ┆ 84lw7@dwztxk.org         ┆ 60.065361 │
│ 350612632 ┆ 73  ┆ qh6n@nlxr.edu            ┆ 31.814339 │
│ 404870690 ┆ 55  ┆ mdy@hwkvui.edu           ┆ 45.145386 │
│ 255323833 ┆ 51  ┆ mphvn32cu@aozwwjejdq.org ┆ 31.607739 │
└───────────┴─────┴──────────────────────────┴───────────┘
</code></pre>
<p>Every generated row satisfies the declared constraints, and a fixed seed
gives you the same data on every platform. <strong>polspec</strong> can do more than
this example shows. It can profile an existing table to produce a
starting schema, generate related tables with consistent foreign keys,
report statistically significant drift between two datasets, and run
from the command line in CI. <strong>Pointblank</strong> and <strong>Dataframely</strong> can also
generate data from schemas, but <strong>polspec</strong> is the one that puts
generation and validation together at its center.</p>
<h2 id="the-growing-role-of-narwhals">The Growing Role of Narwhals
</h2>
<p>The biggest change since 2025 is how many of these libraries now use
Narwhals. Narwhals offers a subset of the Polars API that works with
many DataFrame libraries, translating each operation into whatever the
underlying library understands. In the first survey, <strong>Pointblank</strong> and
<strong>Validoopsie</strong> were the only libraries that used it. Since then,
<strong>Pandera</strong> has added a Narwhals backend, <strong>Daffy</strong> has adopted it, and
<strong>checkedframe</strong> was built on it from the beginning. For a validation
library this is an appealing setup. You write the checks once, in a
familiar expression-based style, and they work on Polars, Pandas,
PyArrow, and in some cases database tables.</p>
<p>The libraries that are still Polars-only (<strong>Patito</strong>, <strong>Dataframely</strong>,
and <strong>polspec</strong>) have made a different choice, and it&rsquo;s just as
reasonable. By committing to one library, they can expose Polars
expressions directly in their rules, follow Polars&rsquo; lazy execution model
closely, and pick up new Polars features as soon as they appear.
<strong>polspec</strong>&rsquo;s decision to require Polars 2 is the clearest example.
Rather than asking which approach is better, it may help to ask which
one fits your situation. If all of your data is in Polars, tight
integration may matter most. If you move between Pandas, Polars, and a
warehouse, a single API that works across all of them may be more
useful.</p>
<h2 id="choosing-a-library">Choosing a Library
</h2>
<p>With nine libraries to choose from, a few questions can help narrow
things down. The first is what tools you already use. If you already use
Pydantic, <strong>Patito</strong> will feel natural, and if you rely on static type
checking, <strong>Pandera</strong>, <strong>Dataframely</strong>, and <strong>Pavise</strong> are worth a look.
If your DataFrames move between several libraries, <strong>checkedframe</strong>,
<strong>Daffy</strong>, <strong>Validoopsie</strong>, <strong>Pointblank</strong>, and <strong>Pandera</strong>&rsquo;s Narwhals
backend all save you from writing the same checks twice.</p>
<p>The second question is where validation should happen. <strong>Daffy</strong> puts it
at the boundary of every function, <strong>Pavise</strong> at the boundary of the
system, and the other libraries wherever you call them. The third is
what should happen when something fails. Most of these libraries report
every failure at once (<strong>Pandera</strong> does so when you ask with
<code>lazy=True</code>), while <strong>Pavise</strong> deliberately stops at the first.
<strong>Pandera</strong> (with <code>drop_invalid_rows=True</code>), <strong>Pointblank</strong> (with
<code>get_sundered_data()</code>), <strong>Dataframely</strong>, <strong>checkedframe</strong>, and
<strong>polspec</strong> can also separate good rows from bad ones, so a pipeline can
carry on with the clean data and set the rest aside. <strong>Pointblank</strong> and
<strong>Validoopsie</strong> let you accept a certain share of failures through
thresholds, so validation becomes a measure of quality you can track and
improve over time, not just a pass or fail.</p>
<div id="qnrtxsobuu" style="padding-left:0px;padding-right:0px;padding-top:10px;padding-bottom:10px;overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
<style>
#qnrtxsobuu table {
          font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }
#qnrtxsobuu thead, tbody, tfoot, tr, td, th { border-style: none; }
 tr { background-color: transparent; }
#qnrtxsobuu p { margin: 0; padding: 0; }
 #qnrtxsobuu .gt_table { display: table; border-collapse: collapse; line-height: normal; margin-left: auto; margin-right: auto; color: #333333; font-size: 16px; font-weight: normal; font-style: normal; background-color: #FFFFFF; width: auto; border-top-style: solid; border-top-width: 2px; border-top-color: #A8A8A8; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #A8A8A8; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; }
 #qnrtxsobuu .gt_caption { padding-top: 4px; padding-bottom: 4px; }
 #qnrtxsobuu .gt_title { color: #333333; font-size: 125%; font-weight: initial; padding-top: 4px; padding-bottom: 4px; padding-left: 10px; padding-right: 10px; border-bottom-color: #FFFFFF; border-bottom-width: 0; }
 #qnrtxsobuu .gt_subtitle { color: #333333; font-size: 85%; font-weight: initial; padding-top: 3px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; border-top-color: #FFFFFF; border-top-width: 0; }
 #qnrtxsobuu .gt_heading { background-color: #FFFFFF; text-align: center; border-bottom-color: #FFFFFF; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #qnrtxsobuu .gt_bottom_border { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #qnrtxsobuu .gt_col_headings { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; }
 #qnrtxsobuu .gt_col_heading { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; padding-right: 10px; overflow-x: hidden; }
 #qnrtxsobuu .gt_column_spanner_outer { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: normal; text-transform: inherit; padding-top: 0; padding-bottom: 0; padding-left: 4px; padding-right: 4px; }
 #qnrtxsobuu .gt_column_spanner_outer:first-child { padding-left: 0; }
 #qnrtxsobuu .gt_column_spanner_outer:last-child { padding-right: 0; }
 #qnrtxsobuu .gt_column_spanner { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: bottom; padding-top: 5px; padding-bottom: 5px; overflow-x: hidden; display: inline-block; width: 100%; }
 #qnrtxsobuu .gt_spanner_row { border-bottom-style: hidden; }
 #qnrtxsobuu .gt_group_heading { padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; text-align: left; }
 #qnrtxsobuu .gt_empty_group_heading { padding: 0.5px; color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; vertical-align: middle; }
 #qnrtxsobuu .gt_from_md> :first-child { margin-top: 0; }
 #qnrtxsobuu .gt_from_md> :last-child { margin-bottom: 0; }
 #qnrtxsobuu .gt_row { padding-top: 8px; padding-bottom: 8px; padding-left: 10px; padding-right: 10px; margin: 10px; border-top-style: solid; border-top-width: 1px; border-top-color: #D3D3D3; border-left-style: none; border-left-width: 1px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 1px; border-right-color: #D3D3D3; vertical-align: middle; overflow-x: hidden; }
 #qnrtxsobuu .gt_stub { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 10px; padding-right: 10px; }
 #qnrtxsobuu .gt_indent_1 { text-indent: 5px; }
 #qnrtxsobuu .gt_indent_2 { text-indent: calc(5px * 2); }
 #qnrtxsobuu .gt_indent_3 { text-indent: calc(5px * 3); }
 #qnrtxsobuu .gt_indent_4 { text-indent: calc(5px * 4); }
 #qnrtxsobuu .gt_indent_5 { text-indent: calc(5px * 5); }
 #qnrtxsobuu .gt_stub_row_group { color: #333333; background-color: #FFFFFF; font-size: 100%; font-weight: initial; text-transform: inherit; border-right-style: solid; border-right-width: 2px; border-right-color: #D3D3D3; padding-left: 10px; padding-right: 10px; vertical-align: top; }
 #qnrtxsobuu .gt_row_group_first td { border-top-width: 2px; }
 #qnrtxsobuu .gt_row_group_first th { border-top-width: 2px; }
 #qnrtxsobuu .gt_striped { color: #333333; background-color: #F4F4F4; }
 #qnrtxsobuu .gt_table_body { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #qnrtxsobuu .gt_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #qnrtxsobuu .gt_first_summary_row { border-top-style: solid; border-top-width: 2px; border-top-color: #D3D3D3; }
 #qnrtxsobuu .gt_last_summary_row_top { border-bottom-style: solid; border-bottom-width: 2px; border-bottom-color: #D3D3D3; }
 #qnrtxsobuu .gt_grand_summary_row { color: #333333; background-color: #FFFFFF; text-transform: inherit; padding-top: 8px; padding-bottom: 8px; padding-left: 5px; padding-right: 5px; }
 #qnrtxsobuu .gt_first_grand_summary_row_bottom { border-top-style: double; border-top-width: 6px; border-top-color: #D3D3D3; }
 #qnrtxsobuu .gt_last_grand_summary_row_top { border-bottom-style: double; border-bottom-width: 6px; border-bottom-color: #D3D3D3; }
 #qnrtxsobuu .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #qnrtxsobuu .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 10px; padding-right: 10px; text-align: left; }
 #qnrtxsobuu .gt_left { text-align: left; }
 #qnrtxsobuu .gt_center { text-align: center; }
 #qnrtxsobuu .gt_right { text-align: right; font-variant-numeric: tabular-nums; }
 #qnrtxsobuu .gt_font_normal { font-weight: normal; }
 #qnrtxsobuu .gt_font_bold { font-weight: bold; }
 #qnrtxsobuu .gt_font_italic { font-style: italic; }
 #qnrtxsobuu .gt_super { font-size: 65%; }
 #qnrtxsobuu .gt_footnotes { color: font-color(#FFFFFF); background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #qnrtxsobuu .gt_footnote { margin: 0px; font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 5px; padding-right: 5px; }
 #qnrtxsobuu .gt_sourcenotes { color: #333333; background-color: #FFFFFF; border-bottom-style: none; border-bottom-width: 2px; border-bottom-color: #D3D3D3; border-left-style: none; border-left-width: 2px; border-left-color: #D3D3D3; border-right-style: none; border-right-width: 2px; border-right-color: #D3D3D3; }
 #qnrtxsobuu .gt_sourcenote { font-size: 90%; padding-top: 4px; padding-bottom: 4px; padding-left: 10px; padding-right: 10px; text-align: left; }
 #qnrtxsobuu .gt_footnote_marks { font-size: 75%; vertical-align: 0.4em; position: initial; }
 #qnrtxsobuu .gt_asterisk { font-size: 100%; vertical-align: 0; }
</style>
<table class="gt_table" data-quarto-disable-processing="true" data-quarto-bootstrap="false">
<thead>
<tr class="gt_col_headings">
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="use_case">Use Case</th>
  <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1" scope="col" id="libs">Libraries to Consider</th>
</tr>
</thead>
<tbody class="gt_table_body">
  <tr>
    <td headers="use_case" class="gt_row gt_left">Type-safe pipelines</td>
    <td headers="libs" class="gt_row gt_left">Pandera, Dataframely, Pavise</td>
  </tr>
  <tr>
    <td headers="use_case" class="gt_row gt_left">Stakeholder reporting</td>
    <td headers="libs" class="gt_row gt_left">Pointblank</td>
  </tr>
  <tr>
    <td headers="use_case" class="gt_row gt_left">Pydantic-based applications</td>
    <td headers="libs" class="gt_row gt_left">Patito</td>
  </tr>
  <tr>
    <td headers="use_case" class="gt_row gt_left">Statistical validation</td>
    <td headers="libs" class="gt_row gt_left">Pandera</td>
  </tr>
  <tr>
    <td headers="use_case" class="gt_row gt_left">Gradual quality improvement</td>
    <td headers="libs" class="gt_row gt_left">Pointblank, Validoopsie</td>
  </tr>
  <tr>
    <td headers="use_case" class="gt_row gt_left">Validation at function boundaries</td>
    <td headers="libs" class="gt_row gt_left">Daffy</td>
  </tr>
  <tr>
    <td headers="use_case" class="gt_row gt_left">Working across DataFrame libraries</td>
    <td headers="libs" class="gt_row gt_left">checkedframe, Daffy, Pointblank, Validoopsie, Pandera</td>
  </tr>
  <tr>
    <td headers="use_case" class="gt_row gt_left">Test fixtures that match the schema</td>
    <td headers="libs" class="gt_row gt_left">polspec, Dataframely, Pointblank, Patito</td>
  </tr>
</tbody>
</table>
</div>
<p>One newer consideration is how well a library supports coding agents.
Writing a full set of checks by hand can be tedious, and an agent that
knows a library&rsquo;s API can draft a first version from a description of
the data, leaving you to review and adjust it. A few of these projects
now publish material for exactly this purpose. <strong>Dataframely</strong> provides
an <a href="https://github.com/Quantco/dataframely/blob/main/skills/dataframely/SKILL.md" target="_blank" rel="noopener">agent
skill</a>
along with a <a href="https://dataframely.readthedocs.io/latest/guides/coding-agents.html" target="_blank" rel="noopener">guide to working with coding
agents</a>.
<strong>Pointblank</strong> ships <a href="https://github.com/posit-dev/pointblank/tree/main/skills" target="_blank" rel="noopener">several
skills</a> (for
writing validations, defining data contracts, and generating test data,
among other tasks) and an <a href="https://posit-dev.github.io/pointblank/user-guide/integrations/mcp-quick-start.html" target="_blank" rel="noopener">MCP
server</a>.
<strong>polspec</strong> publishes an
<a href="https://maxwellb13.github.io/polspec/llms.txt" target="_blank" rel="noopener"><code>llms.txt</code></a> file that
gives a language model its complete documentation in one place.
Schema-based libraries have something of an advantage here regardless,
since a schema is a compact description of the data that is easy for an
agent to read, write, and check against the real thing.</p>
<p>Finally, these libraries work well together. A pipeline might use
<strong>Daffy</strong> decorators on its transformation functions, <strong>Dataframely</strong> or
<strong>Pandera</strong> schemas at its main stages, and a <strong>Pointblank</strong> report for
the people downstream who need to know whether they can trust the data.
A good way to start is with whichever library fits your most pressing
need, adding others as your requirements grow.</p>
<h2 id="wrapping-up">Wrapping Up
</h2>
<p>The Python ecosystem for validating Polars DataFrames is in better shape
than it was eighteen months ago. The established libraries have matured
and broadened their reach, and the newer ones bring some genuinely new
ideas: decorators that check data at function boundaries, schemas that
double as type annotations, and schemas that generate the data they
describe. Every library in this survey found trouble in our small table
(<strong>Pavise</strong>, by design, stopped at the first problem). Where they differ
is in how the checks are written (in a schema, a chain of steps, or a
function decorator), what happens when something fails (an exception, a
log entry, a filtered table, or a report), and how many DataFrame
libraries they work with.</p>
<p>This survey reflects what we know about these libraries at the end of
2026, and things move fast enough that some details will soon be out of
date. The links in the table at the top of this post lead to each
project&rsquo;s repository, which is the best place to find current
documentation, ask questions, or report problems. If one of these
libraries caught your interest, try it on a table of your own. The small
example above only takes a few minutes to adapt, and it&rsquo;s a good way to
get a feel for how a library works before you commit to it.</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-11-30_validation-libs-2026/assets/validation-libs-2026.png" length="114431" type="image/png" />
    </item>
    <item>
      <title>commons 0.2.0</title>
      <link>https://opensource.posit.co/blog/2026-11-19_commons-0-2-0/</link>
      <pubDate>Thu, 19 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-11-19_commons-0-2-0/</guid>
      <dc:creator>Simon Couch</dc:creator>
      <dc:creator>Sara Altman</dc:creator>
      <dc:creator>Josh Taillon</dc:creator><description><![CDATA[<p>We&rsquo;re excited to announce the release of <a href="https://posit-dev.github.io/commons/" target="_blank" rel="noopener">commons</a> 0.2.0. commons is an R and Python package that helps data scientists build trustworthy data analysis agents. Among other things, this release makes commons interoperable with other coding agents and adds two new features to commons apps: Share (to Connect) and Quarto artifacts.</p>
<p>To install the R package from CRAN, run:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="nf">install.packages</span><span class="p">(</span><span class="s">&#34;commons&#34;</span><span class="p">)</span></span></span></code></pre></div></div>
<p>It will be a few weeks before the 0.2.0 release of commons is out on PyPI. To install the current version of the Python package, run:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-py" data-lang="py"><span class="line"><span class="cl"><span class="n">pip</span> <span class="n">install</span> <span class="n">commons</span></span></span></code></pre></div></div>
<p>If you&rsquo;re new to commons, the <a href="https://opensource.posit.co/blog/2026-09-15_commons-0-1-0/">introductory post</a> covers the package&rsquo;s design philosophy. This post highlights the biggest changes in 0.2.0; for a full list of changes, see the <a href="https://posit-dev.github.io/commons/r/news/index.html#commons-020" target="_blank" rel="noopener">NEWS</a>.</p>
<h2 id="interoperability">Interoperability
</h2>
<p>For commons 0.2.0, we wanted to make trusted code and context available independent of agent harness, including to coding agents like Posit Assistant, Claude Code, and Codex.</p>
<p>In service of this, we split the <code>commons()</code> function into two, decoupling the structure that holds the commons information layers from the agent harness. Calls to <code>commons()</code> previously looked like this:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="n">commons</span> <span class="o">&lt;-</span> <span class="nf">commons</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">  <span class="n">client</span><span class="p">,</span> 
</span></span><span class="line"><span class="cl">  <span class="n">data_sources</span><span class="p">,</span> 
</span></span><span class="line"><span class="cl">  <span class="n">semantic_layer</span><span class="p">,</span> 
</span></span><span class="line"><span class="cl">  <span class="n">context_layer</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span></span></span></code></pre></div></div>
<p>This interface coupled two things that should have been independent: assembling the data structure that holds trusted calculations and context, and creating an agent to use them.</p>
<p><code>commons()</code> now only creates the data structure, while a new function, <code>agent()</code>, creates the agent harness:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="n">commons</span> <span class="o">&lt;-</span> <span class="nf">commons</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">  <span class="n">data_sources</span> <span class="o">=</span> <span class="n">data_sources</span><span class="p">,</span> 
</span></span><span class="line"><span class="cl">  <span class="n">semantic_layer</span> <span class="o">=</span> <span class="n">semantic_layer</span><span class="p">,</span> 
</span></span><span class="line"><span class="cl">  <span class="n">context_layer</span> <span class="o">=</span> <span class="n">context_layer</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">agent</span> <span class="o">&lt;-</span> <span class="nf">agent</span><span class="p">(</span><span class="n">client</span><span class="p">,</span> <span class="n">commons</span> <span class="o">=</span> <span class="n">commons</span><span class="p">)</span></span></span></code></pre></div></div>
<p>We call that first data structure &ldquo;the commons.&rdquo; Because the commons is now separated from the agent harness, you can use it to access trusted code and context directly from R, enabling the use of commons with other coding agents. For example, here&rsquo;s Posit Assistant using the commons behind the <a href="https://github.com/posit-dev/devrel-agent" target="_blank" rel="noopener">DevRel Agent</a>, an agent we use at Posit for answering questions about our open source projects.</p>
<video class="column-page" autoplay loop muted playsinline controls preload="metadata" aria-label="Screen recording of Posit Assistant in Positron answering 'Plot opensource.posit.co traffic over time'. The assistant inspects a commons object, searches its governed metrics and context for web traffic, pulls daily pageviews and visitors, and plots them as a ggplot2 line chart from March through October 2026.">
  <source src="https://opensource.posit.co/blog/2026-11-19_commons-0-2-0/figures/posit-assistant-commons.mp4" type="video/mp4">
</video>
<p>In the above example, <code>devrel</code> is the commons. The agent runs &ldquo;normal R code&rdquo; to interface with it. For coding agents that don&rsquo;t already have a persistent R session, like Claude Code and Codex, we recommend <a href="https://github.com/posit-dev/mcp-console" target="_blank" rel="noopener">mcp-console</a>.</p>
<p>This split also means that commons users can use one commons across multiple projects. For example, a commons could be defined in an R package, and then used both in a Shiny app (by invoking the trusted code directly) and in an agent (by calling <code>agent()</code> on the commons).</p>
<p>This transition maintains backward compatibility. Calls using the old <code>commons()</code> interface will continue to work, but raise a deprecation warning with migration instructions. See <a href="https://posit-dev.github.io/commons/r/reference/commons.html" target="_blank" rel="noopener"><code>?commons()</code></a> and the new <a href="https://posit-dev.github.io/commons/r/articles/sharing.html" target="_blank" rel="noopener">&ldquo;Sharing a commons across projects&rdquo;</a> vignette to learn more.</p>
<h2 id="sharing">Sharing
</h2>
<p>On Posit Connect, users can now share conversations, documents, plots, or tables as static content they own. For example, we can click the &ldquo;Share&rdquo; button beside plots created with the deployed DevRel Agent and then share a link with collaborators:</p>
<video class="column-page" autoplay loop muted playsinline controls preload="metadata" aria-label="Screen recording of sharing a plot from the DevRel Agent. The user clicks the share button on a bar chart of AI newsletter pageviews by release date, copies a link from the sharing dialog, and opens the shared page, which shows the chart, a collapsed code section, and a note linking back to the DevRel Agent.">
  <source src="https://opensource.posit.co/blog/2026-11-19_commons-0-2-0/figures/devrel-agent-share.mp4" type="video/mp4">
</video>
<p>For plots and tables, the deployed page will include the source code, creation date, and a link back to the original agent.</p>
<p>(Since the public-facing deployment of DevRel Agent is publicly available on Posit Connect Cloud rather than internally deployed, that deployment of the agent will not have sharing enabled.)</p>
<p>To enable this feature in existing commons apps, redeploy them with the new commons version. No other changes are needed.</p>
<h2 id="artifacts">Artifacts
</h2>
<p>commons agents can now also write self-contained, sharable reports as Quarto documents.</p>
<video class="column-page" autoplay loop muted playsinline controls preload="metadata" aria-label="Screen recording of the DevRel Agent responding to 'Put this in a sharable document' after producing a pageviews chart. The agent reads up on creating sharable documents, retrieves data, and streams a Quarto document titled 'AI newsletter pageviews by release date' into a drawer beside the chat. Once the document finishes running, a Share button appears.">
  <source src="https://opensource.posit.co/blog/2026-11-19_commons-0-2-0/figures/devrel-agent-artifact.mp4" type="video/mp4">
</video>
<p>When users mention writing reports or creating something sharable, the agent can load an agent skill and then stream document code directly into a chat drawer. Documents get their data by calling <code>commons()</code> methods in their code, and they can be shared in the same way plots and tables can be.</p>
<h2 id="whats-next">What&rsquo;s next
</h2>
<p>We&rsquo;re super grateful for all of the feedback since the initial release of commons, and we&rsquo;re excited to have this release out! Only the R side of commons 0.2.0 has been released; keep an eye out in the coming weeks for a release on the Python side with analogous features.</p>
<p>In the coming months, we&rsquo;ll be focused on another substantial commons release. Our main focus is continuing to make commons apps feel like modern, powerful chat apps, including letting agents create interactive applications as artifacts. We&rsquo;re also interested in &ldquo;loops,&rdquo; where a user could, for example, request that a report be regenerated and sent to them weekly. If you have thoughts on where you&rsquo;d like to see commons go, feel free to reach out on our <a href="https://github.com/posit-dev/commons/issues" target="_blank" rel="noopener">issue tracker</a>.</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-11-19_commons-0-2-0/kingfisher.jpg" length="119595" type="image/jpeg" />
    </item>
    <item>
      <title>Great Docs Since v0.10: New Features, Faster Builds, and a Firmer Foundation</title>
      <link>https://opensource.posit.co/blog/2026-11-12_great-docs-general-update/</link>
      <pubDate>Thu, 12 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-11-12_great-docs-general-update/</guid>
      <dc:creator>Rich Iannone</dc:creator>
      <dc:creator>Hassan Kibirige</dc:creator><description><![CDATA[<p>When we <a href="https://opensource.posit.co/blog/2026-05-13_great-docs-ten-things/" target="_blank" rel="noopener">last wrote about Great
Docs</a>,
the project had just reached <code>v0.10.0</code> and we took the occasion to look
back over ten releases, one feature at a time. Six months have passed
since then. In that time we have shipped seven more releases (<code>v0.11.0</code>
through <code>v0.17.0</code>) and built up a substantial amount of work that will
be available in the next release. Altogether, that&rsquo;s a little over two
thousand commits from thirteen people. That is a lot of activity, and
much of it went toward making Great Docs more dependable for its users.</p>
<p>This post is a look at where things stand now. We&rsquo;ll start with the
people using Great Docs, since there are quite a few more of them than
there used to be (and that&rsquo;s changed how we think about the work). From
there, we&rsquo;ll survey the new and improved features and spend some time on
Termshow, our terminal recording tool, which started as a small addition
and has grown into something with its own direction. We&rsquo;ll finish with
two topics that matter more than any single feature: the speed of
builds, which is now a central focus, and the refactoring effort that
has been quietly rebuilding the tool&rsquo;s internals.</p>
<h2 id="who-is-using-great-docs">Who Is Using Great Docs
</h2>
<p>There are now well over a hundred public documentation sites built with
Great Docs. About ten of them belong to Posit projects such as <a href="https://posit-dev.github.io/great-tables/" target="_blank" rel="noopener">Great
Tables</a> and
<a href="https://posit-dev.github.io/pointblank/" target="_blank" rel="noopener">Pointblank</a>. The rest come
from the wider community and cover subjects as far apart as multiple
dispatch (<a href="https://coady.github.io/multimethod" target="_blank" rel="noopener">multimethod</a>), Bayesian
visualization (<a href="https://drbenvincent.github.io/tidydraws/" target="_blank" rel="noopener">tidydraws</a>),
web templating
(<a href="https://mkennedy.codes/docs/fastapi-chameleon/" target="_blank" rel="noopener">fastapi-chameleon</a>),
and comparative genomics
(<a href="https://datasnakes.github.io/OrthoEvolution/" target="_blank" rel="noopener">OrthoEvolution</a>). The
practical consequence of this growth is that any change to Great Docs
now reaches a lot of people at once. That&rsquo;s a responsibility we take
seriously, and it&rsquo;s why a fair share of the recent work has gone into
making the tool more predictable as it grows.</p>
<h2 id="documenting-more-than-python-apis">Documenting More Than Python APIs
</h2>
<p>Great Docs began as a tool for documenting the public API of a Python
package, and that remains its center of gravity. But a package&rsquo;s
interface often goes beyond its importable objects. Many packages ship a
command-line tool, some expose an MCP server for use by AI agents, and
an increasing number publish skill files that describe how an agent
should use them. Over the past several releases, Great Docs has learned
to document each of these.</p>
<p>Command-line documentation was the first to arrive. In <code>v0.11.0</code>, Great
Docs gained the ability to find a
<a href="https://click.palletsprojects.com/" target="_blank" rel="noopener">Click</a> command group and generate a
reference page for each subcommand, with the usage line, options,
arguments, and an extended description drawn from the docstring. Turning
it on takes a single setting:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="nt">cli</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">enabled</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span></span></span></code></pre></div></div>
<p>Since then, the same treatment has been extended to CLIs written in Go
(<code>v0.16.0</code>) and Rust (<code>v0.17.0</code>), and support for
<a href="https://typer.tiangolo.com/" target="_blank" rel="noopener">Typer</a> will be available in the next
release. The <code>v0.15.0</code> release added an index page for the CLI section,
and subcommands can be grouped into titled sections in the same way that
API reference entries can. The Great Docs site documents its own
command-line interface this way, so its reference pages are a fair
demonstration of what the feature produces.</p>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-11-12_great-docs-general-update/assets/cli-reference.png" alt="The reference page for great-docs build, generated from the Click command and its docstring."></p>
<p>MCP servers came next, in <code>v0.13.0</code>. Great Docs reads the tools,
prompts, and resources a server declares and generates reference pages
for them, along with an index page that summarizes the server at a
glance. It also writes a <code>.well-known/mcp.json</code> manifest so that clients
can discover the server from the documentation site itself. For packages
that expose functionality to agents, this puts that functionality on the
same footing as the Python API. That seems only fair, given how much of
the interaction with some packages now happens through agents.</p>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-11-12_great-docs-general-update/assets/mcp-reference.png" alt="The MCP Reference index page, summarizing the tools, prompts, and resources a server exposes."></p>
<p>There are more additions in the same spirit. Projects can now publish
multiple agent skills rather than a single one. A Package Info page
(added in <code>v0.15.0</code>) lists a package&rsquo;s dependencies and metadata, and a
License page (<code>v0.13.1</code>) presents the license with its SPDX identifier.
Type aliases declared with the PEP 695 <code>type</code> statement are documented
properly as of <code>v0.17.0</code>. Together they make a Great Docs site a
complete home for a package, where readers can find nearly everything
they need to know about it in one place.</p>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-11-12_great-docs-general-update/assets/package-info.png" alt="The Package Info page, listing a package's metadata and its dependencies."></p>
<h2 id="richer-pages">Richer Pages
</h2>
<p>The other broad category of new features concerns what can go on a page.
Documentation is mostly prose and code, but the moments that teach the
most are often the ones where the reader can see or touch something. A
number of features added since <code>v0.10.0</code> aim at those moments.</p>
<p>The lightbox, introduced in <code>v0.14.0</code>, lets readers enlarge an image and
inspect it more closely. You can turn it on for a single image with a
<code>.lightbox</code> class or for a whole page with a frontmatter setting. It
supports captions, credits, galleries, zooming and panning, and
alternate images for dark mode:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">![<span class="nt">Singapore skyline</span>](<span class="na">../assets/city-singapore.jpg</span>){.lightbox
</span></span><span class="line"><span class="cl">  caption=&#34;The Singapore skyline along Marina Bay&#34;
</span></span><span class="line"><span class="cl">  credit=&#34;Photo via Pexels&#34;}</span></span></code></pre></div></div>
<p>The enlarged view includes a small toolbar for zooming, copying,
downloading, and linking directly to the image. The same release added a
<code>{{&lt; compare &gt;}}</code> shortcode that places two images under a draggable
slider. This is useful for showing a before and after state (a chart
under two themes, say, or a table before and after styling).</p>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-11-12_great-docs-general-update/assets/lightbox-open.png" alt="An image opened in the lightbox, with its caption and the toolbar for zooming, copying, downloading, and linking."></p>
<p><a href="https://marimo.io/" target="_blank" rel="noopener">marimo</a> notebooks arrived in <code>v0.17.0</code>. A marimo
notebook is a plain Python file whose cells re-run reactively when their
inputs change, and Great Docs can embed one directly in a page using a
shortcode. In the default &ldquo;island&rdquo; mode, the notebook&rsquo;s outputs and
widgets appear inline and stay live, so readers can drag a slider and
watch the dependent cells recompute in the browser. An iframe mode goes
further and makes the code itself editable.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-markdown" data-lang="markdown"><span class="line"><span class="cl">{{&lt; marimo file=&#34;notebooks/reactive-intro.py&#34; &gt;}}</span></span></code></pre></div></div>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-11-12_great-docs-general-update/assets/marimo-island.png" alt="A marimo notebook embedded in island mode: dragging the sliders updates the summary text and the bar chart."></p>
<p>Several more features round out this category. Collapsible details
blocks and mock code cells (which display code as if it had been
executed, without running it) arrived in <code>v0.11.0</code>. Code includes, added
in <code>v0.16.0</code>, let a page pull its examples from real source files so
they can&rsquo;t quietly drift away from the code. The next release adds
<a href="https://d2lang.com/" target="_blank" rel="noopener">D2</a> diagrams, pre-rendered to SVG with separate
light and dark versions. It also adds a wide layout toggle that appears
on large screens and lets readers widen the content column (press <code>w</code>,
or configure it with the <code>wide_layout</code> setting). Finally, a new
<code>great-docs check-examples</code> command runs the code cells in your pages
and the examples in your docstrings and reports any that fail. That
addresses a problem every maintainer has met: the documentation example
that stopped working two releases ago without anyone noticing.</p>
<h2 id="termshow">Termshow
</h2>
<p>Termshow is the part of Great Docs that has changed the most since May,
and it deserves a section of its own. It began in <code>v0.12.0</code> as a way to
record a terminal session and play it back on a documentation page. Many
packages are best introduced through a terminal (an installation, a
first command, a short interactive session). The usual ways of showing
this are a static code block, which conveys nothing of the experience,
or a video or GIF, which can&rsquo;t be searched, copied, or edited without
recording it again. A Termshow recording is a text file of timed
terminal output, and the player renders it in the browser, so the text
stays selectable and the file stays small.</p>
<p>The basic workflow is to record a session and then place it on a page
with a shortcode. What made Termshow more than a player, even in its
first release, was that a recording could be annotated after the fact.
You can divide it into chapters, highlight regions of the screen, attach
notes that appear at particular moments, and pick out snippets of output
that readers can copy. The Great Docs homepage uses a recording of this
kind to show the tool being installed and run, with chapter markers
along the bottom of the player.</p>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-11-12_great-docs-general-update/assets/termshow-player.png" alt="The Termshow player on the Great Docs homepage, partway through the &quot;Build&quot; chapter of the demo recording."></p>
<p>Since August, Termshow has been available as a standalone Quarto
extension, so it can be used in any Quarto project and not only in sites
built with Great Docs. The work since then has gone in a few directions.
One is authoring. The Termshow Editor, launched with
<code>great-docs termshow edit</code>, is a browser application that lays a
recording out on a timeline. Chapters, annotations, cuts, highlights,
and snippets can then be placed visually rather than by writing
timestamps into a YAML file.</p>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-11-12_great-docs-general-update/assets/termshow-editor.png" alt="The Termshow Editor, with the recording above and tracks for chapters, annotations, and snippets along the timeline."></p>
<p>Another direction addresses a weakness that every terminal recording
shares: it only shows what a tool printed on the day it was recorded.
Termshow now supports scripted recordings, in which a YAML file lists
the steps to perform and Termshow types them into a fresh shell:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="nt">record</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">shell</span><span class="p">:</span><span class="w"> </span><span class="l">bash --norc</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">cols</span><span class="p">:</span><span class="w"> </span><span class="m">90</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">rows</span><span class="p">:</span><span class="w"> </span><span class="m">20</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">steps</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="nt">marker</span><span class="p">:</span><span class="w"> </span><span class="l">Install</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="nt">run</span><span class="p">:</span><span class="w"> </span><span class="l">pip install mypackage</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="nt">marker</span><span class="p">:</span><span class="w"> </span><span class="l">Verify</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="nt">run</span><span class="p">:</span><span class="w"> </span><span class="l">python -c &#34;import mypackage; print(mypackage.__version__)&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="nt">sleep</span><span class="p">:</span><span class="w"> </span><span class="m">2</span></span></span></code></pre></div></div>
<p>Because the steps are written down, they can be run again. The
<code>termshow check</code> command reruns them, compares the screen at each marker
with the committed recording, and exits with an error if the output has
changed. Only the text is compared, so a slower machine or a different
color theme doesn&rsquo;t count as drift. You can also ignore patterns for
text that legitimately changes on every run (version numbers, dates,
temporary paths). Running this in CI turns a demo into something closer
to a test, and once the changes have been reviewed, an <code>--update</code> flag
records the drifted demos again.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">great-docs termshow check docs/assets/*.termshow.yml</span></span></code></pre></div></div>
<p>The remaining work has been about interoperability. Termshow can import
recordings from <a href="https://asciinema.org/" target="_blank" rel="noopener">asciinema</a> and scripts from
<a href="https://github.com/charmbracelet/vhs" target="_blank" rel="noopener">VHS</a>, and it can export to
asciicast, animated SVG, GIF, MP4, and WebM, as well as plain
transcripts and WebVTT captions. A <code>&lt;termshow-player&gt;</code> web component
lets a recording be embedded in any HTML page, and there is now a
written format specification with JSON Schemas. We looked carefully at
the existing tools before choosing this direction. The format used by
asciinema is the established standard, and it made sense to build on it
rather than compete with it. VHS has shown how much people value
recordings that can be scripted and run in CI. What no existing tool
really provides is the layer of editing and presentation that sits on
top of a recording, and that layer is where Termshow aims to be useful.
Termshow is currently installed as part of Great Docs, and making it
just as easy to use on its own is one of the things we&rsquo;re excited to
work on next.</p>
<h2 id="speed-as-a-focus">Speed as a Focus
</h2>
<p>If there is one theme that will shape the next several releases, it is
speed. We want builds to feel quick no matter how large a package gets.
Our approach has been to measure first (the <code>great-docs timings</code> command
reports how long each page took) and then make each step of a build
leaner. That has meant doing expensive work once per build and reusing
the results, building sidebars more efficiently, turning on Quarto&rsquo;s
freeze mechanism by default, and running independent tasks in parallel.
Many of these changes started with reports and contributions from people
documenting large packages. With those steps streamlined, most of a
build&rsquo;s time is now spent in <code>quarto render</code>, which renders pages one
after another in a single process. The next release tackles this
directly with parallel rendering:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">great-docs build --jobs auto</span></span></code></pre></div></div>
<p>With <code>--jobs</code>, Great Docs divides the pages into groups and renders them
with several Quarto processes at once. With <code>auto</code>, it picks the number
of processes from your CPU count, up to a maximum of eight. Each process
works in its own copy of the build directory and sees the whole project,
so navigation, cross-references, and the search index come out just as
they would in an ordinary build. At the end, the results are merged into
a single site. The groups are balanced using the per-page timings from
the previous build, so they all take about the same time to finish. On a
laptop with six performance cores, a 395-page site rendered in 52
seconds instead of two and a half minutes, and a 1,865-page site in a
little over three minutes instead of nineteen.</p>
<p>The feature is experimental and off by default for now. Small sites, and
a few kinds of site that can&rsquo;t be split safely, still render in one
process. If anything unexpected happens during a parallel render, its
output is discarded and the site is rendered the ordinary way. Further
out, we&rsquo;re watching <a href="https://github.com/quarto-dev/q2" target="_blank" rel="noopener">Quarto 2</a>
closely. It&rsquo;s being written with performance as a primary goal, and we
intend to adopt it as soon as it&rsquo;s ready.</p>
<h2 id="refactoring-and-a-firmer-foundation">Refactoring and a Firmer Foundation
</h2>
<p>Everything described so far is visible to anyone who uses Great Docs.
Some of the most consequential work of the past few months, though, has
happened beneath the surface, in a sustained effort to refactor the
tool&rsquo;s internals. The aim is to give every part of a build a clear place
and a clear responsibility. Each page should be produced correctly at
the stage where its content is generated, the API reference should be
assembled in distinct steps that can each be understood and tested, and
the code as a whole should pass strict type-checking. A good deal of
that is now in place, and the rest is being approached in the same
deliberate, step-by-step way.</p>
<p>The longer-term goal is a project that can grow without losing its
footing. To that end, every pull request now runs full builds of forty
test packages and compares the results with those from the existing
code, so any change in behavior, intended or not, shows up before it
reaches a release. That safeguard lets us keep reorganizing the
internals with confidence. It should also make the codebase easier for
new contributors to approach, since they can see where a change belongs
and find out when it has had an effect they didn&rsquo;t expect. The same
groundwork prepares Great Docs for larger shifts ahead, such as the move
to Quarto 2. This is the foundation on which the next year of features
will be built, and we think it will let them arrive faster and more
reliably than before.</p>
<h2 id="looking-ahead">Looking Ahead
</h2>
<p>Taken together, the work of the past six months points in a consistent
direction. The features have widened what Great Docs can document and
what can appear on a page. Termshow has grown from a playback widget
into a toolkit for terminal demonstrations that stay correct over time.
The speed work has made builds noticeably quicker, with more to come,
and the refactoring is giving the project a structure that can be tested
thoroughly and changed with confidence. With over a hundred projects now
depending on Great Docs, that last point may be the most important,
because it&rsquo;s what lets the project keep growing while staying something
people can rely on.</p>
<p>Much of what is described here is already released, and the rest (Typer
support, D2 diagrams, the wide layout, <code>check-examples</code>, parallel
rendering, and most of the recent Termshow work) will arrive in the next
release. If you would like to try Great Docs, it is <a href="https://pypi.org/project/great-docs/" target="_blank" rel="noopener">available on
PyPI</a>:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pip install great-docs</span></span></code></pre></div></div>
<p>The <a href="https://posit-dev.github.io/great-docs/" target="_blank" rel="noopener">documentation site</a> is
built from the latest development version, so it already shows the
upcoming features described above. If your builds are slower than you
think they should be, we&rsquo;d like to hear about it. You can open an <a href="https://github.com/posit-dev/great-docs/issues" target="_blank" rel="noopener">issue
on GitHub</a> for that or
for anything else you notice.</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-11-12_great-docs-general-update/assets/great-docs-general-update.png" length="289076" type="image/png" />
    </item>
    <item>
      <title>mizu: thread-speed parallel R and Python over shared memory</title>
      <link>https://opensource.posit.co/blog/2026-11-05_mizu-0-1-0/</link>
      <pubDate>Thu, 05 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-11-05_mizu-0-1-0/</guid>
      <dc:creator>Charlie Gao</dc:creator><description><![CDATA[<p>Resampling is an expensive part of modelling work.
Fit the same model hundreds of times over, so you attempt to do them in parallel over a pool of workers.
However the speedup you get is usually much less than you&rsquo;d hoped for.</p>
<p>The reason lies in how a process pool distributes and coordinates work: each task is serialized, copied through a socket and deserialized on the other side, and each result comes back the same way.
When tasks are small, this overhead can exceed the computation itself, and when the data is large, every worker holding a copy exhausts memory.</p>
<p>Shared memory avoids both costs.
A task is written once into memory that both processes can see, and the worker reads it without copying.</p>
<p>We&rsquo;re introducing libmizu, a C library for lock-free shared memory IPC, and mizu and pymizu, the R and Python bindings to it.
Together they provide fast async and parallel computing on a single machine, and zero-copy data exchange between R and Python processes.</p>
<ul>
<li><a href="https://github.com/shikokuchuo/libmizu" target="_blank" rel="noopener">libmizu</a>, the C core</li>
<li><a href="https://github.com/shikokuchuo/mizu" target="_blank" rel="noopener">mizu</a>, the R package built on it, now on CRAN</li>
<li><a href="https://github.com/shikokuchuo/pymizu" target="_blank" rel="noopener">pymizu</a>, the Python package on the same core, now on PyPI</li>
</ul>
<p>The two bindings share one wire format, so R and Python processes can talk to each other directly.
Common data structures such as vectors, matrices, data frames and Arrow tables are shared between the two languages as zero-copy views.</p>
<p>The name &lsquo;mizu&rsquo; is Japanese for water: data flows between processes and takes the shape of whichever language receives it.</p>
<div class="panel-tabset" data-tabset-group="language">
<ul id="tabset-1" class="panel-tabset-tabby">
<li><a data-tabby-default href="#tabset-1-1">R</a></li>
<li><a href="#tabset-1-2">Python</a></li>
</ul>
<div id="tabset-1-1">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="nf">install.packages</span><span class="p">(</span><span class="s">&#34;mizu&#34;</span><span class="p">)</span></span></span></code></pre></div></div>
<p>Requires R 4.3 or later.</p>
</div>
<div id="tabset-1-2">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pip install pymizu</span></span></code></pre></div></div>
<p>Requires Python 3.10 or later.
Add <code>pymizu[numpy]</code> for zero-copy array views, and <code>pymizu[cloudpickle]</code> to submit lambdas and closures as tasks.
The extension compiles the vendored C core, so there is no system library to install.</p>
</div>
</div>
<p>For the C library, clone the repository and run <code>make</code>; see the README for further details.
All three are at the <em>experimental</em> lifecycle stage.</p>
<h2 id="from-100-µs-to-under-1-µs">From 100 µs to under 1 µs
</h2>
<p>A task round trip is the time to submit a trivial task to a pool and collect its result: the host publishes the task, a worker runs it, the result is published, and the host collects it.
On an Apple M4 Pro, this round trip takes 0.8 µs in R and 0.7 µs in Python, and 0.4 µs in the C core.
The same round trip over sockets, in mirai for R or <code>ProcessPoolExecutor</code> for Python, takes around 100 µs.</p>
<p>This gain of two orders of magnitude represents a generational leap, allowing you to divide work as finely as you would with threads.
A task of ten microseconds is worth sending to a worker, and a map over thousands of such tasks completes in milliseconds.</p>
<h2 id="meet-the-pool">Meet the pool
</h2>
<p>A pool is a set of worker processes that divide submitted tasks among themselves.
<code>submit</code> returns a handle immediately, and <code>collect</code> waits for the value.
<code>map</code> works the same way, but the function and data cross into shared memory once, and the workers claim ranges of elements from a shared cursor.</p>
<p>Creating the pool takes a short amount of time as each worker is a fresh R or Python process that needs to be started.
The usual practice is to start a pool once and keep it around, as everything after that one-time cost runs at the speeds shown above.</p>
<div class="panel-tabset" data-tabset-group="language">
<ul id="tabset-2" class="panel-tabset-tabby">
<li><a data-tabby-default href="#tabset-2-1">R</a></li>
<li><a href="#tabset-2-2">Python</a></li>
</ul>
<div id="tabset-2-1">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="nf">library</span><span class="p">(</span><span class="n">mizu</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">p</span> <span class="o">&lt;-</span> <span class="nf">mizu_pool</span><span class="p">(</span><span class="n">n_workers</span> <span class="o">=</span> <span class="m">4L</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">t</span> <span class="o">&lt;-</span> <span class="nf">mizu_submit</span><span class="p">(</span><span class="n">p</span><span class="p">,</span> <span class="nf">sum</span><span class="p">(</span><span class="n">x</span><span class="p">)</span> <span class="o">+</span> <span class="n">y</span><span class="p">,</span> <span class="n">x</span> <span class="o">=</span> <span class="m">1</span><span class="o">:</span><span class="m">10</span><span class="p">,</span> <span class="n">y</span> <span class="o">=</span> <span class="m">100</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="nf">mizu_collect</span><span class="p">(</span><span class="n">t</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="c1">#&gt; [1] 155</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">m</span> <span class="o">&lt;-</span> <span class="nf">mizu_map</span><span class="p">(</span><span class="n">p</span><span class="p">,</span> <span class="nf">c</span><span class="p">(</span><span class="m">1</span><span class="p">,</span> <span class="m">4</span><span class="p">,</span> <span class="m">9</span><span class="p">,</span> <span class="m">16</span><span class="p">,</span> <span class="m">25</span><span class="p">),</span> <span class="n">sqrt</span><span class="p">,</span> <span class="n">.template</span> <span class="o">=</span> <span class="nf">numeric</span><span class="p">(</span><span class="m">1</span><span class="p">))</span>
</span></span><span class="line"><span class="cl"><span class="nf">mizu_collect</span><span class="p">(</span><span class="n">m</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="c1">#&gt; [1] 1 2 3 4 5</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nf">mizu_pool_stop</span><span class="p">(</span><span class="n">p</span><span class="p">)</span></span></span></code></pre></div></div>
</div>
<div id="tabset-2-2">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">math</span>
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">pymizu</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">with</span> <span class="n">pymizu</span><span class="o">.</span><span class="n">Pool</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="mi">4</span><span class="p">)</span> <span class="k">as</span> <span class="n">pool</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">task</span> <span class="o">=</span> <span class="n">pool</span><span class="o">.</span><span class="n">submit</span><span class="p">(</span><span class="nb">sum</span><span class="p">,</span> <span class="nb">range</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">11</span><span class="p">),</span> <span class="mi">100</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="n">task</span><span class="o">.</span><span class="n">collect</span><span class="p">(</span><span class="n">timeout</span><span class="o">=</span><span class="mi">5</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">    <span class="c1">#&gt; 155</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="n">m</span> <span class="o">=</span> <span class="n">pool</span><span class="o">.</span><span class="n">map</span><span class="p">(</span><span class="n">math</span><span class="o">.</span><span class="n">sqrt</span><span class="p">,</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">9</span><span class="p">,</span> <span class="mi">16</span><span class="p">,</span> <span class="mi">25</span><span class="p">])</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="n">m</span><span class="o">.</span><span class="n">collect</span><span class="p">())</span>
</span></span><span class="line"><span class="cl">    <span class="c1">#&gt; [1.0, 2.0, 3.0, 4.0, 5.0]</span></span></span></code></pre></div></div>
<p><code>PoolExecutor</code> adapts a pool to the <code>concurrent.futures.Executor</code> interface, so code written against <code>ProcessPoolExecutor</code> drops in, and <code>wait</code>, <code>as_completed</code> and <code>asyncio.wrap_future</code> work unchanged.</p>
</div>
</div>
<h3 id="r-in-polars-out">R in, polars out
</h3>
<p>The workers in a pool don&rsquo;t have to be the same language as the host.
Here an R session passes its built-in <code>mtcars</code> data frame to Python workers, which summarize it with polars.
The data frame crosses as an Arrow-backed <code>pymizu.Frame</code>, and the polars result comes back as a data frame whose columns are zero-copy ALTREP views into the same polars frame.</p>
<div class="panel-tabset" data-tabset-group="language">
<ul id="tabset-3" class="panel-tabset-tabby">
<li><a data-tabby-default href="#tabset-3-1">R</a></li>
<li><a href="#tabset-3-2">Python</a></li>
</ul>
<div id="tabset-3-1">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="n">p</span> <span class="o">&lt;-</span> <span class="nf">mizu_pool</span><span class="p">(</span><span class="n">n_workers</span> <span class="o">=</span> <span class="m">4L</span><span class="p">,</span> <span class="n">launcher</span> <span class="o">=</span> <span class="nf">mizu_py_launcher</span><span class="p">())</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">t</span> <span class="o">&lt;-</span> <span class="nf">mizu_submit_call</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">  <span class="n">p</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">  <span class="nf">mizu_call</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">.source</span> <span class="o">=</span> <span class="n">r</span><span class="s">&#34;(import polars as pl
</span></span></span><span class="line"><span class="cl"><span class="s">pl.DataFrame(x).group_by(&#39;cyl&#39;).agg(pl.col(&#39;mpg&#39;).mean()).sort(&#39;cyl&#39;))&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="n">x</span> <span class="o">=</span> <span class="n">mtcars</span>
</span></span><span class="line"><span class="cl">  <span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="nf">mizu_collect</span><span class="p">(</span><span class="n">t</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="c1">#&gt;   cyl      mpg</span>
</span></span><span class="line"><span class="cl"><span class="c1">#&gt; 1   4 26.66364</span>
</span></span><span class="line"><span class="cl"><span class="c1">#&gt; 2   6 19.74286</span>
</span></span><span class="line"><span class="cl"><span class="c1">#&gt; 3   8 15.10000</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nf">mizu_pool_stop</span><span class="p">(</span><span class="n">p</span><span class="p">)</span></span></span></code></pre></div></div>
</div>
<div id="tabset-3-2">
<p>The reverse direction: a Python host drives R workers and reads the result into polars.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">polars</span> <span class="k">as</span> <span class="nn">pl</span>
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">pymizu</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">with</span> <span class="n">pymizu</span><span class="o">.</span><span class="n">Pool</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="mi">4</span><span class="p">,</span> <span class="n">launcher</span><span class="o">=</span><span class="n">pymizu</span><span class="o">.</span><span class="n">r_launcher</span><span class="p">())</span> <span class="k">as</span> <span class="n">pool</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">task</span> <span class="o">=</span> <span class="n">pool</span><span class="o">.</span><span class="n">submit</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">pymizu</span><span class="o">.</span><span class="n">call</span><span class="p">(</span><span class="n">source</span><span class="o">=</span><span class="s2">&#34;aggregate(mpg ~ cyl, data = mtcars, FUN = mean)&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">(</span><span class="n">task</span><span class="o">.</span><span class="n">collect</span><span class="p">()))</span>
</span></span><span class="line"><span class="cl">    <span class="c1">#&gt; shape: (3, 2)</span>
</span></span><span class="line"><span class="cl">    <span class="c1">#&gt; ┌─────┬───────────┐</span>
</span></span><span class="line"><span class="cl">    <span class="c1">#&gt; │ cyl ┆ mpg       │</span>
</span></span><span class="line"><span class="cl">    <span class="c1">#&gt; │ --- ┆ ---       │</span>
</span></span><span class="line"><span class="cl">    <span class="c1">#&gt; │ f64 ┆ f64       │</span>
</span></span><span class="line"><span class="cl">    <span class="c1">#&gt; ╞═════╪═══════════╡</span>
</span></span><span class="line"><span class="cl">    <span class="c1">#&gt; │ 4.0 ┆ 26.663636 │</span>
</span></span><span class="line"><span class="cl">    <span class="c1">#&gt; │ 6.0 ┆ 19.742857 │</span>
</span></span><span class="line"><span class="cl">    <span class="c1">#&gt; │ 8.0 ┆ 15.1      │</span>
</span></span><span class="line"><span class="cl">    <span class="c1">#&gt; └─────┴───────────┘</span></span></span></code></pre></div></div>
</div>
</div>
<p>Notice that you did not need to perform any marshalling or conversion step on either side.
A numeric vector arrives in Python as a NumPy array, and a data frame as a <code>pymizu.Frame</code>, which <code>pl.from_arrow()</code> or <code>pa.table()</code> takes directly.
A NumPy array, or a polars, pyarrow or pandas frame, arrives in R as a vector or data frame.
Arrow tables and record batches cross the same way in both directions, and <code>mizu_as_arrow()</code> reads a received frame as Arrow in R.</p>
<p>Above a small size floor where it&rsquo;s faster to send the object directly, none of these crossings copies the data: both sides read the same shared pages.</p>
<h3 id="maps-within-maps">Maps within maps
</h3>
<p>A worker has access to its own pool, so a mapped function can itself map over the same workers, without deadlock. This is much more convenient than the workarounds we had to find in the past, such as tiered pool specifications.
Here the numbers 1 to 100,000 are split into four parts, and each part is split again across the pool to sum its square roots:</p>
<div class="panel-tabset" data-tabset-group="language">
<ul id="tabset-4" class="panel-tabset-tabby">
<li><a data-tabby-default href="#tabset-4-1">R</a></li>
<li><a href="#tabset-4-2">Python</a></li>
</ul>
<div id="tabset-4-1">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="n">parts</span> <span class="o">&lt;-</span> <span class="nf">split</span><span class="p">(</span><span class="nf">as.numeric</span><span class="p">(</span><span class="m">1</span><span class="o">:</span><span class="m">100000</span><span class="p">),</span> <span class="nf">rep</span><span class="p">(</span><span class="m">1</span><span class="o">:</span><span class="m">4</span><span class="p">,</span> <span class="n">each</span> <span class="o">=</span> <span class="m">25000</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">m</span> <span class="o">&lt;-</span> <span class="nf">mizu_map</span><span class="p">(</span><span class="n">p</span><span class="p">,</span> <span class="n">parts</span><span class="p">,</span> <span class="nf">\</span><span class="p">(</span><span class="n">part</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">  <span class="n">nested</span> <span class="o">&lt;-</span> <span class="nf">mizu_map</span><span class="p">(</span><span class="nf">mizu_current_pool</span><span class="p">(),</span> <span class="n">part</span><span class="p">,</span> <span class="n">sqrt</span><span class="p">,</span> <span class="n">.template</span> <span class="o">=</span> <span class="nf">numeric</span><span class="p">(</span><span class="m">1</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">  <span class="nf">sum</span><span class="p">(</span><span class="nf">mizu_collect</span><span class="p">(</span><span class="n">nested</span><span class="p">))</span>
</span></span><span class="line"><span class="cl"><span class="p">},</span> <span class="n">.template</span> <span class="o">=</span> <span class="nf">numeric</span><span class="p">(</span><span class="m">1</span><span class="p">))</span>
</span></span><span class="line"><span class="cl"><span class="nf">mizu_collect</span><span class="p">(</span><span class="n">m</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="c1">#&gt;       1       2       3       4</span>
</span></span><span class="line"><span class="cl"><span class="c1">#&gt; 2635310 4818361 6239529 7388808</span></span></span></code></pre></div></div>
</div>
<div id="tabset-4-2">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">math</span>
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">pymizu</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">parts</span> <span class="o">=</span> <span class="p">[</span><span class="nb">range</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">25001</span><span class="p">),</span> <span class="nb">range</span><span class="p">(</span><span class="mi">25001</span><span class="p">,</span> <span class="mi">50001</span><span class="p">),</span> <span class="nb">range</span><span class="p">(</span><span class="mi">50001</span><span class="p">,</span> <span class="mi">75001</span><span class="p">),</span> <span class="nb">range</span><span class="p">(</span><span class="mi">75001</span><span class="p">,</span> <span class="mi">100001</span><span class="p">)]</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">part_total</span><span class="p">(</span><span class="n">part</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="n">nested</span> <span class="o">=</span> <span class="n">pymizu</span><span class="o">.</span><span class="n">current_pool</span><span class="p">()</span><span class="o">.</span><span class="n">map</span><span class="p">(</span><span class="n">math</span><span class="o">.</span><span class="n">sqrt</span><span class="p">,</span> <span class="n">part</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="nb">sum</span><span class="p">(</span><span class="n">nested</span><span class="o">.</span><span class="n">collect</span><span class="p">())</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">with</span> <span class="n">pymizu</span><span class="o">.</span><span class="n">Pool</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="mi">4</span><span class="p">)</span> <span class="k">as</span> <span class="n">pool</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">m</span> <span class="o">=</span> <span class="n">pool</span><span class="o">.</span><span class="n">map</span><span class="p">(</span><span class="n">part_total</span><span class="p">,</span> <span class="n">parts</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="nb">print</span><span class="p">([</span><span class="nb">round</span><span class="p">(</span><span class="n">v</span><span class="p">)</span> <span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">m</span><span class="o">.</span><span class="n">collect</span><span class="p">()])</span>
</span></span><span class="line"><span class="cl">    <span class="c1">#&gt; [2635310, 4818361, 6239529, 7388808]</span></span></span></code></pre></div></div>
<p>A function defined in your own script, like <code>part_total()</code>, needs the <code>pymizu[cloudpickle]</code> extra, which pickles it by value.
Importable references such as <code>math.sqrt</code> pickle by reference, so the standard pickle suffices.</p>
</div>
</div>
<h3 id="async-without-the-polling">Async, without the polling
</h3>
<p>mizu provides event-driven async, with results feeding into an event loop without polling. For the highest efficiency, a burst of results produces only a single wake-up.</p>
<p>In R, a task or map handle is a promise: <code>then(task, fn)</code> resolves as soon as it completes.
mizu plugs into <code>later</code> and <code>promises</code> pipelines and is ready for Shiny.
In Python, you <code>await</code> a task or a map inside asyncio, and channels support <code>async for</code>.</p>
<h2 id="down-to-the-memcpy-floor">Down to the <code>memcpy</code> floor
</h2>
<p>Architecturally, mizu is quite different from mirai.
Socket-based frameworks pay for every message multiple times: serialize, copy through the kernel, deserialize.
mizu writes each payload once into shared memory in an efficient format.</p>
<p>Large vectors and data frames are mapped and arrive as ALTREP views in R, or as NumPy arrays and Arrow-backed frames in Python.
Workers claim tasks straight off lock-free queues, without requiring something like a task dispatcher in the middle.
Waiting stays out of the kernel entirely on the hot path, with a worker parking itself only when there is nothing to do.</p>
<p>By all measures, we&rsquo;re close to the <code>memcpy</code> floor, the physical limit at which bytes can move through memory.</p>
<h3 id="overhead-measured">Overhead, measured
</h3>
<p>The below is measured using 4 workers on an Apple M4 Pro.
The R figures are compared against mirai, and the Python figures against the standard library&rsquo;s <code>ProcessPoolExecutor</code>:</p>
<table>
  <thead>
      <tr>
          <th>Benchmark</th>
          <th>mizu</th>
          <th>mirai</th>
          <th>pymizu</th>
          <th>ProcessPoolExecutor</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Trivial task round trip</td>
          <td>0.8 µs</td>
          <td>100.5 µs</td>
          <td>0.7 µs</td>
          <td>94.2 µs</td>
      </tr>
      <tr>
          <td>Pipelined throughput, 1 worker</td>
          <td>833,000 tasks/s</td>
          <td>9,700 tasks/s</td>
          <td>2,390,000 tasks/s</td>
          <td>18,500 tasks/s</td>
      </tr>
      <tr>
          <td>Parallel map of 2,000 small tasks, 4 workers</td>
          <td>5.0 ms</td>
          <td>218 ms</td>
          <td>4.3 ms</td>
          <td>129 ms</td>
      </tr>
  </tbody>
</table>
<p>The benchmark scripts are in each repository and you can run them yourself.</p>
<h2 id="yes-microseconds-matter">Yes, microseconds matter
</h2>
<p>You may be wondering: going from 100 µs to 1 µs, these are tiny numbers, does it really matter?</p>
<p>The answer is unequivocally yes, and I have verified it with colleagues from the Tidymodels team.
The important thing to realise is that we&rsquo;re not dealing with each microbenchmark in isolation. In an actual workflow, many of these factors &mdash; transport costs, serialization costs, coordination costs &mdash; will compound and can sometimes reinforce each other if not optimally designed.</p>
<p>We ran four common modelling workloads on 12 workers of a 14-core Apple Silicon Mac, against a sequential baseline: bootstrap metrics, resampled model fits, permutation importance and bootstrap prediction intervals.
Each backend returned results identical to the sequential run.
The speedup versus sequential is shown below:</p>
<table>
  <thead>
      <tr>
          <th>Workload</th>
          <th>mizu</th>
          <th>mirai</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>A: Bootstrap metrics, 5,000 tasks of ~3 ms</td>
          <td>6.7x</td>
          <td>1.8x</td>
      </tr>
      <tr>
          <td>B: Resampled model fits, 250 tasks of ~45 ms</td>
          <td>7.9x</td>
          <td>4.0x</td>
      </tr>
      <tr>
          <td>C: Permutation importance, 240 tasks of ~85 ms</td>
          <td>8.1x</td>
          <td>6.4x</td>
      </tr>
      <tr>
          <td>D: Bootstrap prediction intervals, 400 tasks scoring 250,000 policies</td>
          <td>7.6x</td>
          <td>1.4x</td>
      </tr>
  </tbody>
</table>
<p>These workloads were chosen to be deliberately adversarial, each sized to stress data movement rather than compute.
That is why mirai, already the most performant parallel framework in R, shows such modest speedups here. Also note that 12 workers deliver at best an 8x speedup even with mizu. This is because there are still sequential parts to the workflow, such as collecting and combining the results, and it&rsquo;s what <a href="https://en.wikipedia.org/wiki/Amdahl%27s_law" target="_blank" rel="noopener">Amdahl&rsquo;s law</a> predicts.
The <a href="https://github.com/posit-dev/tidymodels-parallel-benchmark" target="_blank" rel="noopener">benchmark repository</a> contains the code, and my Tidymodels colleagues will follow up with a comprehensive report.</p>
<h2 id="know-the-limits">Know the limits
</h2>
<p>A few things to know before you start:</p>
<ul>
<li>The API is experimental. We may make changes to function names and arguments in response to feedback.</li>
<li>Workers don&rsquo;t see your session. A task runs in a fresh environment on the worker and sees only the arguments you pass: no globals, loaded packages or imports cross over. In R, a task must load any package it needs or use package-namespaced functions. In Python, a callable must be importable by the worker, or pickled by value with the <code>cloudpickle</code> extra.</li>
<li>Not every type crosses between languages. Vectors, strings, lists and dicts, dates and times, data frames and Arrow data cross between R and Python. Language objects such as formulas and functions do not, and mizu reports an error. Arrow data crosses exactly, but a few select types can change along the way: a dictionary-encoded column arrives in R as a factor, and unsigned integers arrive as wider signed types.</li>
<li>Small values are copied. The zero-copy floor is 256 KB for a single vector on a channel and 32 KB elsewhere. Below it, a value crosses as one quick copy.</li>
</ul>
<p>For R specifically:</p>
<ul>
<li>mizu doesn&rsquo;t replace <a href="https://mirai.r-lib.org" target="_blank" rel="noopener">mirai</a>.
mirai allows distributed computing, harnessing other machines on your network, an HPC cluster or the cloud, where shared memory doesn&rsquo;t reach.
If you&rsquo;re coming from mirai, the API will feel a little different: mizu was designed to be close to symmetrical between R and Python, so that it&rsquo;s easy to reach over in either direction, and this is the constraint we&rsquo;ve worked with.</li>
<li>mizu also interoperates with <a href="https://mori.r-lib.org" target="_blank" rel="noopener">mori</a>, which shares individual R objects: a mori shared object crosses a mizu channel or pool zero-copy.</li>
</ul>
<h2 id="from-mirai-to-mizu">From mirai to mizu
</h2>
<p>If you&rsquo;re wondering how we arrived at mizu, please allow me a brief account.</p>
<p>First, I discovered the data science and, in particular, the R community during the pandemic.
The problem I picked up in 2022 was the gap between R&rsquo;s scientific reach and its computing story: the ecosystem of packages had grown much faster than the machinery for running them in parallel.
R needed to play catch-up.</p>
<p><a href="https://mirai.r-lib.org" target="_blank" rel="noopener">mirai</a>, my first major package (Japanese for &lsquo;future&rsquo;), gave R true async capabilities: a task queue for scheduling over parallel or distributed workers and a thread pool for concurrent completions, with the communications layer moved off the main R thread.
It built on the work of others in our community.
Luke Tierney&rsquo;s parallel package gave us parallel computation with statistically valid pseudo-random numbers.
Henrik Bengtsson&rsquo;s future package popularised the concept of futures, or task handles, in R.
Garrett D&rsquo;Amore wrote NNG, the C messaging library that mirai runs on.
Working with Will Landau, Joe Cheng and Hadley Wickham brought mirai into targets, Shiny and purrr.</p>
<p><a href="https://mori.r-lib.org" target="_blank" rel="noopener">mori</a>, released this April, came at the same problem from a memory rather than a communications perspective.
Instead of copying an object to every worker, write it once into shared memory and send a reference.</p>
<p>That left a seed of an idea: if the objects live in shared memory, why not the instructions too?</p>
<p>From NNG GitHub discussions, I&rsquo;d seen people ask about shared memory as a way into the sub-10 µs messaging range, usually the preserve of high-frequency trading.
I researched this topic for a full three months before starting to write any code.
The sub-10 µs target fell early on, but my engineering curiosity led me to keep going until we&rsquo;d breached 1 µs.</p>
<p>Now R is no longer playing catch-up.
I&rsquo;m excited to share these same capabilities with the Python community.
For this reason, mizu is first and foremost a C library, with R and Python as equal bindings.
More may follow.</p>
<h2 id="look-outwards">Look outwards
</h2>
<p>If you read the commit history, you&rsquo;ll see that mizu was written with AI assistance.
Less visible is the three months of planning and research and design that came before any code was written. The implementation took another three months of deliberate engineering.</p>
<p>I&rsquo;m fortunate to work at a centre of open source software.
Without the shared discourse with this incredible and diverse group of people, mizu would not have been possible.
It may not even have been an idea.
I&rsquo;m especially grateful to Carlos Scheidegger, Andrew Holz and Hadley Wickham for their support and encouragement along the way.</p>
<p>As agents make it possible for one developer to do a great deal alone, I&rsquo;d encourage you to look outwards, to your fellow engineers, researchers and scientists.
I found my community in a pandemic lockdown.
You can find yours too.</p>
<h2 id="dive-in">Dive in
</h2>
<p>We welcome you to experiment with mizu.
It&rsquo;s early days, so expect rough edges: bug reports are the most valuable contribution you can make right now, and the more feedback we receive, the sooner we can reach a stable API.</p>
<ul>
<li><a href="https://github.com/shikokuchuo/libmizu" target="_blank" rel="noopener">libmizu</a></li>
<li><a href="https://github.com/shikokuchuo/mizu" target="_blank" rel="noopener">mizu</a></li>
<li><a href="https://github.com/shikokuchuo/pymizu" target="_blank" rel="noopener">pymizu</a></li>
</ul>
<p>We&rsquo;ll be working on plugging mizu into the ecosystem: Tidymodels and other Tidyverse packages, Shiny in both R and Python, and other places we&rsquo;ve probably not yet contemplated.
If you have ideas of where you&rsquo;d like to see this technology, open a discussion at the mizu or pymizu repo. We&rsquo;d love to hear from you!</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-11-05_mizu-0-1-0/featured.gif" length="889855" type="image/gif" />
    </item>
    <item>
      <title>Bring your own agent to Positron with the Positron MCP</title>
      <link>https://opensource.posit.co/blog/2026-11-04_positron-mcp/</link>
      <pubDate>Wed, 04 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-11-04_positron-mcp/</guid>
      <dc:creator>Jonathan McPherson</dc:creator><description><![CDATA[<p>We&rsquo;re very proud of <a href="https://assistant.posit.co" target="_blank" rel="noopener">Posit Assistant</a>, our own agentic harness for data science. It&rsquo;s designed to be easy to use and <a href="https://opensource.posit.co/blog/2026-10-29_ai-newsletter">cost efficient</a>, and it is deeply integrated into Positron and RStudio.</p>
<p>However, in the months since we introduced Posit Assistant, we heard from many of you who prefer to use your own coding agent harness inside Positron. This might be for the familiar interface, or to get access to models and tokens that your company is already paying for (for example, via Claude Enterprise subscriptions) that aren&rsquo;t available in Assistant.</p>
<p>While we obviously think our own harness is pretty great, at Posit our goal is to build open tools that help you avoid vendor lock-in. We want to make Positron the best IDE for doing data work no matter what the rest of your ecosystem looks like, and that means giving third party agents access to the Positron IDE surface, too. We are also exploring ways to bring external agent engines via official SDKs to the model picker, allowing you to run tools like Claude, Copilot, or Codex while retaining Posit Assistant&rsquo;s familiar interface and permissions.</p>
<p>Towards that end, <a href="https://opensource.posit.co/blog/2026-10-13_positron-2026-10-release">in the 2026.10 release</a> of Positron, we&rsquo;ve added an experimental <strong>Positron MCP</strong> (a <a href="https://modelcontextprotocol.io/" target="_blank" rel="noopener">Model Context Protocol</a> server). This MCP exposes tools inside Positron that agents can use to work alongside you in the IDE.</p>
<p>To turn it on, enable the new <a href="positron://settings/ai.mcp.enabled">MCP: Enabled</a> setting:</p>
<img src="https://opensource.posit.co/blog/2026-11-04_positron-mcp/mcp-setting.png" data-fig-align="center" data-fig-alt="The AI &gt; MCP: Enabled setting in Positron&#39;s Settings UI" />
<p>With this setting enabled, Positron exposes an MCP server any agent harness can connect to, using the standard MCP protocol. Both agents running in terminal CLIs and agents running in Positron extensions can connect.</p>
<img src="https://opensource.posit.co/blog/2026-11-04_positron-mcp/claude-mcp.png" data-fig-align="center" data-fig-alt="Positron with Claude Code in a side panel calling Positron MCP tools (list_sessions, execute_code, get_plot). The R console shows the ggplot2 code it ran, labeled &#39;Claude Code&#39;, and the Plots pane shows the resulting map of seal movements off the Pacific coast." />
<h2 id="why-a-positron-mcp">Why a Positron MCP?
</h2>
<p>You don&rsquo;t actually <em>need</em> the Positron MCP to use other agent harnesses in Positron, as extensions like Claude Code and Codex already work well in Positron without it.</p>
<p>Without the MCP, however, using a third-party agent harness feels a lot like it might if you were using it inside a plain terminal. It can&rsquo;t see any of your data or live session information or other Positron context. If it wants to execute R or Python code, it&rsquo;ll do it using shell commands and you won&rsquo;t see what&rsquo;s going on.</p>
<p>With the MCP turned on, the agent can work alongside you in Positron:</p>
<ul>
<li>You&rsquo;ll see everything the agent does. It can pick up work you started, and you can finish work that it starts.</li>
<li>It can see your loaded data and will answer questions using it as context.</li>
<li>It can see your R and Python consoles, and run code in them. When the MCP runs code, it will be annotated with the agent name in the Console pane.</li>
<li>It can see your plots, too, and can help you iterate on them until they look very nice.</li>
<li>You can ask it questions about errors or problems and it&rsquo;ll know what you&rsquo;re talking about without any copying or pasting.</li>
</ul>
<h2 id="what-harnesses-does-it-work-with">What harnesses does it work with?
</h2>
<p>The Positron MCP works with just about any agent that supports MCP. We&rsquo;ve tested it with:</p>
<ul>
<li>Claude Code (extension and CLI)</li>
<li>Codex (extension and CLI)</li>
<li>OpenCode</li>
<li>Kiro</li>
<li>Gemini</li>
<li>Copilot CLI</li>
</ul>
<p>and more.</p>
<h2 id="using-the-mcp">Using the MCP
</h2>
<h3 id="one-time-setup">One-time setup
</h3>
<p>Enable the MCP in Settings, as described above, then run the <em>Positron MCP: Add to Coding Agent</em> command to automatically set up your coding agent. If your coding agent isn&rsquo;t on the list of those Positron knows how to configure, you can still use your agent in Positron! Run the command <em>Positron MCP: Show Connected Agents</em>, then choose &ldquo;Copy Connection Details&rdquo; option to get the information your agent needs to connect.</p>
<div class="callout callout-note" role="note" aria-label="Note">
<div class="callout-header">
<span class="callout-title">Note</span>
</div>
<div class="callout-body">
<p>Positron&rsquo;s MCPs are started inside projects, and know which project they&rsquo;re working with. If you have multiple windows open with different projects, each has its own MCP, and if you have a window open with <em>no</em> project or folder open, it doesn&rsquo;t currently run an MCP.</p>
</div>
</div>
<h3 id="agent-and-mcp-connections">Agent and MCP connections
</h3>
<p>Once the MCP is configured, you don&rsquo;t need to do anything special to start it, stop it, or manage the agent connection; Positron takes care of this automatically. When asking the agent to perform a task, it&rsquo;s helpful to mention &ldquo;Positron&rdquo; or tell it explicitly to &ldquo;use the Positron MCP&rdquo;.</p>
<p>If you&rsquo;re not sure whether Positron and your agent are on speaking terms, you can ask your agent, or enable the <a href="positron://settings/ai.mcp.statusBar">MCP Status Bar</a> setting:</p>
<img src="https://opensource.posit.co/blog/2026-11-04_positron-mcp/status-bar-option.png" data-fig-align="center" data-fig-alt="The AI &gt; MCP: Status Bar setting in Positron&#39;s Settings UI" />
<p>With this setting enabled, any coding agents connected will get an icon in the Status Bar. Hover over it to see them:</p>
<img src="https://opensource.posit.co/blog/2026-11-04_positron-mcp/mcp-status-bar.png" data-fig-align="center" data-fig-alt="The Positron status bar with Claude Code connected, showing a hover tooltip giving the name, PID, and version of the agent." />
<h2 id="security">Security
</h2>
<p>It&rsquo;s important to keep in mind that the MCP can be used to ask Positron to execute arbitrary code in your R and Python consoles &ndash; and that code will run with your user credentials. Exposing the Positron MCP to an agent is therefore equivalent to giving it unrestricted shell access.</p>
<p>Enabling the MCP doesn&rsquo;t mean you&rsquo;re doing away with security, though; it just means that you&rsquo;re <em>delegating</em> trust decisions to your agent harness. Most harnesses will prompt for confirmation and trust when running potentially dangerous operations, but not all. Make sure you understand your agent&rsquo;s trust model and are comfortable with its permissions and execution policies before connecting it to Positron.</p>
<h2 id="feedback">Feedback
</h2>
<p>How&rsquo;s your experience using the Positron MCP? Was it difficult to configure your agent? Missing any capabilities? We&rsquo;d love to hear from you on our <a href="https://github.com/posit-dev/positron/discussions" target="_blank" rel="noopener">discussion forum</a>!</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-11-04_positron-mcp/positron-and-agents.png" length="452291" type="image/png" />
    </item>
    <item>
      <title>posit::glimpse() Newsletter – November 2026</title>
      <link>https://opensource.posit.co/blog/2026-11-04_glimpse-2026-11/</link>
      <pubDate>Wed, 04 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-11-04_glimpse-2026-11/</guid>
      <dc:creator>Isabella Velásquez</dc:creator><description><![CDATA[<blockquote>
<p>Welcome to our newsletter, posit::glimpse()!</p>
<p>If you&rsquo;re currently reading this on our blog, consider subscribing to Product Updates - Open Source on our <a href="https://posit.co/about/subscription-management" target="_blank" rel="noopener">subscription page</a> to receive this newsletter directly in your inbox.</p>
<p>Prefer an RSS reader? posit::glimpse() now has its own RSS feed! Find it on our <a href="https://opensource.posit.co/subscribe/" target="_blank" rel="noopener">subscribe page</a>.</p>
</blockquote>
<p>Every month, we round up some of the most important open-source news for Posit&rsquo;s community! We hope that you enjoy this newsletter and maybe even share it with a friend.</p>
<p>The table of contents on the right can help you navigate through all the updates. As you scroll, it will open up to show you subcategories →</p>
<h2 id="key-product-updates-and-new-releases">Key product updates and new releases
</h2>
<h3 id="quarto-111">Quarto 1.11
</h3>
<p><a href="https://quarto.org/" target="_blank" rel="noopener">Quarto</a> 1.11 is out, released early to deliver a Deno security update that protects HTTPS requests made by Quarto commands, including publishing and downloading extensions. Quarto 1.10.20, released just before, is the final patch in the 1.10 series, so all users should upgrade to 1.11. Alongside the security update, this release brings broad accessibility improvements to HTML documents, websites, books, and presentations (skip-to-content links, a more visible keyboard focus ring, and preserved alternative text for diagrams and Word figures), lists of figures and tables for Typst documents, Julia engine improvements, and fixes to shared metadata. You can also adopt the Quarto 2 definition list syntax now, ahead of the next major version.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-11-02_quarto-1-11/" target="_blank" rel="noopener">Quarto 1.11</a> blog post.</li>
</ul>
<h3 id="great-tables-v100-and-v110">Great Tables v1.0.0 and v1.1.0
</h3>
<p><a href="https://posit-dev.github.io/great-tables/" target="_blank" rel="noopener">Great Tables</a> reaches 1.x with v1.0.0 and v1.1.0. The stable core API gains new formatters, value-based conditional styling, multi-column stubs, decimal alignment, and diverging, row-wise, and custom <code>data_color()</code> scales with APCA-based text contrast. HTML output is now accessible by default.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/" target="_blank" rel="noopener">Great Tables v1.0.0 and v1.1.0: new formatters, conditional styling, multi-column stubs, and richer color scales</a> blog post.</li>
</ul>
<h3 id="positron">Positron
</h3>
<p><a href="https://positron.posit.co/" target="_blank" rel="noopener">Positron</a> is a next-generation data science IDE for R and Python. The 2026.10 release brings Posit Assistant that can drive Positron itself, a built-in MCP server for your own coding agents, Data Connections on by default, faster language features for Quarto, and smoother interpreter and project setup. Posit Assistant can now tap into Positron&rsquo;s packages, interpreters, consoles, and publishing tools, so its answers and actions match your actual environment.</p>
<p><div class="not-prose"><figure>
    <img class="h-auto max-w-full rounded-lg"
      src="https://opensource.posit.co/blog/2026-11-04_glimpse-2026-11/images/positron-assistant-data-explorer.png"
      alt="Positron window with Posit Assistant in the sidebar responding to the request &ldquo;OK, open the Pokemon Excel file so I can see it.&rdquo; Positron has opened pokemon.xlsx in the Data Explorer, showing column summaries with distribution sparklines and a grid of 949 rows and 22 columns." 
      loading="lazy"
    >
  </figure></div>
</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-10-13_positron-2026-10-release/" target="_blank" rel="noopener">Positron October Release Highlights</a> and <a href="https://opensource.posit.co/blog/2026-10-21_assistant-drives-positron/" target="_blank" rel="noopener">A deeper Positron integration for Posit Assistant</a> blog posts.</li>
</ul>
<p>Have a question, a tip, or something cool you&rsquo;ve built? Come say hi on the <a href="https://www.reddit.com/r/PositronIDE/" target="_blank" rel="noopener">Positron subreddit</a>, where the community is up and running!</p>
<h3 id="rig-0110">rig 0.11.0
</h3>
<p><a href="https://rig.r-lib.org/" target="_blank" rel="noopener">rig</a> is a command-line tool for installing and managing multiple R versions. rig 0.11.0 is a major release, covered in a three-part blog series.</p>
<h4 id="rig-0110-part-one-r-installations">rig 0.11.0 part one: R installations
</h4>
<p>rig 0.11.0 adds a user mode for installing R into your home directory without admin rights on macOS, Windows, and Linux, plus portable Linux builds, Rtools management, and automatic RStudio and Positron configuration. Repository management is improved too: P3M is now the default on most platforms, and new commands add custom repos and check repo status. rig also has a new website at <a href="https://rig.r-lib.org/" target="_blank" rel="noopener">rig.r-lib.org</a>.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-10-09_rig-0-11-0-part-one/" target="_blank" rel="noopener">rig 0.11.0 part one: R installations</a> blog post.</li>
</ul>
<h4 id="rig-0110-part-two-r-packages">rig 0.11.0 part two: R packages
</h4>
<p>Part two introduces <code>rig pkg</code>, a pak-like command-line tool for installing packages from CRAN, GitHub, git, URLs, and local paths with version constraints, a dependency solver, parallel downloads, and caching. It also adds <code>rig pkg doctor</code> for checking library health, commands for package info, dependency trees, and CRAN search, named libraries, and automatic system requirements on major Linux distributions.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-10-12_rig-0-11-0-part-two/" target="_blank" rel="noopener">rig 0.11.0 part two: R packages</a> blog post.</li>
</ul>
<h4 id="rig-0110-part-three-r-projects">rig 0.11.0 part three: R projects
</h4>
<p>The final part introduces <code>rig proj</code>, a project manager for R in the style of Python&rsquo;s uv and Rust&rsquo;s cargo. It uses an <code>rproj.toml</code> manifest and universal <code>rproj.lock</code> files that cover multiple platforms, syncs to fast project virtual environments that share package files, and runs code with <code>rig run</code>, including inline-dependency scripts. Projects can be imported from DESCRIPTION files or renv lock files.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-10-15_rig-0-11-0-part-three/" target="_blank" rel="noopener">rig 0.11.0 part three: R projects</a> blog post.</li>
</ul>
<h3 id="shiny-for-python-19">Shiny for Python 1.9
</h3>
<p><a href="https://shiny.posit.co/py/" target="_blank" rel="noopener">Shiny for Python</a> 1.9 removes the process-wide lock on reactive updates, so async effects and outputs now run concurrently within and across sessions. The release also adds <code>session.run_once_when_idle()</code>, immediate UI updates from background tasks, accessible sidebar landmarks via <code>ui.sidebar(role=)</code>, Express download buttons with icons, and 2–3.5× faster data frame serialization. It includes a few breaking changes, notably that <code>ui.sidebar()</code> now renders a <code>&lt;div&gt;</code> rather than an <code>&lt;aside&gt;</code>.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-10-29_shiny-python-1-9/" target="_blank" rel="noopener">Shiny for Python 1.9</a> and <a href="https://opensource.posit.co/blog/2026-10-29_shiny-python-concurrent-async/" target="_blank" rel="noopener">Concurrent Async</a> blog posts.</li>
</ul>
<p>Looking for a little inspiration for your next app? Take a stroll through the <a href="https://posit-shiny-in-the-public-sector.share.connect.posit.cloud/" target="_blank" rel="noopener">Shiny in the Public Sector gallery</a>, which is filled with real-world examples of how teams are using Shiny to share data and serve their communities. It&rsquo;s a great place to spark ideas, and maybe borrow a trick or two!</p>
<h2 id="ai-updates">AI updates
</h2>
<p>Catch up on the latest from Posit&rsquo;s AI newsletter:</p>
<ul>
<li><a href="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/" target="_blank" rel="noopener">Correct, transparent, and reproducible data agents</a>: An annotated walkthrough of our posit::conf(2026) keynote on building trustworthy AI tools for data analysis, including Posit Assistant and the introduction of commons.</li>
<li><a href="https://opensource.posit.co/blog/2026-10-23_ai-newsletter/" target="_blank" rel="noopener">Unfortunately, you need to care about token caching</a>: A look at the anatomy of an LLM &ldquo;conversation&rdquo; and how understanding cache hits and misses can help you keep costs down.</li>
<li><a href="https://opensource.posit.co/blog/2026-10-29_ai-newsletter/" target="_blank" rel="noopener">Posit Assistant is cost-efficient</a>: How we measured Posit Assistant&rsquo;s token usage and why it makes better use of your token budget than leading coding agents.</li>
</ul>
<p>Want to see commons in action? Sara and Simon recently walked through a real workflow in the <a href="https://youtu.be/4rUzyOIvAog" target="_blank" rel="noopener">commons workflow demo</a> on YouTube.</p>
<h2 id="learning-resources">Learning resources
</h2>
<h3 id="recent-data-science-lab-episodes">Recent Data Science Lab episodes
</h3>
<p>The <a href="https://pos.it/dslab" target="_blank" rel="noopener">Data Science Lab</a> is a fun, chill session where practitioners share their screens and live code through real data science workflows. Missed a live session? Catch up on these recent episodes:</p>
<ul>
<li><a href="https://youtu.be/rthgRFzx30g" target="_blank" rel="noopener">How do you validate data in R using Pointblank?</a> with Rich Iannone</li>
<li><a href="https://youtu.be/eYhSbSsBHTs" target="_blank" rel="noopener">How do you create custom geoms in ggplot2?</a> with Gina Reynolds</li>
<li><a href="https://youtu.be/ONAl7iD9h68" target="_blank" rel="noopener">How do you create custom Revealjs themes in Quarto?</a> with Emil Hvitfeldt</li>
</ul>
<h3 id="new-free-posit-academy-courses">New free Posit Academy courses
</h3>
<p>Looking to learn something new? Check out these free courses from Posit Academy, now available on our resources page:</p>















  
  
  
  
  

  
  
  
  
  
    
  

  
  
  
  
  
    
  

  
  
  
  
  
    
  

  
  
  
  
  
    
  

  
  
  
  
  



<div class="grid grid-cols-2 gap-6 xl:gap-8 xl:gap-8 mb-6">
  
    <div>
      











  
  
  
  
  
















  
  
    
  












  
  





  
    
  











  
  










  
  
    
  
    
  






















  
    
  






























<div id="item-7609856954675784816d30d194cca788" class="@container h-full">
  <a href="https://opensource.posit.co/resources/courses/introduction-to-quarto/" title="Introduction to Quarto"
     class="card-link flex flex-col @venti:flex-row rounded-xl  h-full">

      



      
      

    
    
    <div class="w-full @venti:w-1/2 @venti:self-center aspect-[40/21] flex-shrink-0 flex items-center justify-center overflow-hidden rounded-xl">
      
        









  
  
    <img src="https://opensource.posit.co/resources/courses/introduction-to-quarto/image.svg" alt="Introduction to Quarto" class="mx-auto h-full w-full object-cover" loading="lazy">
  
  


      
    </div>

    
    <div class="hidden gap-y-2 @nip:flex @venti:w-1/2 flex-auto flex-col p-3 @venti:pl-5 text-gray-700 mt-2">

      
      

      
      
      <div class="hidden @short:flex flex-wrap gap-x-2 items-center text-xs font-medium text-gray-500">
        
          <span>Oct 16, 2026</span>
          <span>|</span>
        
        
        
          <span>30 min</span>
          
        
        
        
      </div>
      

      
      <h3 class="m-0! mt-3 font-semibold text-sm @grande:text-lg @venti:text-xl @trenta:text-2xl line-clamp-2 text-sm @tall:text-base @grande:text-lg @venti:text-xl @trenta:text-2xl text-gray-600">Introduction to Quarto</h3>
      

      
        <p class="m-0! text-xs @short:text-sm @grande:text-md @venti:text-md @trenta:text-lg line-clamp-2 short@line-clamp-3 @tall:line-clamp-3 font-medium text-gray-600">Learn what Quarto is and how to write your first Quarto documents: markdown text, YAML options, output formats, and R or Python code cells, all practiced in an in-browser Quarto simulator</p>
      

      

      <div class="grow"></div>
      
        
          <div class="hidden @grande:flex flex-wrap gap-x-1 gap-y-4 py-2 overflow-hidden h-10 items-end">
            
              <span class="pill">
                Positron
              </span>
            
              <span class="pill">
                Quarto
              </span>
            
          </div>
        
      
    </div>
  </a>
</div>


    </div>
  
    <div>
      











  
  
  
  
  
















  
  
    
  





  








  
  





  
    
  











  
  










  
  
    
  






















  
    
  






























<div id="item-adf36cfea0982fd15ff2ff6597f1a15a" class="@container h-full">
  <a href="https://opensource.posit.co/resources/courses/introduction-to-positron/" title="Introduction to Positron"
     class="card-link flex flex-col @venti:flex-row rounded-xl  h-full">

      



      
      

    
    
    <div class="w-full @venti:w-1/2 @venti:self-center aspect-[40/21] flex-shrink-0 flex items-center justify-center overflow-hidden rounded-xl">
      
        









  
  
    <img src="https://opensource.posit.co/resources/courses/introduction-to-positron/image.svg" alt="Introduction to Positron" class="mx-auto h-full w-full object-cover" loading="lazy">
  
  


      
    </div>

    
    <div class="hidden gap-y-2 @nip:flex @venti:w-1/2 flex-auto flex-col p-3 @venti:pl-5 text-gray-700 mt-2">

      
      

      
      
      <div class="hidden @short:flex flex-wrap gap-x-2 items-center text-xs font-medium text-gray-500">
        
          <span>Jul 31, 2026</span>
          <span>|</span>
        
        
        
          <span>3 courses</span>
          
        
        
        
      </div>
      

      
      <h3 class="m-0! mt-3 font-semibold text-sm @grande:text-lg @venti:text-xl @trenta:text-2xl line-clamp-2 text-sm @tall:text-base @grande:text-lg @venti:text-xl @trenta:text-2xl text-gray-600">Introduction to Positron</h3>
      

      
        <p class="m-0! text-xs @short:text-sm @grande:text-md @venti:text-md @trenta:text-lg line-clamp-2 short@line-clamp-3 @tall:line-clamp-3 font-medium text-gray-600">A collection of courses to get started using Positron!</p>
      

      

      <div class="grow"></div>
      
        
          <div class="hidden @grande:flex flex-wrap gap-x-1 gap-y-4 py-2 overflow-hidden h-10 items-end">
            
              <span class="pill">
                Positron
              </span>
            
          </div>
        
      
    </div>
  </a>
</div>


    </div>
  
    <div>
      











  
  
  
  
  
















  
  
    
  












  
  





  
    
  











  
  










  
  
    
  
    
  






















  
    
  






























<div id="item-9a8ce16a9a5d811a12824be953ea2587" class="@container h-full">
  <a href="https://opensource.posit.co/resources/courses/introduction-to-shiny-python-focus/" title="Introduction to Shiny - Python Focus"
     class="card-link flex flex-col @venti:flex-row rounded-xl  h-full">

      



      
      

    
    
    <div class="w-full @venti:w-1/2 @venti:self-center aspect-[40/21] flex-shrink-0 flex items-center justify-center overflow-hidden rounded-xl">
      
        









  
  
    <img src="https://opensource.posit.co/resources/courses/introduction-to-shiny-python-focus/image.svg" alt="Introduction to Shiny - Python Focus" class="mx-auto h-full w-full object-cover" loading="lazy">
  
  


      
    </div>

    
    <div class="hidden gap-y-2 @nip:flex @venti:w-1/2 flex-auto flex-col p-3 @venti:pl-5 text-gray-700 mt-2">

      
      

      
      
      <div class="hidden @short:flex flex-wrap gap-x-2 items-center text-xs font-medium text-gray-500">
        
          <span>Mar 18, 2026</span>
          <span>|</span>
        
        
        
          <span>20 min</span>
          
        
        
        
      </div>
      

      
      <h3 class="m-0! mt-3 font-semibold text-sm @grande:text-lg @venti:text-xl @trenta:text-2xl line-clamp-2 text-sm @tall:text-base @grande:text-lg @venti:text-xl @trenta:text-2xl text-gray-600">Introduction to Shiny - Python Focus</h3>
      

      
        <p class="m-0! text-xs @short:text-sm @grande:text-md @venti:text-md @trenta:text-lg line-clamp-2 short@line-clamp-3 @tall:line-clamp-3 font-medium text-gray-600">An introduction to building interactive web applications with Shiny in Python. Covers what Shiny is, how apps are structured, and the basics of inputs, outputs, and reactivity</p>
      

      

      <div class="grow"></div>
      
        
          <div class="hidden @grande:flex flex-wrap gap-x-1 gap-y-4 py-2 overflow-hidden h-10 items-end">
            
              <span class="pill">
                Shiny for Python
              </span>
            
              <span class="pill">
                Shiny
              </span>
            
          </div>
        
      
    </div>
  </a>
</div>


    </div>
  
    <div>
      











  
  
  
  
  
















  
  
    
  












  
  





  
    
  











  
  










  
  
    
  






















  
    
  






























<div id="item-a716a0a49c43e6f14c5a0f91a88be32b" class="@container h-full">
  <a href="https://opensource.posit.co/resources/courses/getting-started-with-posit-ai-in-positron/" title="Getting Started with Posit AI Pass in Positron"
     class="card-link flex flex-col @venti:flex-row rounded-xl  h-full">

      



      
      

    
    
    <div class="w-full @venti:w-1/2 @venti:self-center aspect-[40/21] flex-shrink-0 flex items-center justify-center overflow-hidden rounded-xl">
      
        









  
  
    <img src="https://opensource.posit.co/resources/courses/getting-started-with-posit-ai-in-positron/image.svg" alt="Getting Started with Posit AI Pass in Positron" class="mx-auto h-full w-full object-cover" loading="lazy">
  
  


      
    </div>

    
    <div class="hidden gap-y-2 @nip:flex @venti:w-1/2 flex-auto flex-col p-3 @venti:pl-5 text-gray-700 mt-2">

      
      

      
      
      <div class="hidden @short:flex flex-wrap gap-x-2 items-center text-xs font-medium text-gray-500">
        
          <span>Sep 23, 2026</span>
          <span>|</span>
        
        
        
          <span>26 min</span>
          
        
        
        
      </div>
      

      
      <h3 class="m-0! mt-3 font-semibold text-sm @grande:text-lg @venti:text-xl @trenta:text-2xl line-clamp-2 text-sm @tall:text-base @grande:text-lg @venti:text-xl @trenta:text-2xl text-gray-600">Getting Started with Posit AI Pass in Positron</h3>
      

      
        <p class="m-0! text-xs @short:text-sm @grande:text-md @venti:text-md @trenta:text-lg line-clamp-2 short@line-clamp-3 @tall:line-clamp-3 font-medium text-gray-600">Set up Posit AI Pass in Positron and put Posit Assistant and Next Edit Suggestions to work in your Python and R projects</p>
      

      

      <div class="grow"></div>
      
        
          <div class="hidden @grande:flex flex-wrap gap-x-1 gap-y-4 py-2 overflow-hidden h-10 items-end">
            
              <span class="pill">
                Positron
              </span>
            
          </div>
        
      
    </div>
  </a>
</div>


    </div>
  
</div>


<p>Browse the full list on the <a href="https://opensource.posit.co/resources/courses/" target="_blank" rel="noopener">courses page</a>.</p>
<h3 id="explore-our-new-books-page">Explore our new books page
</h3>
<p>Our open source website now has a <a href="https://opensource.posit.co/resources/books/" target="_blank" rel="noopener">books page</a>! It brings together books on R, Python, Shiny, modeling, and more, all in one place. Here are a few to get you started:</p>















  
  
  
  
  

  
  
  
  
  
    
  

  
  
  
  
  
    
  

  
  
  
  
  
    
  

  
  
  
  
  
    
  

  
  
  
  
  



<div class="grid grid-cols-4 gap-6 xl:gap-8 xl:gap-8 mb-6">
  
    <div>
      











  
  
  
  
  
















  
  
    
  












  
  





  
  
    
  







  





  
  






  





  
  
    
  
    
  
    
  
    
  
    
  
    
  


  

  


















































<div id="item-af85267f654d76ce1c14701557ef121d" class="@container h-full">
  <a href="https://opensource.posit.co/resources/books/r-for-data-science/" title="R for Data Science"
     class="card-link flex flex-col @venti:flex-row rounded-xl  h-full">

      



      
      

    
    
    <div class="w-full @venti:w-1/2 @venti:self-center aspect-[40/21] flex-shrink-0 flex items-center justify-center overflow-hidden rounded-xl" style="background-color: color-mix(in srgb, #929747 25%, white 75%);">
      
        









  
  
    
    

    

    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @max-tall:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/books/r-for-data-science/cover_hu_d98b63478aedafa9.webp 1x,
                  /resources/books/r-for-data-science/cover_hu_73a353b11fecbd49.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/books/r-for-data-science/cover_hu_e54c46be9eb16ab8.jpg"
          srcset="/resources/books/r-for-data-science/cover_hu_e54c46be9eb16ab8.jpg 1x,
                  /resources/books/r-for-data-science/cover_hu_7d6a02258c89dd75.jpg 2x"
          alt="R for Data Science"
          class="mx-auto h-full object-contain py-[6%] book-cover"
          loading="lazy" />
      </picture>
    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @tall:@max-grande:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/books/r-for-data-science/cover_hu_73a353b11fecbd49.webp 1x,
                  /resources/books/r-for-data-science/cover_hu_b830ffecfbcdc2b0.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/books/r-for-data-science/cover_hu_7d6a02258c89dd75.jpg"
          srcset="/resources/books/r-for-data-science/cover_hu_7d6a02258c89dd75.jpg 1x,
                  /resources/books/r-for-data-science/cover_hu_3e7d50c2900290ad.jpg 2x"
          alt="R for Data Science"
          class="mx-auto h-full object-contain py-[6%] book-cover"
          loading="lazy" />
      </picture>
    
      
      

      
      
      
        
      

      
      
      
      

      <picture class="hidden @grande:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/books/r-for-data-science/cover_hu_b830ffecfbcdc2b0.webp 1x,
                  /resources/books/r-for-data-science/cover_hu_2148b924e476a941.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/books/r-for-data-science/cover_hu_3e7d50c2900290ad.jpg"
          srcset="/resources/books/r-for-data-science/cover_hu_3e7d50c2900290ad.jpg 1x,
                  /resources/books/r-for-data-science/cover_hu_aababf9db56afbd9.jpg 2x"
          alt="R for Data Science"
          class="mx-auto h-full object-contain py-[6%] book-cover"
          loading="lazy" />
      </picture>
    
  
  


      
    </div>

    
    <div class="hidden gap-y-2 @nip:flex @venti:w-1/2 flex-auto flex-col p-3 @venti:pl-5 text-gray-700 mt-2">

      
      

      
      
      <div class="hidden @short:flex flex-wrap gap-x-2 items-center text-xs font-medium text-gray-500">
        
          <span>June 2023</span>
          
        
        
        
        
        
      </div>
      

      
      <h3 class="m-0! mt-3 font-semibold text-sm @grande:text-lg @venti:text-xl @trenta:text-2xl line-clamp-2 text-sm @tall:text-base @grande:text-lg @venti:text-xl @trenta:text-2xl text-gray-600">R for Data Science</h3>
      

      
        <p class="m-0! text-xs @short:text-sm @grande:text-md @venti:text-md @trenta:text-lg line-clamp-2 short@line-clamp-3 @tall:line-clamp-3 font-medium text-gray-600">Import, Tidy, Transform, Visualize, and Model Data</p>
      

      
        <div class="text-sm @grande:text-md">
          <div class="mt-2 flex flex-row gap-x-4 items-center">

  <div class="flex flex-row flex-shrink-0"><img
          src="https://opensource.posit.co/people/hadley-wickham/profile.jpg"
          alt="Hadley Wickham"
          class="my-0! w-6 h-6 rounded-full object-cover ring-2 ring-white "
          style="z-index: 10;"
        ><img
          src="https://opensource.posit.co/people/mine-%C3%A7etinkaya-rundel/profile.jpg"
          alt="Mine Çetinkaya-Rundel"
          class="my-0! w-6 h-6 rounded-full object-cover ring-2 ring-white -ml-2"
          style="z-index: 9;"
        ><img
          src="https://opensource.posit.co/images/person-placeholder.svg"
          alt="Garrett Grolemund"
          class="my-0! w-6 h-6 rounded-full object-cover ring-2 ring-white -ml-2"
          style="z-index: 8;"
        ></div><div class="line-clamp-2 font-medium text-gray-600">Hadley Wickham,&nbsp;Mine Çetinkaya-Rundel,&nbsp;Garrett Grolemund</div></div>
        </div>
      

      <div class="grow"></div>
      
        
          <div class="hidden @grande:flex flex-wrap gap-x-1 gap-y-4 py-2 overflow-hidden h-10 items-end">
            
              <span class="pill">
                tidyverse
              </span>
            
              <span class="pill">
                dplyr
              </span>
            
              <span class="pill">
                ggplot2
              </span>
            
              <span class="pill">
                tidyr
              </span>
            
              <span class="pill">
                readr
              </span>
            
              <span class="pill">
                Quarto
              </span>
            
              <span class="pill">
                Data Wrangling
              </span>
            
              <span class="pill">
                Visualization
              </span>
            
          </div>
        
      
    </div>
  </a>
</div>


    </div>
  
    <div>
      











  
  
  
  
  
















  
  
    
  












  
  





  
  
    
  







  





  
  






  





  
  


  


















































<div id="item-67525c48b5cbb2f3f5be94df703e7d7e" class="@container h-full">
  <a href="https://opensource.posit.co/resources/books/python-for-data-analysis/" title="Python for Data Analysis"
     class="card-link flex flex-col @venti:flex-row rounded-xl  h-full">

      



      
      

    
    
    <div class="w-full @venti:w-1/2 @venti:self-center aspect-[40/21] flex-shrink-0 flex items-center justify-center overflow-hidden rounded-xl" style="background-color: color-mix(in srgb, #776342 25%, white 75%);">
      
        









  
  
    
    

    

    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @max-tall:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/books/python-for-data-analysis/cover_hu_e6a102fe44583152.webp 1x,
                  /resources/books/python-for-data-analysis/cover_hu_6031106aad584cd5.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/books/python-for-data-analysis/cover_hu_d17ba488224df1f8.jpg"
          srcset="/resources/books/python-for-data-analysis/cover_hu_d17ba488224df1f8.jpg 1x,
                  /resources/books/python-for-data-analysis/cover_hu_90f0c2afe9197804.jpg 2x"
          alt="Python for Data Analysis"
          class="mx-auto h-full object-contain py-[6%] book-cover"
          loading="lazy" />
      </picture>
    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @tall:@max-grande:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/books/python-for-data-analysis/cover_hu_6031106aad584cd5.webp 1x,
                  /resources/books/python-for-data-analysis/cover_hu_75d5f95a55813323.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/books/python-for-data-analysis/cover_hu_90f0c2afe9197804.jpg"
          srcset="/resources/books/python-for-data-analysis/cover_hu_90f0c2afe9197804.jpg 1x,
                  /resources/books/python-for-data-analysis/cover_hu_7d469a3e1c61d4ed.jpg 2x"
          alt="Python for Data Analysis"
          class="mx-auto h-full object-contain py-[6%] book-cover"
          loading="lazy" />
      </picture>
    
      
      

      
      
      
        
      

      
      
      
      

      <picture class="hidden @grande:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/books/python-for-data-analysis/cover_hu_75d5f95a55813323.webp 1x,
                  /resources/books/python-for-data-analysis/cover_hu_32e4dfe9a87340bd.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/books/python-for-data-analysis/cover_hu_7d469a3e1c61d4ed.jpg"
          srcset="/resources/books/python-for-data-analysis/cover_hu_7d469a3e1c61d4ed.jpg 1x,
                  /resources/books/python-for-data-analysis/cover_hu_ddcd88b0b074d5df.jpg 2x"
          alt="Python for Data Analysis"
          class="mx-auto h-full object-contain py-[6%] book-cover"
          loading="lazy" />
      </picture>
    
  
  


      
    </div>

    
    <div class="hidden gap-y-2 @nip:flex @venti:w-1/2 flex-auto flex-col p-3 @venti:pl-5 text-gray-700 mt-2">

      
      

      
      
      <div class="hidden @short:flex flex-wrap gap-x-2 items-center text-xs font-medium text-gray-500">
        
          <span>August 2022</span>
          
        
        
        
        
        
      </div>
      

      
      <h3 class="m-0! mt-3 font-semibold text-sm @grande:text-lg @venti:text-xl @trenta:text-2xl line-clamp-2 text-sm @tall:text-base @grande:text-lg @venti:text-xl @trenta:text-2xl text-gray-600">Python for Data Analysis</h3>
      

      
        <p class="m-0! text-xs @short:text-sm @grande:text-md @venti:text-md @trenta:text-lg line-clamp-2 short@line-clamp-3 @tall:line-clamp-3 font-medium text-gray-600">Data Wrangling with pandas, NumPy, and Jupyter</p>
      

      
        <div class="text-sm @grande:text-md">
          <div class="mt-2 flex flex-row gap-x-4 items-center">

  <div class="flex flex-row flex-shrink-0"><img
          src="https://opensource.posit.co/images/person-placeholder.svg"
          alt="Wes McKinney"
          class="my-0! w-6 h-6 rounded-full object-cover ring-2 ring-white "
          style="z-index: 10;"
        ></div><div class="line-clamp-2 font-medium text-gray-600">Wes McKinney</div></div>
        </div>
      

      <div class="grow"></div>
      
        
          <div class="hidden @grande:flex flex-wrap gap-x-1 gap-y-4 py-2 overflow-hidden h-10 items-end">
            
              <span class="pill">
                Data Wrangling
              </span>
            
          </div>
        
      
    </div>
  </a>
</div>


    </div>
  
    <div>
      











  
  
  
  
  
















  
  
    
  












  
  





  
  
    
  







  





  
  






  





  
  
    
  


  


















































<div id="item-62bb33a8b91dab9172da0bcdeff97fd5" class="@container h-full">
  <a href="https://opensource.posit.co/resources/books/mastering-shiny/" title="Mastering Shiny"
     class="card-link flex flex-col @venti:flex-row rounded-xl  h-full">

      



      
      

    
    
    <div class="w-full @venti:w-1/2 @venti:self-center aspect-[40/21] flex-shrink-0 flex items-center justify-center overflow-hidden rounded-xl" style="background-color: color-mix(in srgb, #476D74 25%, white 75%);">
      
        









  
  
    
    

    

    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @max-tall:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/books/mastering-shiny/cover_hu_668f7eec9e81d5e5.webp 1x,
                  /resources/books/mastering-shiny/cover_hu_ffbffdee9453158a.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/books/mastering-shiny/cover_hu_1aab624c519350c5.jpg"
          srcset="/resources/books/mastering-shiny/cover_hu_1aab624c519350c5.jpg 1x,
                  /resources/books/mastering-shiny/cover_hu_133479afee483ad4.jpg 2x"
          alt="Mastering Shiny"
          class="mx-auto h-full object-contain py-[6%] book-cover"
          loading="lazy" />
      </picture>
    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @tall:@max-grande:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/books/mastering-shiny/cover_hu_ffbffdee9453158a.webp 1x,
                  /resources/books/mastering-shiny/cover_hu_94cd77a590183072.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/books/mastering-shiny/cover_hu_133479afee483ad4.jpg"
          srcset="/resources/books/mastering-shiny/cover_hu_133479afee483ad4.jpg 1x,
                  /resources/books/mastering-shiny/cover_hu_992d98d506947be9.jpg 2x"
          alt="Mastering Shiny"
          class="mx-auto h-full object-contain py-[6%] book-cover"
          loading="lazy" />
      </picture>
    
      
      

      
      
      
        
      

      
      
      
      

      <picture class="hidden @grande:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/books/mastering-shiny/cover_hu_94cd77a590183072.webp 1x,
                  /resources/books/mastering-shiny/cover_hu_f33d2ce98fef70bf.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/books/mastering-shiny/cover_hu_992d98d506947be9.jpg"
          srcset="/resources/books/mastering-shiny/cover_hu_992d98d506947be9.jpg 1x,
                  /resources/books/mastering-shiny/cover_hu_a9d31e479d4513b0.jpg 2x"
          alt="Mastering Shiny"
          class="mx-auto h-full object-contain py-[6%] book-cover"
          loading="lazy" />
      </picture>
    
  
  


      
    </div>

    
    <div class="hidden gap-y-2 @nip:flex @venti:w-1/2 flex-auto flex-col p-3 @venti:pl-5 text-gray-700 mt-2">

      
      

      
      
      <div class="hidden @short:flex flex-wrap gap-x-2 items-center text-xs font-medium text-gray-500">
        
          <span>April 2021</span>
          
        
        
        
        
        
      </div>
      

      
      <h3 class="m-0! mt-3 font-semibold text-sm @grande:text-lg @venti:text-xl @trenta:text-2xl line-clamp-2 text-sm @tall:text-base @grande:text-lg @venti:text-xl @trenta:text-2xl text-gray-600">Mastering Shiny</h3>
      

      
        <p class="m-0! text-xs @short:text-sm @grande:text-md @venti:text-md @trenta:text-lg line-clamp-2 short@line-clamp-3 @tall:line-clamp-3 font-medium text-gray-600">Build Interactive Apps, Reports, and Dashboards Powered by R</p>
      

      
        <div class="text-sm @grande:text-md">
          <div class="mt-2 flex flex-row gap-x-4 items-center">

  <div class="flex flex-row flex-shrink-0"><img
          src="https://opensource.posit.co/people/hadley-wickham/profile.jpg"
          alt="Hadley Wickham"
          class="my-0! w-6 h-6 rounded-full object-cover ring-2 ring-white "
          style="z-index: 10;"
        ></div><div class="line-clamp-2 font-medium text-gray-600">Hadley Wickham</div></div>
        </div>
      

      <div class="grow"></div>
      
        
          <div class="hidden @grande:flex flex-wrap gap-x-1 gap-y-4 py-2 overflow-hidden h-10 items-end">
            
              <span class="pill">
                Shiny
              </span>
            
              <span class="pill">
                Interactive Apps
              </span>
            
          </div>
        
      
    </div>
  </a>
</div>


    </div>
  
    <div>
      











  
  
  
  
  
















  
  
    
  












  
  





  
  
    
  







  





  
  






  





  
  
    
  
    
  
    
  
    
  
    
  
    
  
    
  


  


















































<div id="item-82f304d0f0b38b90dde329272b0a8d87" class="@container h-full">
  <a href="https://opensource.posit.co/resources/books/tidy-modeling-with-r/" title="Tidy Modeling with R"
     class="card-link flex flex-col @venti:flex-row rounded-xl  h-full">

      



      
      

    
    
    <div class="w-full @venti:w-1/2 @venti:self-center aspect-[40/21] flex-shrink-0 flex items-center justify-center overflow-hidden rounded-xl" style="background-color: color-mix(in srgb, #A16B2D 25%, white 75%);">
      
        









  
  
    
    

    

    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @max-tall:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/books/tidy-modeling-with-r/cover_hu_e93a1cc5d3b5a9d.webp 1x,
                  /resources/books/tidy-modeling-with-r/cover_hu_a3c22580d7e8e881.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/books/tidy-modeling-with-r/cover_hu_d315444941b9cb7f.jpg"
          srcset="/resources/books/tidy-modeling-with-r/cover_hu_d315444941b9cb7f.jpg 1x,
                  /resources/books/tidy-modeling-with-r/cover_hu_525fe199315f9c2b.jpg 2x"
          alt="Tidy Modeling with R"
          class="mx-auto h-full object-contain py-[6%] book-cover"
          loading="lazy" />
      </picture>
    
      
      

      
      
      

      
      
      
      

      <picture class="hidden @tall:@max-grande:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/books/tidy-modeling-with-r/cover_hu_a3c22580d7e8e881.webp 1x,
                  /resources/books/tidy-modeling-with-r/cover_hu_cd1393df6994af7e.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/books/tidy-modeling-with-r/cover_hu_525fe199315f9c2b.jpg"
          srcset="/resources/books/tidy-modeling-with-r/cover_hu_525fe199315f9c2b.jpg 1x,
                  /resources/books/tidy-modeling-with-r/cover_hu_664a9d51be93be07.jpg 2x"
          alt="Tidy Modeling with R"
          class="mx-auto h-full object-contain py-[6%] book-cover"
          loading="lazy" />
      </picture>
    
      
      

      
      
      
        
      

      
      
      
      

      <picture class="hidden @grande:block w-full h-full">
        <source
          type="image/webp"
          srcset="/resources/books/tidy-modeling-with-r/cover_hu_cd1393df6994af7e.webp 1x,
                  /resources/books/tidy-modeling-with-r/cover_hu_c6fa8553b72c4f19.webp 2x" />
        <img
          src="https://opensource.posit.co/resources/books/tidy-modeling-with-r/cover_hu_664a9d51be93be07.jpg"
          srcset="/resources/books/tidy-modeling-with-r/cover_hu_664a9d51be93be07.jpg 1x,
                  /resources/books/tidy-modeling-with-r/cover_hu_978aaeb6d2b325ec.jpg 2x"
          alt="Tidy Modeling with R"
          class="mx-auto h-full object-contain py-[6%] book-cover"
          loading="lazy" />
      </picture>
    
  
  


      
    </div>

    
    <div class="hidden gap-y-2 @nip:flex @venti:w-1/2 flex-auto flex-col p-3 @venti:pl-5 text-gray-700 mt-2">

      
      

      
      
      <div class="hidden @short:flex flex-wrap gap-x-2 items-center text-xs font-medium text-gray-500">
        
          <span>July 2022</span>
          
        
        
        
        
        
      </div>
      

      
      <h3 class="m-0! mt-3 font-semibold text-sm @grande:text-lg @venti:text-xl @trenta:text-2xl line-clamp-2 text-sm @tall:text-base @grande:text-lg @venti:text-xl @trenta:text-2xl text-gray-600">Tidy Modeling with R</h3>
      

      
        <p class="m-0! text-xs @short:text-sm @grande:text-md @venti:text-md @trenta:text-lg line-clamp-2 short@line-clamp-3 @tall:line-clamp-3 font-medium text-gray-600">A Framework for Modeling in the Tidyverse</p>
      

      
        <div class="text-sm @grande:text-md">
          <div class="mt-2 flex flex-row gap-x-4 items-center">

  <div class="flex flex-row flex-shrink-0"><img
          src="https://opensource.posit.co/people/max-kuhn/max_harkness_sq.jpg"
          alt="Max Kuhn"
          class="my-0! w-6 h-6 rounded-full object-cover ring-2 ring-white "
          style="z-index: 10;"
        ><img
          src="https://opensource.posit.co/people/julia-silge/profile.jpg"
          alt="Julia Silge"
          class="my-0! w-6 h-6 rounded-full object-cover ring-2 ring-white -ml-2"
          style="z-index: 9;"
        ></div><div class="line-clamp-2 font-medium text-gray-600">Max Kuhn,&nbsp;Julia Silge</div></div>
        </div>
      

      <div class="grow"></div>
      
        
          <div class="hidden @grande:flex flex-wrap gap-x-1 gap-y-4 py-2 overflow-hidden h-10 items-end">
            
              <span class="pill">
                tidymodels
              </span>
            
              <span class="pill">
                recipes
              </span>
            
              <span class="pill">
                parsnip
              </span>
            
              <span class="pill">
                rsample
              </span>
            
              <span class="pill">
                tune
              </span>
            
              <span class="pill">
                yardstick
              </span>
            
              <span class="pill">
                workflows
              </span>
            
              <span class="pill">
                Machine Learning
              </span>
            
          </div>
        
      
    </div>
  </a>
</div>


    </div>
  
</div>


<h2 id="showcases-from-the-community">Showcases from the community
</h2>









  
  
    
  

  
  
    
  





  


<div class="grid gap-12 items-start mt-12 md:grid-cols-2 ">
  
  
    
    
    
      <div class="prose max-w-none "><p><a href="https://opensource.posit.co/people/samuel-bharti/" target="_blank" rel="noopener">Samuel Bharti</a> spent the summer on the Shiny team and built 10 open-source applications and 5 packages for computational biology, plus a reusable layer that grew underneath them. It&rsquo;s a great read if you&rsquo;re curious about genomics, LLM-powered apps, or building a whole ecosystem of Shiny tools.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-10-08_genomes-prompts-and-shiny/" target="_blank" rel="noopener">Genomes, Prompts, and Shiny: What I Built During My Summer at Posit</a> blog post.</li>
</ul></div>
    
  
    
    
    
      <div class="prose max-w-none "><div class="not-prose"><figure>
      <img class="h-auto max-w-full rounded-lg"
        src="https://opensource.posit.co/blog/2026-11-04_glimpse-2026-11/images/genomes-shiny.png"
        alt="Genomes, Prompts, and Shiny featured image" 
        loading="lazy"
      >
    </figure></div></div>
    
  
</div>










  
  
    
  

  
  
    
  





  


<div class="grid gap-12 items-start mt-12 md:grid-cols-2 ">
  
  
    
    
    
      <div class="prose max-w-none "><div class="not-prose"><figure>
      <img class="h-auto max-w-full rounded-lg"
        src="https://opensource.posit.co/blog/2026-11-04_glimpse-2026-11/images/pharmacometrics-vpc.png"
        alt="Visual predictive check plot of prediction-corrected phenobarbital concentration (mg/L) over time (h), with observed data points, solid and dashed percentile lines, and shaded blue prediction intervals rising to a peak near 160 hours and then declining." 
        loading="lazy"
      >
    </figure></div></div>
    
  
    
    
    
      <div class="prose max-w-none "><p>How much medicine is too much for the tiniest patients? Matthew Fidler and Janice Goh use <a href="https://nlmixr2.org/" target="_blank" rel="noopener">nlmixr2</a> in R to model phenobarbital dosing in preterm infants, showing how weight-based dosing keeps nearly all simulated babies within the target range. (It&rsquo;s a teaching example, not dosing guidance!)</p>
<ul>
<li>Read more in the <a href="https://posit.co/blog/pharmacometrics-in-r-posit" target="_blank" rel="noopener">Tiny Doses for Tiny Babies: How much is too much?</a> blog post.</li>
</ul></div>
    
  
</div>

<p>If you&rsquo;re on LinkedIn, be sure to follow and tag <a href="https://www.linkedin.com/showcase/posit-open-source/" target="_blank" rel="noopener">Posit Open Source</a> for us to share the amazing things you&rsquo;re working on!</p>
<h2 id="upcoming-events">Upcoming events
</h2>
<p>Join us for our ongoing virtual events:</p>
<ul>
<li><a href="https://pos.it/dsh" target="_blank" rel="noopener">Data Science Hangout</a> for casual conversations with leaders in the data space</li>
<li><a href="https://pos.it/dslab" target="_blank" rel="noopener">Data Science Lab</a> for live coding sessions with practitioners building cool things with code</li>
</ul>
<p>Mark your calendars: Josh Starmer of StatQuest is joining us on December 17th for this year&rsquo;s Data Science Hangout season finale! In the meantime, catch his session <a href="https://www.youtube.com/live/u_9OA3WRHgo?t=2244s" target="_blank" rel="noopener">teaching Naive Bayes with Positron and Posit Assistant</a>.</p>
<p>Want to know where else you can find Posit folks? Check out our <a href="https://opensource.posit.co/events/" target="_blank" rel="noopener">events page</a> for upcoming conferences, meetups, and more.</p>
<p>Hope to see you there!</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-11-04_glimpse-2026-11/thumbnail.jpg" length="68574" type="image/jpeg" />
    </item>
    <item>
      <title>All Together Now: Concurrent Async in Shiny for Python</title>
      <link>https://opensource.posit.co/blog/2026-10-29_shiny-python-concurrent-async/</link>
      <pubDate>Thu, 29 Oct 2026 00:03:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-10-29_shiny-python-concurrent-async/</guid>
      <dc:creator>Josh Taillon</dc:creator>
      <dc:creator>Barret Schloerke</dc:creator><description><![CDATA[<p><a href="https://pypi.org/project/shiny/" target="_blank" rel="noopener">Shiny for Python 1.9</a> overhauls how the reactive system runs async code, and now uses a concurrency model similar to Shiny for R. This post explains what changed, and shows how much faster an app gets when it awaits slow work. The key changes:</p>
<ul>
<li><a href="#one-slow-user-no-longer-blocks-everyone">A slow <code>await</code> in one session no longer blocks other sessions</a>, so individual users of an app no longer wait for each other.</li>
<li><a href="#async-outputs-run-at-the-same-time">Async outputs in the same session now run concurrently</a>, so a page&rsquo;s slow outputs run in parallel rather than serially.</li>
<li><a href="#reactivelock-is-deprecated"><code>reactive.lock()</code> is deprecated</a>, and the new <a href="#new-run_once_when_idle"><code>session.run_once_when_idle()</code></a> provides a way to change reactive state from a background task.</li>
</ul>
<p>These changes only affect <code>async</code> code. Your app still runs on one thread with a single <code>asyncio</code> event loop, and synchronous
code still blocks other sessions (see <a href="#concurrency-needs-await">Concurrency needs <code>await</code></a>). The difference is that an async
task now waits for slow work without blocking other tasks, in its own session or in others.</p>
<p>Before 1.9, one lock for the whole process serialized all reactive updates. The lock made sure that an input could not
change while an output that read it was still computing. In 1.9, the lock is gone, and instead each session sends its
outputs before it applies that user&rsquo;s next input, the same model as Shiny for R.
Within that rule, the reactive system starts each effect as its own task and moves on. While one session awaits a query, the
event loop is free to run other tasks, making the app more responsive for everyone.</p>
<h2 id="one-slow-user-no-longer-blocks-everyone">One slow user no longer blocks everyone
</h2>
<p>Until now, Shiny for Python processed reactivity behind one lock for the whole process, <code>reactive.lock()</code>. When a user&rsquo;s action invalidated an effect or an output, Shiny took the lock, ran everything that was invalidated, and released the lock only when all of it had finished. This model meant that any other reactive effects were blocked for as long as an operation kept the lock. During that time, no other session in the process (<em>e.g.</em>, a separate tab or another user) could update anything, not even an output that had nothing to do with the query.</p>
<p>The recording below shows an example of how the new system improves things drastically. It simulates four people using the same app each in a separate Shiny session. Alice, Bob and Carol each click &ldquo;Run report&rdquo; at the same time. A report has two async outputs, &ldquo;Sales&rdquo; and &ldquo;Forecast&rdquo;, and each one takes two seconds to finish query. Dan only watches a chart that the server redraws every 0.2 seconds. The plot at the bottom displays the <a href="https://shiny.posit.co/py/docs/opentelemetry.html" target="_blank" rel="noopener">OpenTelemetry spans</a> for the app to visualize the timeline of server processing.</p>
<p>Each user&rsquo;s card shows the status of their two outputs: a hand while the output waits its turn, a spinner while it runs, and a check when it is done. Under the button, the time since the click is split into three parts that add up to the total: how long the report <em>waited</em> before its first output started, how long its outputs <em>computed</em>, and how long the session was <em>blocked</em> afterwards, before its chart could update again.</p>
<h3 id="before-19">Before 1.9
</h3>
<figure>
<img src="https://opensource.posit.co/blog/2026-10-29_shiny-python-concurrent-async/before.gif" data-fig-alt="Shiny for Python 1.8: three users click Run report at the same time. Alice&#39;s report computes for 4 seconds and is then blocked for 8 seconds. Bob waits for 4 seconds, computes for 4, and is blocked for 4. Carol waits for 8 seconds and computes for 4. Dan&#39;s chart is blocked for 12 seconds. In the timeline, the six output spans form a staircase, one after another." alt="Shiny for Python 1.8. Because of the reactive.lock(), the reports run one after another and finish after 4, 8 and 12 seconds. Even within one report, Forecast waits for Sales to finish. Every live chart stops updating until the last report is done. In the OpenTelemetry timeline, the six output spans form a staircase, one after another." />
<figcaption aria-hidden="true"><strong>Shiny for Python 1.8.</strong> Because of the <code>reactive.lock()</code>, the reports run one after another and finish after 4, 8 and 12 seconds. Even within one report, Forecast waits for Sales to finish. Every live chart stops updating until the last report is done. In the OpenTelemetry timeline, the six output spans form a staircase, one after another.</figcaption>
</figure>
<h3 id="after-19">After 1.9
</h3>
<figure>
<img src="https://opensource.posit.co/blog/2026-10-29_shiny-python-concurrent-async/after.gif" data-fig-alt="Shiny for Python 1.9: three users click Run report at the same time. Every report waits 0 seconds, computes for 2 seconds, and is blocked for 0 seconds. Dan&#39;s chart keeps moving. In the OpenTelemetry timeline, all six output spans start and end together." alt="Shiny for Python 1.9. Because reactive effects are now allowed to run concurrently, both outputs of every report run at the same time, all three reports finish after 2 seconds, and Dan’s chart keeps updating during the slow operations." />
<figcaption aria-hidden="true"><strong>Shiny for Python 1.9.</strong> Because reactive effects are now allowed to run concurrently, both outputs of every report run at the same time, all three reports finish after 2 seconds, and Dan’s chart keeps updating during the slow operations.</figcaption>
</figure>
<p>In 1.8, the OpenTelemetry data shows the six output spans forming a staircase. Alice&rsquo;s &ldquo;Forecast&rdquo; waits for her own &ldquo;Sales&rdquo;, and Bob&rsquo;s report can&rsquo;t start until Alice&rsquo;s ends. No session redraws its chart (the green ticks) until the last report is done. In 1.9, all six async outputs run at the same time, and Dan&rsquo;s chart never stops updating.</p>
<p>In 1.9, a reactive flush starts each invalidated effect as an asynchronous task and the reactive system doesn&rsquo;t wait for it to finish to continue processing events. While Alice&rsquo;s report awaits its query, the event loop is free to serve Bob, Carol, Dan, and everyone else.</p>
<figure>
<img src="https://opensource.posit.co/blog/2026-10-29_shiny-python-concurrent-async/how-it-works.svg" data-fig-alt="Diagram in two panels. The top panel, Shiny 1.8, shows Alice holding one lock for the whole app while Bob and Carol wait for it. Behind the lock, in a box labeled Global queue, six outputs run in a single line: Alice&#39;s Sales, Alice&#39;s Forecast, Bob&#39;s Sales, Bob&#39;s Forecast, Carol&#39;s Sales, and Carol&#39;s Forecast. The bottom panel, Shiny 1.9, shows three separate sessions for Alice, Bob and Carol side by side. In each one, the user&#39;s click starts Sales and Forecast at the same time, inside a box labeled Per-session tasks, both feed into one step that sends both outputs together, and then the user&#39;s next input is applied. A note says that all six async outputs run at the same time, and that each session applies its next input only after it sends its outputs, so inputs never change halfway through." alt="How a report runs in each version. In 1.8, every user waits for one lock, so the six async outputs run one after another. In 1.9, each session has its own tasks, which start at the same time. The session sends their outputs together, and only then applies that user’s next input." />
<figcaption aria-hidden="true">How a report runs in each version. In 1.8, every user waits for one lock, so the six async outputs run one after another. In 1.9, each session has its own tasks, which start at the same time. The session sends their outputs together, and only then applies that user’s next input.</figcaption>
</figure>
<p>The more users that click at the same time, the larger the difference:</p>
<figure>
<img src="https://opensource.posit.co/blog/2026-10-29_shiny-python-concurrent-async/sessions.png" data-fig-alt="Line chart. With Shiny for Python 1.8, the wait for the last user grows by 4 seconds for each user, up to 32 seconds for 8 users. With 1.9, it stays at 2 seconds for any number of users." alt="The time until the last user sees a result, when several users click at the same time. Each report has two async outputs that await a two-second query." />
<figcaption aria-hidden="true">The time until the last user sees a result, when several users click at the same time. Each report has two async outputs that await a two-second query.</figcaption>
</figure>
<p>Put in terms of scaling: when <em>n</em> users each start <em>k</em> async outputs that each wait <em>t</em> seconds, the last user in 1.8 waits about <em>n</em> × <em>k</em> × <em>t</em> seconds, because every output runs after the one before it. In 1.9, every user waits about <em>t</em> seconds, for any number of users and outputs. The wait goes from $O(n \cdot k)$ to $O(1)$. In the chart, <em>k</em> is 2 and <em>t</em> is 2 seconds, so for 8 users the wait goes from 32 seconds to 2.</p>
<p><em>Caveat:</em> this speedup applies when the slow part is waiting on something outside Python that can serve many requests at the same time, such as a database or a web API. Work that keeps Python itself busy will still add up (see <a href="#concurrency-needs-await">Concurrency needs <code>await</code></a> below).</p>
<h2 id="async-outputs-run-at-the-same-time">Async outputs run at the same time
</h2>
<p>Apart from the cross-session benefits, the updated reactive system also improves things for a single user, as Alice&rsquo;s two outputs show in the recording above. Before, a flush ran the outputs of a session one after another, so a page with several slow <code>async</code> outputs added up their times. Now they all start together and the page updates once all the updates are ready.</p>
<p>In this example, there are three outputs and each one waits for a one-second query. The app then shows how long after the click it was ready:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">asyncio</span>
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">time</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">shiny</span> <span class="kn">import</span> <span class="n">reactive</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">shiny.express</span> <span class="kn">import</span> <span class="nb">input</span><span class="p">,</span> <span class="n">render</span><span class="p">,</span> <span class="n">ui</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">ui</span><span class="o">.</span><span class="n">input_action_button</span><span class="p">(</span><span class="s2">&#34;refresh&#34;</span><span class="p">,</span> <span class="s2">&#34;Refresh dashboard&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nd">@reactive.calc</span>
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">refreshed_at</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="nb">input</span><span class="o">.</span><span class="n">refresh</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="n">time</span><span class="o">.</span><span class="n">perf_counter</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">async</span> <span class="k">def</span> <span class="nf">query</span><span class="p">(</span><span class="n">name</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">    <span class="n">start</span> <span class="o">=</span> <span class="n">refreshed_at</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">    <span class="k">await</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>  <span class="c1"># Stands in for a one-second database query.</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="sa">f</span><span class="s2">&#34;</span><span class="si">{</span><span class="n">name</span><span class="si">}</span><span class="s2"> ready after </span><span class="si">{</span><span class="n">time</span><span class="o">.</span><span class="n">perf_counter</span><span class="p">()</span> <span class="o">-</span> <span class="n">start</span><span class="si">:</span><span class="s2">.1f</span><span class="si">}</span><span class="s2">s&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nd">@render.text</span>
</span></span><span class="line"><span class="cl"><span class="k">async</span> <span class="k">def</span> <span class="nf">revenue</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="k">await</span> <span class="n">query</span><span class="p">(</span><span class="s2">&#34;Revenue&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nd">@render.text</span>
</span></span><span class="line"><span class="cl"><span class="k">async</span> <span class="k">def</span> <span class="nf">signups</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="k">await</span> <span class="n">query</span><span class="p">(</span><span class="s2">&#34;Signups&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nd">@render.text</span>
</span></span><span class="line"><span class="cl"><span class="k">async</span> <span class="k">def</span> <span class="nf">churn</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="k">await</span> <span class="n">query</span><span class="p">(</span><span class="s2">&#34;Churn&#34;</span><span class="p">)</span></span></span></code></pre></div></div>
<p><a href="https://shinylive.io/py/editor/#code=NobwRAdghgtgpmAXAAjFADugdOgnmAGlQGMB7CAFzkqVQEsZ1SAnC5KAZ1wmLtIB0IDJq2QUGcQYIBmzUjGQcAFnQi5kwlm2ZwoxcQDdJEWfMUq1WOAA90Ojhw2MtGiOgCuFIjogATOMxE7nRSEMFYqh4UAPp64uTRAEaeFOQAFPxgOrJwyplEmQBKcDnKyL6cSomkUMy&#43;mQCUoYIAAjpxdEZYxFAANsSC-tLI2fZKcL6xFGkNiILIC65RWKO5SjPzizoU7swQYhI4AdLRZO6UARsQoZzcxOUlyACO7gG4adDwKBwUzA3IAFoAHyKX5zfaLH61NgAXhGJTGEymV0W7AA7lA6Gxbjw&#43;FgOL04HB0GkAIz-ZAAYmQAGUKFA-I5VMhpCx2MhyHAARw4GQ-OUoPTEpw4M9XsxcFhNgttrt9tJMiBPnAAL7wqC&#43;dRQaRUZjIEDieBHZgnM4XZgzQGg6GILCk6QqjiZZoQNrUfzMLBUawUQQ4&#43;5DeFGMJwGbg1GyvbozFsF5vDJgYrB16NF1uvwBL02X3QLg8B7DDh0ADmYXQHDD0vhOyjUAxWLF8cyNJLZadYCa1y76Y9WZ9frzAcexCUcsrEJlcBr&#43;zrMcbEoTAGFR3tUxBCKgKLh0AgUGBvRQwCqALpAA" target="_blank" rel="noopener">Open this app in Shinylive</a> to run it in your browser and edit it.</p>
<p>In 1.8, the outputs are ready one at a time, after 1.0, 2.0 and 3.0 seconds, and none of them render until the last one is done at 3.0s. In 1.9, all three are ready after 1.0 second.</p>
<figure>
<img src="https://opensource.posit.co/blog/2026-10-29_shiny-python-concurrent-async/outputs.png" data-fig-alt="Line chart. With Shiny for Python 1.8, the time grows by one second for each output, up to 12 seconds for 12 outputs. With 1.9, it stays at 1 second for any number of outputs." alt="The time until every output is rendered, for a page of async outputs that each take one second." />
<figcaption aria-hidden="true">The time until every output is rendered, for a page of async outputs that each take one second.</figcaption>
</figure>
<h2 id="concurrency-needs-await">Concurrency needs <code>await</code>
</h2>
<div class="callout callout-important" role="note" aria-label="Important">
<div class="callout-header">
<span class="callout-title">Blocking code still blocks every session</span>
</div>
<div class="callout-body">
<p>Shiny runs on a single <a href="https://docs.python.org/3/howto/a-conceptual-overview-of-asyncio.html#event-loop" target="_blank" rel="noopener"><code>asyncio</code> event loop</a>. Code can only run concurrently while other code awaits. A synchronous call such as <code>time.sleep()</code>, a blocking database driver, or a long calculation still stops every session until it returns, in both 1.8 and in 1.9.</p>
</div>
</div>
<p>The recommended way to run slow work is an <a href="https://shiny.posit.co/py/docs/nonblocking.html" target="_blank" rel="noopener">extended task</a>. It runs in the background, outside the session&rsquo;s reactive cycle, so the user can keep using the app while it runs. It also gives you the task&rsquo;s status, a way to cancel it, and a button that shows when the task is busy. Inside the task, call an async library, or run a blocking call in a thread with <a href="https://docs.python.org/3/library/asyncio-task.html#asyncio.to_thread" target="_blank" rel="noopener"><code>asyncio.to_thread()</code></a>:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="nd">@ui.bind_task_button</span><span class="p">(</span><span class="n">button_id</span><span class="o">=</span><span class="s2">&#34;go&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="nd">@reactive.extended_task</span>
</span></span><span class="line"><span class="cl"><span class="k">async</span> <span class="k">def</span> <span class="nf">run_query</span><span class="p">(</span><span class="n">filters</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="k">await</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">to_thread</span><span class="p">(</span><span class="n">run_slow_query</span><span class="p">,</span> <span class="n">filters</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nd">@reactive.effect</span>
</span></span><span class="line"><span class="cl"><span class="nd">@reactive.event</span><span class="p">(</span><span class="nb">input</span><span class="o">.</span><span class="n">go</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">_</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="n">run_query</span><span class="p">(</span><span class="nb">input</span><span class="o">.</span><span class="n">filters</span><span class="p">())</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nd">@render.data_frame</span>
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">results</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="n">run_query</span><span class="o">.</span><span class="n">result</span><span class="p">()</span></span></span></code></pre></div></div>
<p>For lower-level control, you can await <code>asyncio.to_thread()</code> directly in an output. This keeps the event loop free, so other sessions keep going, but it doesn&rsquo;t have the extended task&rsquo;s features: there is no status, no way to cancel, and the output is part of the session&rsquo;s cycle, so the session sends its other outputs and applies its next input only after the call returns.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="nd">@render.data_frame</span>
</span></span><span class="line"><span class="cl"><span class="k">async</span> <span class="k">def</span> <span class="nf">results</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="k">await</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">to_thread</span><span class="p">(</span><span class="n">run_slow_query</span><span class="p">,</span> <span class="nb">input</span><span class="o">.</span><span class="n">filters</span><span class="p">())</span></span></span></code></pre></div></div>
<h2 id="what-stays-the-same">What stays the same
</h2>
<p>Within one session, Shiny keeps the guarantees that make reactive code easy to reason about. These match how Shiny works in R as well:</p>
<ul>
<li><strong>Inputs don&rsquo;t change in the middle of a cycle.</strong> If a user changes an input while the session&rsquo;s effects are still running, Shiny applies the change only when all of them have finished. An effect that pauses at an <code>await</code> sees the same input values when it resumes. Timers from <code>reactive.invalidate_later()</code> wait the same way.</li>
<li><strong>Outputs update together.</strong> A session sends all of its new output values at once, when its effects have finished, so the page never shows a mix of old and new results.</li>
<li><strong>An effect never overlaps itself.</strong> If an effect is invalidated while it runs, the next run starts when the current run ends.</li>
</ul>
<h2 id="changes-you-might-notice">Changes you might notice
</h2>
<p>Most apps won&rsquo;t need any changes, but here are some differences that you might see:</p>
<ul>
<li><strong>Async effects interleave.</strong> Effects in the same session now run in turns at each <code>await</code>, instead of one after another. <code>priority</code> sets the order in which effects <em>start</em>, not the order in which they finish. If one effect depends on another effect&rsquo;s side effect, use a <code>reactive.calc</code> or a <code>reactive.value</code> to make the dependency explicit. (<a href="https://github.com/posit-dev/py-shiny/issues/837" target="_blank" rel="noopener">#837</a>)</li>
<li><strong>Destroying an effect cancels it.</strong> Because Shiny no longer waits for async effects to finish, a session can end, or a module can be destroyed, while one of its effects is paused at an <code>await</code>. So <code>effect.destroy()</code>, the end of a session, and <code>session.destroy()</code> for a module now cancel a run that is still in progress, by raising <code>asyncio.CancelledError</code> at its current <code>await</code>. This stops the effect before it can read values that were destroyed with its module. If an effect needs to clean up, catch <code>asyncio.CancelledError</code> (or use <code>try</code>/<code>finally</code>) and then let the error continue.</li>
<li><strong>Message handlers run in their own tasks.</strong> In 1.8, Shiny ran a <code>session.set_message_handler()</code> handler before it read the next message from the client, and it kept the global lock while the handler ran. So a slow handler delayed the client&rsquo;s other messages, and every other session as well. Now each handler runs in a task of its own, and the session keeps handling messages while it runs.</li>
<li><strong>Setting a value schedules a flush.</strong> Setting a <code>reactive.value</code> now schedules a flush on its own (<a href="https://github.com/posit-dev/py-shiny/issues/21" target="_blank" rel="noopener">#21</a>). So a value set from a download handler updates the outputs that read it right away, even while a streamed download is still sending (<a href="https://github.com/posit-dev/py-shiny/issues/1785" target="_blank" rel="noopener">#1785</a>). The reactive graph is still not thread-safe, so from another thread, use <code>loop.call_soon_threadsafe(value.set, new_value)</code>.</li>
<li><strong>UI updates from outside the reactive graph reach the browser.</strong> A <code>ui.update_*()</code> call made outside the reactive graph&rsquo;s execution, for example from a background <code>asyncio</code> task, is now sent to the client right away, instead of waiting for the next input change (<a href="https://github.com/posit-dev/py-shiny/issues/21" target="_blank" rel="noopener">#21</a>, <a href="https://github.com/posit-dev/py-shiny/issues/1889" target="_blank" rel="noopener">#1889</a>).</li>
<li><strong>OpenTelemetry spans follow the session.</strong> There is now one <code>reactive_update</code> span for each session&rsquo;s cycle, as in Shiny for R. It has the session&rsquo;s <code>session.id</code>, and the session&rsquo;s calc, effect and output spans are its children.</li>
</ul>
<h2 id="reactivelock-is-deprecated"><code>reactive.lock()</code> is deprecated
</h2>
<p>Shiny itself no longer uses <code>reactive.lock()</code>, and in 1.9 it no longer does anything. Calling it emits a <code>ShinyDeprecationWarning</code> and returns a lock that never blocks. The <code>reactive.lock()</code> API will be completely removed in a future version of Shiny for Python.</p>
<p>The usual reason to use it was to change reactive state from a background task, followed by a flush. You can now just set the value directly, and Shiny will schedule the flush for you:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="c1"># Before</span>
</span></span><span class="line"><span class="cl"><span class="k">async</span> <span class="k">with</span> <span class="n">reactive</span><span class="o">.</span><span class="n">lock</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="n">latest</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="n">new_value</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="k">await</span> <span class="n">reactive</span><span class="o">.</span><span class="n">flush</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># After</span>
</span></span><span class="line"><span class="cl"><span class="n">latest</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="n">new_value</span><span class="p">)</span></span></span></code></pre></div></div>
<p>If your code used <code>reactive.lock()</code> to keep two pieces of your own code from running at the same time, create your own <a href="https://docs.python.org/3/library/asyncio-sync.html#asyncio.Lock" target="_blank" rel="noopener"><code>asyncio.Lock</code></a> for that.</p>
<h2 id="new-run_once_when_idle">New: <code>run_once_when_idle()</code>
</h2>
<p>Sometimes a change should wait until a session&rsquo;s running effects have finished, the same way input changes from the browser do. <a href="https://shiny.posit.co/py/api/core/Session.html#shiny.Session.run_once_when_idle" target="_blank" rel="noopener"><code>session.run_once_when_idle()</code></a> runs a function once, at the start of the session&rsquo;s next cycle:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">session</span><span class="o">.</span><span class="n">run_once_when_idle</span><span class="p">(</span><span class="k">lambda</span><span class="p">:</span> <span class="n">latest</span><span class="o">.</span><span class="n">set</span><span class="p">(</span><span class="n">new_value</span><span class="p">))</span></span></span></code></pre></div></div>
<p>The function runs when all of the session&rsquo;s effects have finished and its outputs have been sent. If the session is idle already, it runs on the next pass of the event loop.</p>
<h2 id="try-it-yourself">Try it yourself
</h2>
<p><a href="https://shinylive.io/py/app/#code=NobwRAdghgtgpmAXAAjFADugdOgnmAGlQGMB7CAFzkqVQB0wGmIB5COZDdIgM1IFcATsn4BnOINEooyACZwYpZKR7IAFqQDuyAMpqAlhFzI&#43;wgAq4KGiMgCMWAJzJB-CKM6jcEYsjLysdBCBACpqHOhQAOYcUBTIDAD0DMiiGprufELI6HCk6AA2HGKGkchWMZhEcFDEasiGnDb6PIKwcESiStW1yuyB&#43;u4y4hGtVClwoqL65PU25SltyBZWM&#43;iCpMQToljIAIL5&#43;ptEAEKkAEaNssgAwlDr&#43;c6unIGCcOikgnGa&#43;lZlmkoCCjofgUUREBiiKCFUTJKAQK4MUxwYhQUQUBg7ACiNTqgOBcSgmigPxhEAABqivMRplhRIU3gAKAAimIAMrsAJoASjJRAaBRqHBUnBS&#43;S0cliUDOqI4AEd&#43;BJcDsmXDevljESKLUJs8IAcAG4cWp3OJWWJlMLjQSG4T8dCyWI6uA24wABiwACZtoFAsc4EjdAYjHZHEQZDx8mI6i43L0hSD8ZwCWV9PAiGc4EGrvM1hstgBab7yQJk141Cj6Q1YMXEADWDJ5OwA6mE5parK8OK93p93GiTWVSNFyoIiOVjDxDAM6lAeFRhAAWMGBAAcg3hdi9YY3KogAHJ3MbPikKHl3K4Kw8oQ9heUYCYp6kdgBJGx6QzGexOOGyQL5R2jsgzqKs4bwfHEk4QNOOqzvOyBepcyC7gevhqAOtZwG87iKPqJQBEEQRgAkAD8YgSAAvAAPNA8AAHzJAMcbZBInT7u4uFwJoL6gvEYAAEpPN24HJGcIKnjYaHuPM&#43;gImAMYYiElpnOs6QSCkBQkhaHBEj8nBzmpMjEAcdazKevFNsSVC-oQvHXKQMD4nA1mXD6YDHDWGHWduVxoh8OrzBW8AmOs97zEZhy1oOWnIP&#43;aKgaI-D5HEDTlK5DoUFA&#43;biGQ8IwmASYUII&#43;iiWMwoMAAxHA-7oOI1n4UwjCMARqY9gSnjeNM-QOeByAAFasV1rXOD&#43;9mDT1gVwIELT2b4pD5IUxAVuQ7gtT18jypNEDTfeQjzcVOB3OI9TdceIziAA&#43;rKpJjcepBUPk52FYKN1xKkH5TSFKRBsYq3HrslSgeWlbtKB8ISEQryykQ-D6B9M1vUYtJbNMTQnXEOjI&#43;QPoQCy7Icsg5HwYEACqOiYnxOgE8gwAMgw&#43;yHJNNnBC4cBckQtNuecDBEMzCps8gHO3Pc3PILzrPswwu4iwAYlC4hcgAuoELDE8EZiq5ThMgBCUITAwKAMDout5eCYBIiiaL67x0t&#43;Rb6JgAAvoE0uYpiTLnWYLDPgAcsEmvIAAbK62MsMEbJU3dVWPa0mxYIY-bzQ2gTXCw3vXMTfF8ZivtU5JsSFQyGOTCjpsxud5CbOdmitudMmFAwXKBAAsiwLJUxCmOxjGSbRZCQUTQxqgp2nGdZznVVHR3xfLV9dwxMgkRitKDwecwABq5M6M&#43;qfneyxzh4Thvfcg&#43;pfgA1IPNyp&#43;nmfZ8EQH5JPYDvsGaxwPmp&#43;OMwgTlYGH4GhwSIwN3DdBnJgeoLRFhDA2BhOIZxjDiHhCUXieRqDXDQhAdg&#43;RkhmRzHPSgP9kDfHhFoHYoQijiGEBxdInBXgQNaPAFabgZIcCsIxCI0QOhKAiJMLS&#43;hhCMMhNEdw5B8JZzxudAAUv7BqzBiGyFIVAWQshMSGkoKyAYVB2CCA5oIqIjN2bAUoFyAmtFkDaxsBAgWRiKBYHSlAYiWAKC4ByATcih8wCoIgOguEWDkgADJ-FEMMAoriIxqBxAAITuOCSQzQJiLHICSbE0JB1XiUBwKQNETctj6IZDYuxkpTYACoRYFNaqILkABuQISSnYQAdtU1ysiCLXFZM&#43;a4ABpc6uxWSsikTIxqzAAAkDIFHEH4PAYxWByAc3CnWEWFVgKCFwOQAxAsTHkTMYklJpCnqbF2N4DQghHENhqZY8ZkyIlYA2isjGC1TyCH2PkDmzQGFwGAPY-MMZRBKzAFyLAphsS1AZAySB8BNnbNqck8FcAsA5S0RQJkGwrkZOHJiQoUyKDHFwM&#43;WQHN5L-PhcZesTTLGNPORS5pQyCI6GCCwMwTZdjBGuAACQGe3IZTUEgJF0BpHiMgciSHIChHSyVKBKA7JhbIJopJoQJMokQ6AorzCJPNFMaYmJCsCDymKhg4CIB1by-MyALI-Ccigba0V5mRQvPoB45R&#43;EPkkHEPEIITyyvwrqk1dkHIggtdFCaFpzTmkKKiV17BlCqEdcIN1PFGIxighASIXrjXIHcjAgNVr5jUCuLeMITq43nkoPavhwhxDTxsIg2QK0eLsAAB7oggLqpJdp0ocAZPMABqEBw4RgpEYkEAAVGuQMCuoBxI1kAvOeZVKUIlqBEaoIYyJyBXGrvajgukfneXGBQCg0JehEI0PXZtvLsqru2HsE&#43;&#43;hOLBJWO6mQDABI2CEp8ESYkZhTsoOuYwEQyKzHqDxABI6jxtWQGcDyTlU0jrHcoBM7rJIin7BQMQ9QcrBognNMUNCX64BQloGwejhHSHUD&#43;YKo1T3WpJSIEtDrLSUJtB63s0U41hnUoYbR5H7wkhHQwV4KJ8gTP-BWZNyQiMgzI4ZMIJkrWaT48iKEQnHTOXE-hHKcUi1U3OudFWasNbafOepuIuNORafOiZjkBnAhGeQC7N250ADiuwzBU3dAAViqUk3V57cp3o0A&#43;ntx422Ogw7NC8HhwOQd-N4ZacQIDikJg2UxSFHRYHi5oJLvLbCuhy555Aur5gMbUq&#43;niE0RFtkYkZGB1nYt6sNFTBkPma2QuQGSYZIAmvbFPNLfQ9anIMlsFyB2ogySGdq9XOaHBEudZa21kATdYhqCwOsVw&#43;KZvDdGzVtwcQOmp39jsjaCpZAoD3JRUQEQ5g-EKORBgABFBUR2GC0X8eVetHoADsrpjhVMogkc7cJaJ7gINCxNJQTtnYu74WKogbtgHOxxiQ&#43;YzgfHkMIKgjb8xrFTHcXAOCrtwFh8&#43;pNkQnu-f&#43;xAQHwOLlrPB6IfUpRqGnHrbD10yBWe2ADnYAOyQixWFh7YFcyQC2RDUBQfngv8p3H0Jlf8GZ8iw&#43;RX0MAgPkAX0sUk071JBBGSNMzhgEvfC4FhwbwQxvkiTnmrD8qOWVwAGYcuJBV2r5JyBTsRF&#43;LIWHTcFxYDc8gFcnp8geiwLb&#43;CIfkA&#43;-e-mH3Dhzf2vlwweLSuTzrAwlbngGfkh7lV9CjXaJU-v152ofnWADf59IBhfME6FPoFhyt&#43;EyRy&#43;V&#43;r71Ughg68CAb0RWiZP6eU8CA7c5hQ4g2qcrsOIhMICJXyHlrzZ64BfAMIUEU3dGL8nWJEV4kw-wL6Y1ZcfVMp-zVn-l3l1dqDRWUloSh6hqiCGzPK6Kk4XVwaBO6-snwnI77iDkJBybD&#43;3oYwUBnLf6mQSD6hyxUzAAKxD676xQUDSyYRXCT5aAgF6i74QaZqyDSyfST7T7nJTSuCLQoxfSoHiAPIfBjhwCNpEBGSVLmLQqjLkHIiPIAro7AHsEAr5w6IMBGSogmxQ7uDETES8QNyUrYw8BEFLRVoL46AZQoaiAMgyQdDyGswMGWKjJkjlTtYyQOxZTyFiBkgAqi4wAvK7bew6DADIZwAKxkr1KEHeDSEPhQSpAZp1j9YUAJLQo2aYHuHIFlDIAmq&#43;GeQ4H2TnJJLBFOShH3h4HH7QqpCoEVSRFeStZuGeQmAfDIDtYTaFAMjJFDa8iRZYHIBmJ2buxOYuYiEMDSjOQGxgDyg3r2x2HYyjKXJYoAqzK8EkqLJgDlSErswtY7LNACzyKkLhKUDIDRKEyjHxK7JhL4K2L7JwCHK1AfCnJkpJKj6yAH4oEZYbF75j4T7IBH4z7Qq-6yDIKT6AEL4MhFr7GGDzgQGPxQEwHQrJHRGH74HxFpAcyVTVS1Q9FiHfGJG9HJGAn-LhFZG-FVQYAAlEqvB9rj4FwMBfKdZAmWJFqAofBjqgoyQtbiAUByGxBiBKGyCmyHZf7-J2FkqBCtEortEzIQAcwIy4CIDiYiz5JqKeHJY7I2YwCiClCEwFLiaOL8aKaJSxAlCQnDEMhbE7ExInHIAAA&#43;Spkx-JpQKpkxmJhgRk-A8gih6paWbQXIJirwKGggEA0pqgDIhpyGqG7iHiYpgmEpImJO-y6hLuMpH&#43;&#43;&#43;E&#43;Cp0&#43;Ji3phxh&#43;qB&#43;xSSBJRJChNpApRpmqfGrgxO6JdSD8R0MptpBh7gDpvETpSmVkDcHpyS4Z6ZUZKaNEIMKJayiZyA9SVKBEdJEyDJnRcO30iATxCoHJNigx3htWRx6WaBSSMpBSpZbiHiPASBeZOy-Z1p7xn0Uxxx-pzh04aRHhoZMU4aiBTkVMFAkJSSZpQglp0K9Sk5AscpvpsRDwmpkS5xeE8gw&#43;cAnJ1ypZJpoE5p&#43;5liuqsGcaoEFSR6F&#43;mk-wggkUgZVwZGuaUGXZ226gFAphVMBSrZcAjiJhDwwhohYAkJNm3pVMCQqJGUnwsODIwAro&#43;YDgWACsZ8jcREWA1ByIDIiF&#43;xNmuamFXyuaeFBFRFJFZFiQlFfWxANFUF&#43;Q9x1pGFgSQE8IJiDx4BcsOAUY&#43;F3skyGYOi3pwAtgthRAslMA8l&#43;S8ISlththVpAsV5yatI&#43;gAAXhwGYq6KaQvnuQQZYuJdaJJZ0J8KClAOmC1lAARQrIEeBh5fscPrNH6lZK5tDLRlTPmK&#43;JBD8LgJCaYMebVsAC5eBp5cKHZU8fQROVYnkSUTRpeAkv5Y5FcGfITBcCagtlYFgDAFAPWgyAlXavxZ5rVVTGcJ5oeVWeBXFGKhuYTKVUthVVVa6HyJQBJY-B5R5V5SefsQkRlhVB1SkWSGaoFTFdkceneTNQUUQDNVlWUY5s5sgFUWADUckHUQ0QvpWZNdCf8ZSUQGSL6vlQBktZNrKfZPlWtXlf6lcGYhZqrrZq7OUTtXtQosnnUTwOGpWaMkshddZFwXujwWAKiSurlCLHECauNZCZiUCjiLibIPibIUWcobxADYzCaWhSSkGWeZCbquQuMJWvUO4MkdlaWppA2nEMFlQPhBEVFh8YTLVZSjSW4Avq&#43;I8VCKCp2ZYjZj2SGXpbKSTdsVEn6fNF4erhlUBfKWeQrS7mGT8dNZZJda1vNcgu1gAp2mNdLePi9QwGKiUJWUmRPBwOlRrSCeVDNSLHNdrVcItSAIbcrUjVDhFIcWbWABbaJhCbngWZrb0TCTVDrddU9SCPrR7cDEbSal7f7YHW6SuS1TuVZRaZCS1TZpqLUGwOqFTGDb0YSgCoUMmr8Jma6JLdOTNJmYqcJfnWoIXcYMJd7fAeue9d9fZhUSYnXTEauWiF3bXRzTOXLQ8O3V5QPZtT9dtWYGraHQ7WCTZGSEuW7ZkQbQnd7QPf7QdcHeSgPkQG5hZQQVyoEHSgykyiyuytIlTJfYysymygMstm8P&#43;JsBzNprpurH7NpiLP1KIrIJMjVAyAcGiAyN-RrCaY3BAA-dfc-XfYTHA0-bfToK-QKB-QwNphZn-TZPnsyGyJyCadjHShyKyJiJyi0ohemKQLIMYCALfvoCLhQCgNlq6AAKTNWBDI50PmIyrKJg5s6&#43;4IlCPvZuYIlcMQA8PGBmLwrkAZT6rCAMPC6i6sM5acNyADACiskmCFD1qeYRjUH5gXH8bSEoBkCRgwCWn8MXHJooA12tUQCO2u1EB-GwlOSuN007J8CUBZQmUGohi2DiMKAGPyOFhwBMOqOBy5YZG&#43;MQFFRwgUD5hT7wBFTEAoAZSiT-iCDJOTKiCQkwCGD5gqMsMhjvYSN6rsDFMRPMOsNYDlMhNHrmpZQRCbAoDpatDoDiEQBYCp18MWMfAoDlRuYehua2ALhwCSM3Iwy74MMDOCBDMjNjMTNTPA1xRzNzSDPIDW6uh24xP1J2JrL9ObMLPbOuhnDnPnNTM1HHNiinPlTEABwegrjPOSMJDFKiyWhFrZ52l9iaS9RiAEjI71ZhRoSfBhimhKR3Snj3j5pGh3CyA7DFJJA9OaYMMVWCBAIQD5injoDSAgikBTOaZnzICApIF8MYtYs4t5D2NEvwZJMqR8MXHnb-g6OGP6OcAHCRDYvmr8nmMRISCeYDp4tCMLgVMlN1MBwVMHO-P5nMvaMoCGDV75jsueZQhMM8tUB8u&#43;ACuCCeYAtojNC4D5gIoRL8uDV6vQpF51O27is1NRP2C2uNM&#43;NJNTCmWsMSMD6BC0jpmkvw6YKI7I735qQMPWt2B2uROlO2AVNBuo6FgyRWD2NYAc6NP1LvOfPxhv48TkBF0lYaolBgjgbuowCAserGC4RTAQYcCdCha4aPCxh3hIsos4DrAZhMtaOsuKt6j6pI4eSeZhu2DoAcsSt2CNOkA2gRhaAoAGDKLUCrPkvot3BUu4v4unieYRACPJrUsivuijPSveujkbl06lChsJtqBqMcOeYjtuYBxDuebSh1ib6d7HbbM8ALhvs8Aej3so6I6tAXFiAoALh3uONvKLCnuyCJt2DqNXv2tRvQfgY-unMOPjsSCTuaDTsyTyDWMHNoT5CqAMPsusN2Bs6TG-QZSUCeaFPYsjsOP2Hn0ESBDyCqBkSCDnQwwMilkoD54QyuCiDnQlYoDI5zRciGqK3DE-L8dgSfCifq3JL3BTYmAMDBD-Cv74iFsgAWbDZAQ4jMCycRG0PGCEzAAh16ciD6BxwQD4jnRAzkDnQlTiQEquA9HPpfnCQ2R8GTDnSw5nAUDYtY4Ysaj5hsPIDqVBcNxU6mcu4wx2KVikmw5O3-IReRetrmcXH6hxcMAR1wlswmd6fRdpcZf7VRbhe5eyf5exeleRfFLGeK3JdlepcVe1d1emfRfk5xc8AMAgC6H6HEkCEed8ew6-MldNfNeyey5VRJejeRfRdxpsf6CkkDXV7kRiy0HQ5ecMC5gZjDdTfJf9freeL0vfJaDcyVfNcwM7fq0xV43jcPANCQN&#43;xxxauKHnc7cKyTejd7ew5Foncjfq05e-dKyK020yd6fyecqt1EKxDahyocDdqga6d6fSNQHlfpcyTefFf-KA8u67kWlmcHTRDnSTh9b4qVfRcZSRDbBoi4C5GkPkP-ctfmfk&#43;U-EBFToDAHIM30DL095fmdqBuYcdtCrf8H7ehfByJek-mfoAMjydC&#43;eeDcVXqrsFI4GdZTw0OgrIhdnD5gejbd6fFLSPvdRcNfpczf0tzccyHuQ2y8DeIhjni&#43;K0wPYxMdAT1oCjQDSENgg9JJsJ8dFbCAeLIDFLFKdoGB9jgESBchB8I&#43;Z0vl48Yu1ihJMkdf0flSp&#43;p&#43;mqP6rL8DjCbTOwCDCA5B5DL7-pHN1tcA9yFaLATRYg4gypYI02NCtaUSgd0RkiBBmhxBihKIw&#43;cCYAoQcIcAxVHNCqsQCwxXUGwAFAcBkikSULkT0ybBGE7A6BdA6eWdwhVQN-LojAhZ1sVpTAzApT0aLDLDWDZDrCbCTBjjH9BSogZFCCBCF9T9HoAi-7RTl9H8ROxqaA2BX6qSSD1QnGafX&#43;JTRKzYw6A-AD0K6FsDEAXOYAyAdAJ8g4VSsKnSkN4FU4ghC2EAqATAKNjQhsBiAxCAQJgE2wxSlsBAbYERajpa&#43;RzH5CWEJCWQPAVIGkHSEwhS8NOhDDkI0kKLroeg-YXzA0Bip0hxQz4BICwA6D8Aegd-GQPYmlDiBAgtyYwJkUMjXgooqoZzM&#43;EAEfl6WpGQYB6gUJoZyA61AwD0D4DzRr80UcTO4D365opIkqMINwxUiUISMGCNdEvlYRfMdBYqDIJkUKzh80cSgDCj8DYz&#43;ttEgQCuB4Orb&#43;C98taHdFJmRCRRz8TQOIIhgiqpAwKBESmr5HQDN162TCS-E4IkDcQQu1QBKFvi4xUYIoO6FlppFSglogoDxewZ2BlTMYO&#43;nARVHaBVSWg1UDqVMHCniAUDiA81L-BQKuDwFi0l4LSI-xYgioMg-CDTDoO9KXpiBxAG6m9WIFXBGIAUPoaFlDSlCI0QoaNAWkEDhD6W7gIkO4FByGUBhOA4gOvQ2FD0eI2aS0AxThaFozh9NOjF-0CD78SCLNftIOgFgxo6sRoMFnED7SVJlQqoBRDqHiwj4SUXCdQAMEf4b8HgX6AVK-CgD-oGgofQLGBmSKADgBIAy0HDzBHYwsh0Q2QK0BoSgI8RnAAdA0GWRuhPQ4wHKDWj8wlgywxBKsIYCeIyRHQ50YTBIAbBkgyEloexA31aAkIYAzYVsCKFAwngzwIXcdiUCpxtDfhh-dwHCIXgL5XSSqdtBkE&#43;h&#43;DrQRQjNhqiKBgw0cloeHm4DSA994C&#43;o1LNjCJFmjyc5o6vCQ2PgKBNILAX-MECqgKAF8GvcnD4OEB-kPgtYGvj0BY66CmIKkMURwAgxtloAG4D4HCGiDgZDotCSIa1k-KQhoQZIRCGSE-Lmxw0hYkMbwE&#43;hJDAgtIvMcgLsE-lkhIlGtDsF2ALxOwl2EyIxFVDFidBlvcsRdiIAVkIArwKkYSCjTRRSRJoVsXqmYZqRpQYYvQW6LaGMRDW6qK4SmgzYoiMxZYdkYVguwiJGM2-O4CFlZTBA1YzgQEB4PNAwitRd0SHrpBip1CuRFYerB5ERHbD4A1eZABhCwjKjcI-&#43;IxI2KAgugqaB-GwN4MJHACM&#43;5oMyNQRyCLRsYQfP0AGDrZfgg&#43;2sRqFYmHg3wx498G2haAGDnQ-eDsFAEyLAkowUIL44GIEH&#43;GXCngGYLMExFLDdBXxcKDyCKIyJWjtIy1c-nmCv5MRPysQQIDIGr7UCegebDKBhHcALhWRF6dMApmxEoCAQHw7uEc1ggSB2&#43;XzEcAmItDNCSscwlwjOH0iLgiAK4RCLYA9ByTcocQ9VKBmXA4w4QKEU8KQBUJ5Ammy&#43;eYAZPrYvg2wrCPodXmv6ZtEwIYriTABEkep&#43;EFsGIBuHiyXjtAw4dwJvkwidjawEw0tF2nDSudjwtgwAUHzQmOBEIQowQBhJ97ETohwxHCaPDvjJkOADUUiRgNBA-DkBg4YcGEEAif8FgQUDUTYEkws8skYfStJemeR6TpUBkqaI&#43;GMlwQpQgIeCNZJrQ7pkIh4MEXIFICwj7x2Q3yYGgCn6oqcqgqYPWkanqQ4QfYFqSBQ3Cng2p4MRCEtPik6ieIyUi-BWDrCkhVUvEsSW2JH6zDlAP-OkdkPOHuCy02UuINunAyKSjoUAH4Z3F74aQdQjNagszXtAhYc2xgDSWGOzYfC54q09gMv2PgxU&#43;IgQf8mlN7iLAiQSoZ0dBOZg-Qm0gQH1NRnmD2cZgM0kFpaAuwTwooGFKVF2Ck4CoI0scWmTcGozD9URKEFYXAJ5kPCyMuQ26aBnwgmpfRF&#43;Gfix3Igch8&#43;3sNoIWIaAyB2A2gGYmoMVRHNFAdCFjvVC5SO8CIzvBFPcH46kB7I5vKYPIAXHlxf8gnW2Q8EJhiwROIdNmc8SM4S94UCLWmL9yN4Bz78dnAzkHIu5k8og2wFvneVEDa5yIyfWfhRBAClknYNkexPx146w5L4PyWqcgG9hrJueU3DdrY0iDkR&#43;qp3ZJC91k61zLumRUsjx1jANBSYm8EOljzk5Z0bA0XAfsRJYQLjI5PPIyo7LuBDzkurXC7OPNG7J8WS5iFklgG0w2hwJ2mBqfNlbiYgM5hvOrp92qJKIMxSvM4JEFV5siccZQBGYWE6Y-czu282TvBP-Du8UYDYW&#43;erSLzkRbcQcF&#43;S7i8Sw59StYXFpfAdlwAnZXiAuV0SySXVKuJc9WtHIp4&#43;tqed5WnpiGgUhymetIFnvoDZ4MhxEnILni-NgXM9WewBNpB0m6S9J&#43;k0iFBckhR7TyGeFnKzjZwgB2cP0TJaubJ0y4ugKyhANherTpjGQQYpwC4GRiFhzQfaJkMWYJAlmjDr5O3XeftV86Y4ioAXGRclyoX1daQU85PrBjzb5yKAKnTTG0Kkm21NOICHEAEHt7Nc5FsgFVno10ZGMOmGATlhq3zC8tRAJrXVgvAwD5hQ8SvBxegBUV-d8F5nVloCHOgWNJkbgBkMUh9mFsLGVcM9jDltzW99uuHZPmouUD3Ro4goJxDHDgDnQfZtCvTsACHIxUm5yAc6ABjbkUw3uPCu2nVx1j4DaAHMPMcbA5LuhbARAd0AuBXAmkv5enRELbBBpNKGAJYwZZbBsgMh3MHoTpY4F6U8KXctvSkigGaV9i7e7MdpTMocBzLg5ySB2H0qSQzFypbImHALn2UPhLcK3HhfHAyjzQnI5EUOGyDOVyLUlASl3OkorD7oCcNCnhQwDYAVBuA9-W0JQhNg8LJ5cIBkBvApjbxvYu8XYPvFZDJLvO&#43;81hBfKPnGM7gkUHgG4s5z8l8wWI08Lr125rdf5Ni6gk4u5YuKnu7ii1kQiC4O5uFv3dJRbllzXZLlDvcAWDCXSYBzekMBUGiC9mK0hyhMXlRMFsSKD8lJ4-klgGHAcwWODcEOsMSHKMQi57AL3urV-gMBiIQChceRCqxwlSCNCFGZYMBE&#43;zeAmRUQCzxSmgQyA9&#43;AtmzVB7dzZolAa2esDtnsceF2qu4M7OoDkQRVaIaZoqAlUMJtgMqiEAPLuB5lokvEPVZSSgUh0JOebQmBcUWgMgqlOgAFDKrKWez41jqljubzKUJqeZ5sxjv6GOIIz8lbeSgAyDZZd9uS&#43;YMxJO1iBqqcehGQwANiIC9VJlRAYwCSylEKIZRrgZoB8BgAMh8w7S6ZUI0snQMOVls6HEa2IlTz&#43;MKOFAJHAehLEsAOgC7HxBXT34BVLuIVRkqjjrqep50UstLx3VY0FVqgJVe4BVVChhA2opdffhjJwolh3wKwCsqza8Q91Dq2PnepzWx8C1F6l9a-T7Rvwien6xMPKoY7QB2oPgZ3sIM0CXQFQKyT3iHVkTPxyOmwmwDFSGDYYJQmTGUMgEUE7o82SQwDMNB6YYaQ6GFQmNXwmhJxFaDA3SGgOpCkBaQ9IKXhZnrkMU6NfQpxH0MY3Y9c15nNrlnO9JJzOu3pRACHh4BbyCNUAc6MxWT4gBc0Mm23HJug1O9S1fvJQpZxBBDj6WHQTuD&#43;qSQAABaiVWAEzEAQ6zvPNWetM3q1FBVMM6Hkquh6b8QxnMAMShvSUAs5u0cqXcFqAMAFYDYasPnkwUcxiIDceucJtj6KDpVNxBgHKpsjAA71thDytjBdwWbWJwMAOYJls2lqiJea6hGht&#43;4tqRAlCU9W0CSyMRtR-6giNlss1wp-Qo5RCYrWd7nQytpnYYsVqq2lbHNpnVdVktjillyplaRrJ3DjhklKtEgarfAAbDmymtoFQQFgBhgh0ctQMKsDYg80ghlsrgeuaxrkA6bjY3W39XuU4BipRQWgZDYqEY0bb0kqONbbDEVqbbuRLWrkrttsQxhDtcG47aoFLHgNBtXc2PsxtejYZbtqGpbckneAPEMyx2jaPhXcxvcQulVCuuRC2qewfYfseuTFQqUNApR0QBkJjq9i&#43;xKYJqQbGqpdyw7v0WALgLmg47lqadwBZnaIGABBdbC0O8zY9qKHraOtpay3mdtk6QwlCfHErTej2Kxau5W2uFLyPVbtpBRAESZZ6Cl1JJWddOzAAzqZoVqHiDIVnezuUrENfu6WTcvxvzxzhBNDAdhqykQDsMm4tunQHmRJbJ8sAXXKtfRsE0mIPm2WExOwyg4ZzKuZAFHPDuSAYhW8balTfoD2UgAoBXlAXIH2QDGAKdMmj0JpvyhXdu1AGagFclGB3lWdRu0zhVui5nim4rIQpbJx4CnZj216TiEzhZwkcQAJO7HeTrsAOx4IYvc-hMHD67BzsLBPiJKVICw4k8jMQHDwsr2UR3g6ob8azthwgAg99&#43;UQBnPOUJ5IAXClPBXgJwVQPQUAd7CuFkDc58oe4HhQeEKgb742EHYvAwB175RDQi0D4PmFa0sEh95ALKAJhKD6EC8juXvJEFH07KkkyfM7Ar3yC0RiYSMwKmnK0AOwycQB&#43;iE1FM7FroA4CQmP9Cl5cA5uxmk0YIBgbDb11SiWQDbP9TVUAY-XedeThgY2QwAziHILQEoMIzHYRAcAKWRoM4HclOAfAEQDACmsaAKAc&#43;k1DbHdpqEE4&#43;YArIgD&#43;jMUQYhBAeNrZejCmoIM1dxJC6JQKw&#43;YGMfIEUCACyQ1y68JxLwNLjIcuYS-o5VCy-iao1qiJMdJbmEYFAHwXAN5HoHKICDVATiUVhh73g7&#43;0iVOD3AhAHiMQrWJYhKqwScSxxNCO8ABjqF-9KEQ4yNA-PCBqQepygWNEZsQiT7niXkq8SBJAjtLvQmQ1maiJMAL5oeFhw8WpAFANAzxF465dUDzRHCVsIuEUHWzjStiCI5RlzH6riC3jji94q7TFVwxUTctb4mBB&#43;MtCCGTDM6dKJbXYBqJgJXaGBEURekZHgx0MvIv6D8h-xgwX4fmJX1v7rgaxjaCQNAAdQxxkED7DCPCFNktI4Y94bTJIXNJ5L8daMRoHCIH1uBsYZHPqANCggPGB4W0T6PYn65wyHjfx6HJcbKAuJkEbx24PNClAnoXoTGYfKzRWyukQTH&#43;eE3CjaMrQHj26jaJbB&#43;PwwcKqJ1&#43;udmWgAmho26ok3zQkKfQ55bxlA9DBe3t8Vkaqq1F4nuiBjCoP0L47kpDrMnf8rJ&#43;AOydpCyBIxW&#43;fPpf2OikmJgopzaC7h5MCtxDAp0QEKZyWChxTPUbdUomhNwBN1cIIgNqYgC6mLsZgC-lsEoKixclggI0yqNRy7HNgbPZAM&#43;DRiYhBA6wBZiHSWJUwGtgQTpK7DMDnQyYw8JkP7CDjOjkAGiZhvmEUDyBfAjoSIB8EOBQhrtPEWwFFFDxwsFNuEYyqBFHLpJNgMqAk16Z9juwU4rIFgBTCgJb6d9e&#43;g-abEqhnAA4duBcD0XKi2BpQPAd7JDLACA9sYZmoE-wWszQ4&#43;UcIbdTauOwh1OOKeGjZ3C46FRlShc4cS7mk2mQQ6am0yLObvUenhx2MLOCnD4iBmUAyaigMAAeIGmhzF6zylrHqRkwdAW8HeN7F2BNxMQOgfc4cEPPccU8558xPYW8RzqeAhnG4NeE1PABgAep4cyjhR0MAUMU-KwoVBUKCBPKqpf9Z2Y5XDF3TdW&#43;8XetE4h1&#43;uyAYcxEj1OKE9Tlpwwx8GB1JIMNnSNgdpz4GQ5ZMPEb0kMY4CCGUQNgYI0Ud2F0INx5ii4792d62dvSk2vDh0AuwoA9TRAcYhQDCXyMEZ5EO9SYnrVznVVHq6GdNgux07oaxUf1CIiUaNJEtwBKeOBOm3QbmuwxeI8qvUkbhycaScw2hbiAYX5lMOhYlTG3OlnAzulxrKpfEsaK4QtcS9X-vVrxHCYnl0y6oHEsFyGtzXZy7ucsKWXTWjaLy0wpkgfmQLF68vZF1LLkRLLTc&#43;y2GU7gZWC4PUsSqoFMt3jbLRzAiXerOULnkBGV1S96Ueg7DfB-GiaKeue5nKud6tXi0woZ3kEeAQluECgHVMOgq2epuS2Yjst&#43;Wn1-hSK65ZlUxWpLcV8nD5dV3q1xOF6hvvVppzZXrVKOSihuEJiWXc09VoKI1fgACb4ALVoTTvIJYZ5Tdp15q5ErkvIBvTmIX0-6dTiBmE9tgc6DlldDfWcsf14OH5aEEXYfLAGYAJisyK1gIYAGaa2g1cW1bVAq2himRiRsbhKIvga6zwAVhU66uN5HC5iB3OBmrCINxKzOqK3bZtDo1hDnNDVUYbQL9&#43;NY3hj7AHidg26l8u4FliPweJF&#43;FkwGP5MrIsoQphvoU2LiGVqNYnaNLkob7jXC9jqzm-IMVq5hcIqOTcqweHAja5tStlhDonrmKr7xAwLQ94Dz3rBlb105mIKAtMm3tbpF7ZnsBsD3zDgW6SU0IFzOiBawmCy4c7e1wcB5AVAYgkYKaamDiQzxBoBYFoYsJ7VsnLWyrY9nmnLTptnRCKZdsE4yTUphkJhIYwMwX1VsCEN9GMbWGGAjSZa8eoXwa3WO0d4URXawPeyrbT2vAwuu8sGGTTOiXC5QHwuLaANF2sWGTevVtBxt4EybZWh8vTnAI45-PFTZlvJIrzN5mFXeYfPRXO4Plj86WR7sUTbOZ6yayJa3UXqqb&#43;eNc5tcVoVbp70K86HPcfNuXJrSMStIVe2vPr4j5VzcxbNLX13ETd5LgCgFpNQ5&#43;CRrFANcB-O4AJ7B9hZVygxgmizDExUKeaG8MnSRYd-TrKBGEzAwoo6WQAS7jJAkHfzhYltXoNAYb8iA7t0SjKidTj9a&#43;y4pQMEaHHCB1zZkN25gsAyR2UK38JjX9oQ0Hjz12J0plib5V1qzEZJ94HzRxtJITdfGu630IuvLWnBLxSrjFUmsAYwGwBWG1gDgrPcbb1O9&#43;p1S-vFxfz56kc8tc9IhX1Hmw29UA9kXyNDAyY5rjEfwchIXNhjnhU4I13nFUrpnOpVNwYAxGrYVjra8A4IfWQUAvjyq-0rhzICrYOjnaxhRNTpYTEWWOAA4ECfsKwAuaK2OudWsjndrRjhSxwAIlhPn1DFSJ1oGiejs4nW1jOpFwkeOq&#43;HxJhkAAx6ZAMHIihJwfzHgAXFFNVBzfWgEwDGRnjCQGp1pqY2YAfWdwVE9ZwGev3Vtr92OXzScqVd&#43;qcJ3UWicBB4Q&#43;IV4jmH9h8N4MDxHahfBoBrTkQvNDmTEMEBC31yEDZgXYN7DZAcoPELSYWjyTaogzbZRxNotcnRTiHKAOKPFM0vug4suTB9TYrVhiPw6PD3sNJOIGl6PPCkGUAktWA36VI0KtWXx0C50CpxQXd5V1bYnsTQvEXdFcbCEi0AYxjlHpuSsKPReQuZQtiGYji4grMqqYpLzFwvkBTx5hyvEQqG2VQr3PVycuJsGeypifYww9aAYKylg5UwPQX7Dl9XuFUQvFB9yFgh8GZL05KyflOEKsX95zk4ib5XlGYH0SHhVBPvaY5aBjFLCV8rge1TMWVMHIjkmRRLIMUaAquXNqHYdcq7hS9lCnbDWjjZX-1SESCwR8F&#43;kEXr-OIKReKmMex80RJuXF&#43;7ck6rigqQhXkbKmMyty4iFuq5VSqgyCgHsxSX4UCJLG&#43;YZeVKqgr2DoU8BfVhqAkQKwFLpQAegA4kbmzCUypjFuK6ZbuoB8xjfCuSW&#43;b0QDm9FyRuQ3BJJEkVBKh3kGAJTEWCUxXI2YCgd0cN1XWCQX6vKN3ad3UAp1ivFaNmYR8xEECmAKqRttLCGXyxQdcsIdXVLsBMnyiER2QTqR266FGhqMNbHWWxfp13AKhhQOcIOCPe8oiozDHYCwBHDfBxAO6CIdFFXzuAeEkLbSHi80AdB&#43;p6qd9XUETzHdvNWF2rOgARz&#43;FlXxySYhPWQDCUTdJqdD5kXRszECXF6OPTW4Bf&#43;gjiKHgNlcBEL4fhAFO5AO03FAmoiPavfJkh4gqHTEs3JLZJy6qiLuvqoKDuhR8KesfjlXu7IGKAoCLvI3flWadc-ZervascZrFi5tQ&#43;7VbXGHpj5oEjcxVQGu&#43;eHVR-YA0eSOKAeNnEmI&#43;5RPM7gSiNMQg&#43;Wea01n1XITA9D&#43;vkkYtCOJ&#43;4aAkt2PTXGUnEHRsvu4gmpOIGYiC9fUxPF6ExAinMeTNcuNmSIFx&#43;QBVVPCkbgN3FBu7BvmXrOEQnrvU97UbUh1XiOljzIoA5si&#43;kbGl9fzOem&#43;34&#43;tLYFhztZEvS&#43;t7I15ADNfkguABrwwA724APQbXut3h4FedvYOAe37k3naeVQJmtuWQMn3X2V435DAWwI7kq6UR2CyXtrx1-yhG4GA7WQb4HCX1K86PsOQpsonrjp6wmbrdp7YGW9wG9OzKq3Es3GYj6DaUoKqFAYSDsFaIm2RWqU5lJGenIbnpJLNMKq1f9UyX7r2AHaxVU6PQ2ZIK1928gAYflrrA0vq68s5o&#43;6tPrwN&#43;FdDeC3kbJfRN6tyXMLmZwRvKfoW9nsS8bmR3D95dylPi36NEFLg-YB8gRasnEH4TDJBreEZG3nr517a-6AE9rbuN72q0Bdu4gvKKySSwXBL6XWfjUyvzmv3SP48xP0n&#43;cyeyvf2AH3r73T92UrldUTIakdFERd6o0QG5B0c-jRAMW4w7geRxuSt&#43;vQMoSguYHkAYcTvDHtL6-LlxTdS9fXLWdO6SywDLYtA1j&#43;EP45CTbBIIsgV8PICqoMhawLWSMb4&#43;ZfxjfHJiIuz74tzzhQUKkFrGn5se0RCYrOYSsW51KRh9SvrmF&#43;wAL3q1aQ4EZyq5WSxnAsAKfvD635CQrk9PNmRlsKAwaA-8yLuGzDEfrewuLOcflgDwCr8xGVy6XuICn8JiIvgABf&#43;EK8Sa7oUWpuxL6vGO9JVf6Ke1zo9oBJZV-eNWHkQqzhQDxjc0s-jKgxUC8UflSqpDCmF4f8ktIvuUaL2Y6nxxf1-tWetKzkJgqqZN07V6LGKBE8b-POiphgA1NwnUgAxbHKo21XNCIBwvN-3s82PJ8hNR--CANqw-zEfxbdxfNtx-EQkLAGlAtKV0E8p8AzQAl89-WrDqBEsXxxICfwbSi8oGA0gNkAfKYXwIDI2Kr058m&#43;Uxj58ofJH1dA0fNr1wAl9Rb0EDNAJfRKYBvJfUEA9cMAGV9fuB70R8GA&#43;ZiX12sK-z2sz-V3GZV8wPIBqBIqFnF9wafMAGzw6iQuwSBvvSN1KcQ3BHEEAS9VkAjgQQHOiy0mBdAUkJHCEgmelSUQfzKANeOpR78JgfhyOhCYMHXyMtQNQHBc7oMl2hddoBg2jNtQOonix9CPyGSAayWTh9dwgrfBCC4UGp0W0bA6M0iDrEBJFsCF8YID6FAQTtCqED3fYhaofAtAkaQ0CcW201JbQUACMqoaeUBcUAeR2gs4Ld7kRdnzRaD6DYLWc0gtCgEYLKA7QCYMbUKAXgFrUFYRYPe5ikd7kOVOsLtiOJssd7mZVXZURUJh5bdoAVUKbW5RfYhOd2TNMFQd7j24R7fe0jRCYCq0CBHNDDTbEUQBmzaFgjHvlCkrUCkAcNX7EUVQdkkMkERdCxCqlMNaRFPzMhNIQoGiANwG7koc1BAWDhDMxQhwiB&#43;EYwQkBpTZJDYCG&#43;eYE7Q8gGhj3R7IExBGBXUI4S7AtAFCDrcVxHiAXFDwFDkAgrUQGxdwzIewFNQfgOoDJAHvMWEKI0jGhCfZtAMyBpcwoBFgYdxbfR06NxUBOEKBRzcrRE1Q5Enj8touV4PwMwgJRGFFflP0T5sJDIo0JVpuSXg5hXwKUOUBeTLUPZNBbSKBodpUfcROlpDD8CAhZDb0AsU9OeuV8dBRTRCkdFaDPQFgAndSGRAxKe2xSYJAR0AT9I-R7gUAVHQRz498gdMDIwVLZEHWVPQGZR6Ub7A2wpsjbdy3jCU8ExAIle9GzV&#43;5XQ&#43;R0ccGdWpQYBfHK2B9D3HN72wRaAJEL3ku8QTh-BTYeZithOkQs3OhizUs0sJ9ABWFKc3lEOmhDeNPHja5KuarlBVRNKeS2swVVhT8tTOKnmuxnHHbmT55WTtlmBlWYIn7Yz2Vhg9BgOEdkslgOTHwu4ZTaokQ5vkJRH0AAOeCGA4TjJ9lWwUAEAFrBgAPcHmY9wHsM8wDww8LIswASliKZP3KJiA4OWG0GekoQPFS5YIAMz0HZ9Gd8Km49HZ0PicfxLzRu4QtOCLkV4AbxVeVnQsfUhsAMAsM0RKuGpV&#43;45FHgE0BkmR1weBRAIA3PkMcaRhPlV0M&#43;VxVbcAJXrki9czmVDUrJUIRZzoVUNRwFwz8JEMxDNk2DEpDK1DrZQGYGHIpkAuABhDoseAyCUYudLjHCnEGOVpB6cRrGcRrsc2k3CD3DRmXCoAHRnXDdQnrU9wRlb5yWJ0IzIMlA2OQQBX0QxMyI6sLIwF3IganOxGAZFCQF3SUXcLOURdHI1iGcj6nEMPhA3Q-lTOUs5GYjysdENYPQDgoiyIe8nIupxAZmVdyILI1I9p0I5iOZM3xVCWELiKYaOGpHyhhiGlwftWfKBVki0FC1SIUGQM5wucKFdNRfkHvZlRflPuPbne5yDDgzacaDdgnoNzESADaAaDXlX4RAxWnQoBG0Cgy4MKAZgxND5TAW0VNawdxHsAFwd0EBsKDNqJ4MOoh2AVggAA" target="_blank" rel="noopener">You can run the four-user demo from above in Shinylive</a> to see the improvements live. In that demo, each of the four panels connects to one Python process as its own Shiny session, simulating four different users accessing one server. Click the &ldquo;Alice, Bob and Carol click &lsquo;Run report&rsquo;&rdquo; button at the top to start three reports at once, and watch the OpenTelemetry timeline as the outputs run. Shinylive uses the latest release of Shiny, so the demo shows the 1.9 behavior; the <a href="#before-19">recording above</a> shows 1.8.</p>
<!-- Before publishing: the Shinylive link is encoded from _examples/four-users/ (in that folder, run `shinylive url encode app.py otel_trace.py requirements.txt --mode app`). Its requirements.txt pins opentelemetry-sdk==1.40.0, to match the opentelemetry-api that Shinylive bundles. After the Shinylive release with Shiny 1.9, check that the demo still starts, and if Shinylive bundles a different opentelemetry-api, update the pin and re-encode the link. -->
<p>To view the spans of your own app, see <a href="https://shiny.posit.co/py/docs/opentelemetry.html" target="_blank" rel="noopener">Shiny&rsquo;s OpenTelemetry docs</a>.</p>
<p>The example apps shown in this post are in the <a href="https://github.com/posit-dev/open-source-website/tree/main/content/blog/shiny-python-concurrent-async/_examples" target="_blank" rel="noopener"><code>_examples/</code> folder</a>. To compare the async changes on your own machine, you can run <code>four-users/app.py</code> with Shiny 1.8, and then with Shiny 1.9.</p>
<h2 id="in-closing">In closing
</h2>
<p>This is one of the largest changes to Shiny for Python&rsquo;s internals since its first release, and it brings Python and R to the same reactive model. The <a href="https://opensource.posit.co/blog/2026-10-29_shiny-python-1-9">Shiny for Python 1.9 release post</a> covers the rest of the release. If an app behaves differently after you upgrade, please let us know! As always, if you have questions or feedback, <a href="https://discord.gg/yMGCamUMnS" target="_blank" rel="noopener">join us on Discord</a> or open an issue on <a href="https://github.com/posit-dev/py-shiny/issues/new" target="_blank" rel="noopener">posit-dev/py-shiny</a>. Happy Shiny-ing!</p>
<!-- Halloween easter egg: once the "In closing" heading scrolls into the top quarter
     of the screen (or the page ends first), a moonlit graveyard rises from the bottom
     of the screen. A skeleton climbs up behind the headstone of reactive.lock() and
     waves, jack-o'-lanterns pop out of the ground, and bats cross the moon. It plays
     once per page view, is skipped for readers who prefer reduced motion, and a click
     the close button, or the Escape key dismisses it. -->
<script>
(function () {
  if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;

  const DURATION = 8500;
  const BONE = "#ECE5D3";
  const BONE_EDGE = "#6B6352";
  const NIGHT = "#0E0A19";
  const STONE = "#1B1429";
  const RIM = "rgba(244, 236, 210, 0.16)";

  // The scene is one SVG in a 1600x420 coordinate system, anchored to the bottom
  // center of the viewport, so narrow screens crop the edges and keep the
  // headstone and the jack-o'-lanterns around it.
  const strokes = (paths, width, color) => paths
    .map((d) => `<path d="${d}" fill="none" stroke="${color}" stroke-width="${width}" stroke-linecap="round"/>`)
    .join("");
  const bones = (paths, width) => strokes(paths, width + 3, BONE_EDGE) + strokes(paths, width, BONE);

  // Skeleton, in its own coordinates with the center of the skull at (0, 32).
  let spine = "";
  for (let y = 76; y < 240; y += 10) {
    spine += `<rect x="-4.5" y="${y}" width="9" height="7" rx="2.5" fill="${BONE}" stroke="${BONE_EDGE}"/>`;
  }
  const ribs = [];
  for (let i = 0; i < 6; i++) {
    const y = 104 + i * 15, w = 38 - Math.abs(i - 1.5) * 3;
    ribs.push(`M-4 ${y} C${-w} ${y - 4} ${-w - 2} ${y + 12} -6 ${y + 10}`);
    ribs.push(`M4 ${y} C${w} ${y - 4} ${w + 2} ${y + 12} 6 ${y + 10}`);
  }
  const skeleton = `
    <svg x="732" y="136" width="161.5" height="240" viewBox="-80 -14 190 282" overflow="visible">
      ${spine}
      ${bones(["M-2 92 L-50 99", "M2 92 L50 99", "M-50 101 L-60 168", "M50 101 L80 62", ...ribs], 4.5)}
      <g class="spk-forearm">
        ${bones(["M80 62 L92 8"], 4.5)}
        ${bones(["M88 4 L85 -6", "M92 1 L91 -10", "M96 2 L98 -8", "M98 7 L104 1"], 2.4)}
        <circle cx="92" cy="5" r="5.5" fill="${BONE}" stroke="${BONE_EDGE}" stroke-width="1.5"/>
      </g>
      <circle cx="0" cy="32" r="30" fill="${BONE}" stroke="${BONE_EDGE}" stroke-width="1.5"/>
      <path d="M-26 40 C-24 18 24 18 26 40" fill="none" stroke="rgba(107, 99, 82, 0.25)" stroke-width="6"/>
      <rect x="-17" y="50" width="34" height="22" rx="7" fill="${BONE}" stroke="${BONE_EDGE}" stroke-width="1.5"/>
      <rect x="-15" y="48" width="30" height="6" fill="${BONE}"/>
      <ellipse cx="-11" cy="33" rx="8" ry="9" fill="#120C1E"/>
      <ellipse cx="11" cy="33" rx="8" ry="9" fill="#120C1E"/>
      <circle class="spk-eye" cx="-11" cy="34" r="2.4" fill="#FFB347"/>
      <circle class="spk-eye" cx="11" cy="34" r="2.4" fill="#FFB347"/>
      <path d="M0 43 L-4 51 L4 51 Z" fill="#120C1E"/>
      <g stroke="#120C1E" stroke-width="1.3">
        <line x1="-12" x2="12" y1="62" y2="62"/>
        <line x1="-7" x2="-7" y1="58" y2="66"/>
        <line x1="0" x2="0" y1="58" y2="66"/>
        <line x1="7" x2="7" y1="58" y2="66"/>
      </g>
    </svg>`;

  // Four finger bones hooked over the curved top of the headstone, with the tips
  // hanging down its face.
  const stoneTop = (x) => 270 - 50 * Math.sqrt(1 - ((x - 800) / 65) ** 2);
  const grip = [752, 760, 768, 776].map((x, i) => {
    const y = stoneTop(x), drop = 9 + (i === 0 || i === 3 ? 0 : 3);
    return `M${x - 1} ${y - 5} Q${x + 2} ${y - 2} ${x + 1} ${y + drop * 0.5} L${x} ${y + drop}`;
  });

  // Headstone lettering is cut into the stone: a dark edge above each stroke and
  // a pale face below it.
  const epitaph = (dy, fill) => `
    <g transform="translate(0 ${dy})" fill="${fill}" text-anchor="middle" font-family="spk-epitaph, Georgia, serif" font-weight="600">
      <text x="800" y="266" font-size="11" letter-spacing="3.5">HERE LIES</text>
      <text x="800" y="298" font-size="12.5" letter-spacing="0.5">reactive.lock()</text>
    </g>`;
  const headstone = `
    <path d="M735 350 V270 A65 50 0 0 1 865 270 V350 Z" fill="${STONE}" stroke="${RIM}" stroke-width="2"/>
    <path d="M776 277 H824 M800 273.5 l3 3.5 l-3 3.5 l-3 -3.5 Z" stroke="rgba(220, 212, 190, 0.45)" stroke-width="1" fill="rgba(220, 212, 190, 0.45)"/>
    ${epitaph(-0.9, "rgba(0, 0, 0, 0.75)")}${epitaph(0, "rgba(220, 212, 190, 0.68)")}`;

  const graves = `
    <g fill="${STONE}" stroke="${RIM}" stroke-width="1.5">
      <path d="M402 356 V300 A30 26 0 0 1 462 300 V356 Z" transform="rotate(-7 432 356)"/>
      <path d="M1124 360 V316 H1104 V302 H1124 V282 H1138 V302 H1158 V316 H1138 V360 Z" transform="rotate(5 1131 360)"/>
      <path d="M1196 362 V322 A22 18 0 0 1 1240 322 V362 Z"/>
    </g>`;

  let fence = `<path d="M50 316 H330 M50 340 H330" stroke="${NIGHT}" stroke-width="4"/>`;
  for (let x = 54; x <= 326; x += 17) {
    fence += `<path d="M${x} 356 V306 M${x - 4} 308 L${x} 298 L${x + 4} 308 Z" stroke="${NIGHT}" stroke-width="3" fill="${NIGHT}"/>`;
  }

  const tree = strokes(["M1392 340 C1386 296 1398 252 1380 206"], 18, "#140E22")
    + strokes(["M1383 222 C1352 196 1330 190 1300 162", "M1385 212 C1412 182 1442 174 1472 142", "M1381 206 C1378 176 1392 154 1386 118"], 8, "#140E22")
    + strokes(["M1300 162 C1290 150 1286 140 1290 126", "M1328 188 C1316 176 1312 166 1298 160", "M1472 142 C1482 130 1480 120 1494 110", "M1440 172 C1452 168 1462 172 1474 168", "M1386 118 C1380 106 1386 96 1378 86"], 3.5, "#140E22");

  // Jack-o'-lanterns: [x, ground y, scale, delay in ms]. Each one rises out of a
  // clip at its ground line, so it appears to push up out of the earth.
  const lanterns = [[600, 372, 1, 700], [684, 382, 0.7, 860], [936, 378, 1.15, 1020], [1032, 386, 0.72, 1180], [258, 382, 0.85, 1340], [1300, 384, 0.9, 1500]];
  const face = `
    <path d="M-25 -37 L-9 -37 L-17 -50 Z M9 -37 L25 -37 L17 -50 Z M-4 -29 L4 -29 L0 -35 Z
             M-27 -22 Q0 -6 27 -22 Q24 -9 15 -7 L12 -13 L6 -6 L0 -12 L-6 -6 L-12 -13 L-15 -7 Q-24 -9 -27 -22 Z"/>`;
  const pumpkins = lanterns.map(([x, y, s, delay], i) => `
    <clipPath id="spk-ground-${i}"><rect x="${x - 80}" y="${y - 120}" width="160" height="122"/></clipPath>
    <ellipse class="spk-halo" cx="${x}" cy="${y}" rx="${70 * s}" ry="${16 * s}" fill="url(#spk-halo)" style="animation-delay:${delay + 300}ms"/>
    <g clip-path="url(#spk-ground-${i})">
      <g class="spk-pop" style="animation-delay:${delay}ms">
        <g transform="translate(${x} ${y}) scale(${s})">
          <path d="M-3 -58 C-4 -66 0 -72 8 -75 L10 -71 C4 -68 3 -63 4 -58 Z" fill="#3D4A1F"/>
          <g fill="url(#spk-pumpkin)" stroke="rgba(60, 18, 0, 0.6)" stroke-width="1.2">
            <ellipse cx="-19" cy="-30" rx="24" ry="29"/>
            <ellipse cx="19" cy="-30" rx="24" ry="29"/>
            <ellipse cx="0" cy="-31" rx="21" ry="31"/>
          </g>
          <g class="spk-face" fill="#FFD27A" filter="url(#spk-glow)" style="animation-delay:${-i * 370}ms">${face}</g>
        </g>
      </g>
    </g>`).join("");

  let embers = "";
  lanterns.forEach(([x, y, s, delay], i) => {
    for (let j = 0; j < 3; j++) {
      const ex = x + (j - 1) * 18 * s, dur = 2600 + ((i * 3 + j) * 431) % 1400;
      embers += `<circle class="spk-ember" cx="${ex}" cy="${y - 40 * s}" r="${1.4 + (j % 2)}" fill="#FFB347"
        style="animation-duration:${dur}ms; animation-delay:${delay + 600 + j * 520}ms; --drift:${(j - 1) * 14}px"/>`;
    }
  });

  const scene = `
    <svg class="spk-scene" viewBox="0 0 1600 420" preserveAspectRatio="xMidYMax slice">
      <defs>
        <radialGradient id="spk-pumpkin" cx="0.42" cy="0.38" r="0.75">
          <stop offset="0" stop-color="#E9832F"/><stop offset="0.55" stop-color="#A9440F"/><stop offset="1" stop-color="#4A1704"/>
        </radialGradient>
        <radialGradient id="spk-halo">
          <stop offset="0" stop-color="#FF9A3C" stop-opacity="0.55"/><stop offset="1" stop-color="#FF7A1A" stop-opacity="0"/>
        </radialGradient>
        <linearGradient id="spk-far" x1="0" y1="0" x2="0" y2="1">
          <stop offset="0" stop-color="#2B2145"/><stop offset="1" stop-color="#171026"/>
        </linearGradient>
        <filter id="spk-ink" x="-5%" y="-5%" width="110%" height="110%">
          <feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" seed="7" result="grain"/>
          <feDisplacementMap in="SourceGraphic" in2="grain" scale="2.5"/>
        </filter>
        <filter id="spk-glow" x="-60%" y="-60%" width="220%" height="220%">
          <feGaussianBlur stdDeviation="3.5" result="blur"/>
          <feMerge><feMergeNode in="blur"/><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
        </filter>
      </defs>
      <path d="M0 300 C200 252 400 274 600 244 C800 214 1000 262 1200 232 C1350 210 1500 242 1600 226 V420 H0 Z" fill="url(#spk-far)"/>
      ${tree}
      <g class="spk-climb">${skeleton}</g>
      ${headstone}
      <g class="spk-grip">${bones(grip, 3.4)}</g>
      <path d="M0 352 C250 322 500 348 800 334 C1100 318 1350 348 1600 332 V420 H0 Z" fill="${NIGHT}"/>
      ${graves}${fence}${pumpkins}${embers}
    </svg>`;

  const bat = `
    <svg viewBox="0 0 100 40"><g class="spk-wings">
      <path d="M50 15 C48 11 46 10 44 11 C40 3 26 -1 2 9 C14 11 20 15 22 23 C26 19 32 19 35 25 C38 21 43 22 45 27 L50 33 L55 27 C57 22 62 21 65 25 C68 19 74 19 78 23 C80 15 86 11 98 9 C74 -1 60 3 56 11 C54 10 52 11 50 15 Z M46 12 L45 6 L49 11 Z M54 12 L55 6 L51 11 Z"/>
    </g></svg>`;
  // [top in vh, width in px, crossing time, delay, bob time]; smaller bats are farther away.
  const bats = [[14, 90, 4200, 1100, 900], [24, 62, 5200, 1500, 1100], [9, 44, 6000, 1900, 1300], [30, 120, 3600, 2500, 800], [18, 36, 6400, 2900, 1500]]
    .map(([top, width, cross, delay, bob]) => `
      <div class="spk-bat" style="top:${top}vh; width:clamp(${Math.round(width * 0.55)}px, ${width / 13}vw, ${width}px);
        animation-duration:${cross}ms; animation-delay:${delay}ms; opacity:${0.55 + width / 270}">
        <div class="spk-bob" style="animation-duration:${bob}ms">${bat}</div>
      </div>`).join("");

  const boo = [..."Boo!"]
    .map((ch, i) => `<span style="--tilt:${[-4, 3, -2, 6][i]}deg; animation-delay:${1700 + i * 160}ms">${ch}</span>`).join("");

  // Cinzel and Cinzel Decorative by Natanael Gama and The Cinzel Project Authors,
  // SIL Open Font License 1.1 (https://openfontlicense.org), subset to the letters
  // used here and renamed as the license requires for modified versions.
  const font = (family, weight, data) => `
    @font-face { font-family: ${family}; font-weight: ${weight}; src: url(data:font/woff2;base64,${data}) format("woff2"); }`;
  const css = `${font("spk-epitaph", 600, "d09GMgABAAAAAB0gABAAAAAATJgAABzAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnwbmiochRYGYD9TVEFUHACBUBEICus011kBNgIkA4I4C4EeAAQgBYNGByAMBxsHQVUHYtg4AGD5jEDy/6cDboiI9EHttgtFUXoyZTUlBiy3jHI7nrqlV0/dPpjHzWvXRjhOcIzfl3lRNxZwOV7hOHx073P+MBxSMZ/Cb/b79cUvdm9Ex8R8igJKXG9HH+qBkjI9U7bzqUu6pMS88CcjJJnlefrlu/O2ZfPzJrP/s6G0JkstTsViDIPQSAZhERqLMAz6LupKSZYdx3HCx/hEPLc8Ak1Lt6lHNGdzd5DkNoZHgAZKEqBogllCTCFKoTRGUKvb/9f+HapiLyL0xaE8T97e35h2m6VxUtYsCDwwjutwzia03Gyrx/BfAkxuYJ2FVhzK4isNgN6n0TClhZTcT0k9RwH8H7lZO5FmhlwVeBGtVIuKJXFyQox3YVu2PXP/9sT/XLPEboQpoAMGvxvVqUTt6zp1THd/X8pc/e9tpu2+XenQtJJDIDuIvZnLEPS0+nt7q9U/abU6EgZYI8tARwbRjFcYAu6MhFWAKo+rEBQNTa/y0mXSVWmxiuvCdRNbVsuGkehNKpIbWb97v59ZYHsqKW45w8GIE5zFERsS37v/+w+jABWARgIJSFKQ5kIeCwUiKJGHiipQTR1qakEdXWjCFDRjBpo1i8zZgLbtQHsqYY5oYM4YYBBY6JpHQ220A2t6+zqAhQEJBMrZ0NMBNKAABSMaMf7BjDEwuWY3xyJtJvIIarNog3teTrwIJuKy7kSmgN/e0sbe4T4NHb2exCjFrD5jgIY+obPPF5dDG7X6AJa7Vn9v44VccpNmMdexcZBclx0gKwhyev18D5DjNXYD0q/ShnqPYE1n19FOcf3DbzQCWnm6s6t74eRpd/MMJvUG1jycX3gth9vu9R1i9pIejAUXF6Tlli7yaep/7Z2fHT1MQSDI0R+PNAJ7IqkdqKMjxYbVxEqC3n55NMSdB3GheKeIDdGT0TQQnlH476VTEdnPjLG8KHvcmHRDBSFB+MZ7Aeyh2S3Jaq+ojqeQtkNR7DKCQk9V12b+w1BPcV0u7B4zYkyEtAD5uwsiFpJ+F28acwbNboCOpaVPZjNRg93/zOElp/Yg20zv2z1+HA/qSHijw5gQvLvp4w1P7yK8F5kkAUcjicrSRKsb5c++4h06L1aIJrqKiiv78mtakM44hbAgQrIE9KASokzLS27eScd6HlF4bPQSL6OmB/jx7gxLuEMolobdCxaxYY3fR4Y5aFxvKCBQmTRAkctm4pXtZz+SJR88r8vyJB98y4NGnJurFAehHDWsqO4iHXLzYdndwfBE3+4JhZ5D6g0m1fWYCZ6W6XwNtEPUuT06yHLZbNQZSQh0aZmIdMqYu+3q/2VHFbfRLChskWMxJ4RwWAGlI2Qz3ShkoGH158KauGrMAEWovZlDLaMaBqugNO44Bj9fKHPmTLv14ZcexWtpp50lsp2CjZpHt9ZTJRK3U1VdIAD56BaGtKsR2jAdn7KjMHYvwxqBa3S6pmSQhV4LgJiIOn3jZSymdw35//XzYuTGlU+MUiACy5qgtQuhD1f4mfaNySo2UpBHJhIxU4ILBewG6h7+efB2c/oXgM78tF7wTwHy7i7n82kSanLRahnu5gYDeaLuByxo+f3zaZJ2HMmbJrgdgXAR1s0NO/pr5RuKiwZyMvoAgaMtVAITJGKKxDtyQOUGMB7wjlRae1U1evnEhrIgt/LqMVzhqLA/DBUGVa7EKgJGUEHZPD6zWCYSEDLuwOrcSv6HNUSWr+p0yNqYP17ymmG+kqPh5HMqnPIuxYTS+mtuKYaP4j3UTMlWkYCXv5OyGJ18YYZvmXN7nq3UGiu+w30OJDdA5cY+fSthsdL7MYw2SHyK7HgjjGAs3eQmZkP3acCQR1eVUv+HCMdOo5olgVovKuJAXeCkvq4JM3o2bBjbsi/NIQOJKyZFELpClZEGABzjGwmhnoaEMaGgyCpTphDSF2hLCdNaqmbU1IF9ADDKYUNqZo+LjUVc4ISmPGOSx1MCGox3Z/TkLKPbH9YKlRgJTULhLPKfB5hTlVcAZsq9ThGy+oA3DkhHqMCuwCXKuHosiRkpyJaa/uxi8jhSDI7QJttEVQLM9mq7oRf5RNUqt6dWG1gDJWN5g5KTSwSmdm9bH4iPtuZGSJ+d/jaQXr3ZEqukltr3XAPFEDuCBgPGczxThgV1oNElDSXjl5j01XanPT1pbgEDSj6HKQCAdy3ZLB36pNSESVOmzdiwlU9Su6AU1InSAv5UlAKAy/si77DMaClD+RDjFOUAM0Vgry5po0FK555QCW2y475CASXuVQJm0PIhKT26JixZsY4cq0DFM4Mqq07hNBfF9Mw7lti12vAo4dQJOdDo2/ZkbTtFEciUNfVNmkWEeYQtItoy4lpFfGtIALEDOEuyEkV1XXPIlAVk2hKybQXZsY4csWdw1gwuf7ohFDSPrQiev5KygTSTVJ0F+g8OegnnOexvvf/hwSMvfXp9L69+wGEEeekdUwWbu7GpD8PzO2idM7FZvuw/cFYTM1pGpu1RUNOxsnOp4eUX1KxLjz6Dpv6Bw4b6p1bRMqjmrNygSatioLcnyf7DvW4nfyWxW81SsZDPZTPplDOmfqzOOKHAJASKa/AN5Q+ra+zcxi3cAPSQx/DIRFM0B5EkojHF0fSz5/dARlxd4QxcjtRcrJNNqWy5PDunOyyM3Zjwi10RsHqh0/4LDQdtVtAOZcxFujIGI9hHa8r+gcpAF3GNJ1ka72rSblJF0QH9xhf9PIxWmGcRNkHAhl3DqBQG8ZCgylomSa3UqizaT64H3kNwRKtsltXw1iuDHymZ8CULKvfV464H2kUw9eae+T3rgfdzVUEe66Os8QdZTSRvSHpJhMofZJoUd43HUVjWulJhrkhT+sw4dQsXtp7t5oKAY05ZnxptJnx1ws5hMly5byNiCIIEWbltHke74jjQcCDCFCikukIIEpgCJLlPvHcmbQ/gApSQKM9xD5o7E3OQqUtQ0vShP3dNgRhDyDAFLB0fr8xuw8WVLkII9g4PirQIMx5DZqssgj56R0ysdlEQAARmsIAiRgAa1MXeJajKIUESw29PrMAxiD6s3Ts/EHMJcO2DOSElAaRIRgVQAuGMRwJ2/mSsLuMcQ1ddvwfK2WXsF5ApeZEJMXRzn1FzQARSIPeUJLWAS2Am2YZikiOlsIjcoC/feFbQgwfRKKoCoKOXzpI5f8H/ECbxOJo5Pf8ugdGQwysNYvgoSYFYmV/413g1BFmAHJde0jEBkOQJ9AvM3/icex2g4aenNQISQ9MvtCUymTOT5rafCxhKUFxII9pK8TZZCIXjRO+J/5sTFUftmVAcqqlhKFGlhmzgVyWj12obrGXM0s7a5UwRQxe/I+Ws9kurds+DfB/oqA7gj9ppl90TTzrvZXFbJqelqqNAXMJR6VziU8jxc2bZPVD9bDlCjcjsbgAX4j1jGrsbQOkHEWwf+otZAbxhGr4DcF0kRk1/no3ajAURypQ1oRfmKaEbNmVLd7W1QbPmH5FxHeWOIr2+DO3gAgzdn0kR3eRxcWoUk6kGzcniK8BC9ae6C5ChvkctD3ozFL4Vqzh0lwK1V1tSRnX7pAJZNLcx4VU6Be0cRsOVfwNGmnWEiCU1lK8yGgH1jjqGPpEgbigP1PlwMuYdMDm1rUAdiUX67zGCtZCnTexSLMgXpoS/aoBBb4RUCsIY3d+iM2TVP7p5OYZJJCiDqQs/H5x5CYYAU3Nx3RoHYeGgwrx5JtJjqPbrbmWs6goQ2dYRnFVICg3VXrISjnGNLEvRyBokAekyfECJ+PWCICxr6f7cRXFmT0tPg0ECnDJ3HI/GcKNg+A4nVR70Eh6ouomXu+ZbIpJox+7YXTA7wsmAHJAzdUKzL0OQ4EKsk1AEYZf+TbWeu9T1N7YlAmirMNO0hRvq2enx83QzLIevggC4UN5ExW6/B0JDskZQPJNwUpBIjRGRZsco7NQPKkH0EfuFxa6W6aREi5mY7hBuHrv5lvZWD9zt82vYLalXYULEKFso15p3AHddEB5Jhzm2gUaUwjfbsSdn0nd173ywRAVjD67smgfWILEdWHraDExyf2mZu2xMwYULzTm0B+o/rNF9+PbKeKQPqa2rbkK+fbQe4w+9X7usQK3gGj/H4Re+R6GM5GvBzD9axWEwKKVaVq0yvGYQwyWfM2+flNE0b2Sf+3k3ddgHrWq4KWj3STcF/Ku2OmoP7rC4QU4akwDJWUIgKh101xIszftVxpLPQElC7Jn2WBpShOwfA7E5QCdnzSe9sfJENkGTboTBtIT0DzOt5gQY6epFXqnPPDueJnikAKTry+JM0GsL07gT+e37yeecz+3iN6aK9EWdTK8TpMpkpyek4wlVI9QHZ84pTJ0pK9Rbu2Sj9PelUR1iv7dV/2tYMmYStsP1YQKstx8DdcRRN9VRmyHoo7ml0iHWmq6P1HD/ux2goWNe9sSFHa+B+e0YkTVhfmV3FCWvdC8P/c/Jte/hiJ4vF5f3f0j9SEyz6WzHGvr5f3BD+UtX8PvE2dH3ysrX7hH6VANnZnysRe3rmnc+w5/buRECDJ8tmXrQe5YbKIFzSHVylDaIRM4KZ5bysscYPx820ptZoAuCyE4cGivnw9abZ/mcN08cSd527tn4p0/tmy8fPiyMR3N3CpetRTHXnj1zvbLWuDpm1dfsjqfT730BLsJq7jxJNlo/q4g+/xi7+9nTcufZxZ2BvhxUbHS+uUOU9jEDy2NJlE8rAXK+qpYTdC7Lk95+pmYVNEkWd8EXpn6JF4IEOMeg4J3H9x8/zuccefbo2bPYyXSHM+8zrXum2GHLGLcE9DWOwv/N0IEMEvux8vmefrnQtzDH8USyT8BhRo8ShyNi+OkuRb7/Tsm1tU+Tt33Z+/YsBokeIiCBw3heXBDS9LdXiVkj71IPkzMfiTPEqv0rn1sO0AAJEBl5H+6cwbYGDeVtQl0v7HN5NnZ3Tt64zz3VPH38Nup6kls/y+moHjDLVvr95at7rEbM0CFV9zN98Kd1etrpeWsp8clfKcVfi6MsydHJVaOSM6fyc3RCifJ/71InogveFODVg04b/umbAlT4rAmxxCNduDcvfiqKCX199hydFQET+EoSTyVIJR+YgKzgeXUWy7fyVa+1i9yLmMLbIqI2u7fnPIWBmeE+rOApr8/nRnGvuE1kIvR60jBGri/1XLLz9xnDbWQ9hry9jNrfMXgP/AKG3mHGpInff4pU9IcrhmqF376fLdu2CfyBNE9vROA1ChmSuDRfj+0fzRD5wdWHvTA6pm2DEd4huknVa4G59VN9CGVa081mrKDW88IgIpyCxpmz6bpOhLEhdmXZPQzHw1rC2GRZEW8linfKemS+G0V5GVuSuO0Xa28szPnPdkc1J8Y0JxbYGOpsLaQWlZHs8IlhOA7dN1v8qK/FR2FqbAgiMF4Or7NMJhYByKZpm98xBao6zflIDTNZemGNHMiOGaYz2+0CT0oSmlO+K3FyPJ97AUdu9O52T9rU2cmMdfb27bokdhU6YOiwlK4KBIghuUF+Z8MPM9MtwewcBw0TWmR5Vq4LLUGw4WjI8NbSLBbIFeZyB1RWMglO4dubQhj5yzD8MLMwwxr90Xi1JF3k0BXatsNfC1+4/H6NbGUssuVao09Z3fahZZj4f1sVwq3313v3v80tYeEquSYxYaWAwBSVzHuJ3G4DdEAWoN+IzFG/1kudhXK0JcXFyhLEZR06//IykVGA185qbRcZGf+2bdwP15LS1GprpueBXp47biTy8JKPxPaMrCyzM+MHMqQpGuYdPzHtRDchbhW3jG9eyUx+4ZknN27KN8wVB7fzk/Um4XkxYK5szluzODp6KoLOcMW1NZ8kZ64LbcK8KmSN/PivUfLJwjOfRPU0Lx0T9/wIrIR+ZWnfg4wji7f/NvXgkw9YdXfYcGAjSXLafu6Y8y5V/PB7ycU1p5ywZh6XjPHt8UXIZ66LItFdBDTg1K0/vvh8KRQVvWTOnbzR3Rb1wyLPlMpplQlTtH+teO9wycwZlSxgAPoOsQT+rzvxFfhTWwILZSFgQkxTWYVIZWD6wSZNA8aug7IjoWn5xfsrV+86E05DVxDQIPrkx9gEPPhhiPr7v723/lgmm4eFhDB++ZKPT0YBDRAN0cLPwIJ/xapqbW4gvqIVhnT25T6fbfmQvr1yMHYR9XUap7ZPbzUEFbnTbfa8GQGFCtMGM0oDpBU+D7n73S3SL6mi+xzRA9EYX/RClLsnbcfW36dlCaeeTew0IzIu+lNc324y4ILoOLJgTz2dLpwuIlwSfisZL0e+pA4zAiZwxkKx93DKaAGYgMzW21HxRY9E8PEomOhhmTWYvO8MMeE+euRhTZOow3J0Vgz+HsFhFrc0cfHQsSIwYMk5UzvBPeDeHissEzb9X6FGQMc4YzG9RAyLA3RAat5tAX7AYF/OKAfLWcfdFeP+HNpDhI4VLGZrQOgYbhjdl/ITF8zwjRMdPidMLibwymMihTL5QMeQiTc+Igl04GdQjsAp42EMmPtQ2/JjOm/peVKGNhiNNcJVnjXmNqiQkpm259IVFDIkXkhoYe+7ESR5/S13vxtzO0CEcVihPUQMi4uRqNNIvBJOYXIgg8DumqW/U0V5C9LvSP47LWRf3f1eheZncYaA/blo4EyAVgNHgc2KJsfpuRR5AAELeHVFw/T/dllkiYQrpcXbysPK6wMJj9PWo+OFp2sCc/Lfst1QJkUV1XGBDaihSUKRlJAszwfgaagIJdsqKJTTZXoEYcD5P6YllBEN4YD0ZY0pzQO/tDzPIeVQzfxpvMoCZMv074KlZQYE4RDD2C/zf76XMD9gnJ02qUrao9UWxjKtYBwp66CuVwaT3K8onGF3FE4nQU5HKJjusBfMmAXwNBQ0NkyQGth8qd2eESSYJHQ3bKzZlJ7OoKnk5TIIYEbjpnSYZAweVsDoGGo/0s/ceu0hTfBBqCfdGL6VmS4SqEf+WJz0VOgbF1M0lhGDKvN1kanmloYpuak/zU4gsexPPT+43kxOZmF1vOlh5/eHgkSK3ANunNthbHP4Zzcn+CkGpwMyNleixEcDGge/3THocBGiIlFhYj2dgS+TdZQjRh3WmMUVKpJu7g3hK6AV918+IVuWxED10p6Cw5EtJCgYgvoV566mvR7i/3D01bc/R9z+fZh/ULB7TwQVXUZAg6iTv0xd8svO2CfClnRG1bxXVqXcvNHNdB/bD/v2UUlO8F0058IO0dVHt9e8svl3WPkKhYype+PFxIqWcBo6iYAK/DPLfDAH3hqKtQawJN+CQ85T6mDUx7VmA30QMYzqLyef2MLZKI8CBqAniBk7+siJLcG/ej+OgTgI6BCdmP9jhQZh9JiV9XWtHTeLylfyYxX82JxYfi7tRlL8eXbxnLBiaCybddD+6LGqXTQMXqwpeWfllCH3V167qi9pCWhBJ1ygavZr/of4R64fLdMyoxv0oBUu2WH2LE/cQ18MMWUnNIFXPKxsh9Q9nBHOB8A9AF6bVm7TjfH/NinDp2+dLS4SO5/KBEGiSlShya6VLPUJJI2l9QZl7bg68scFobP1HatTOgdNTwT2CZbFxggJSOXzKN60V+sCC6U231Beh7d4vsVaurDd+2buJGk9q4p/n7qeFJgsQVGBrCnTaE/u19Rr1y52TgLPWpttI9aT2BCXBzw5eVQpHhMfsCQfTF6TeO4nVf64nFhKVEG1moXkxKdKT43GEX+qVovF1Z5diz144bheAejYeA0OZIYZ01wa9uNU1tIgVTVhYEA7Xs1VBWomxH3iepHOgjCE8e0kaMFbJHDvropLTGUsc9NUqeDFtARfGQuXUAlt5NmJPEtpzxEJhbP0DYY+cbOD34WvWpcxgZK9O2x2K9tLkZOyIVTrIDQYCjiGs9MHsfMCBOBhVhfcTjHjEWNSy/ufIhX6fMVLtbnf3syWHVsc0edH1cTP73a6KXfzO7otpqocV+wIojTTuoVT3OX6eFO+lnD1ErVW8miGrI5j/wMNf1quIvrhx/T7T79sym9ndYa1i5qzPZI1XzUnjSAcDVK7r73TVnBGtjeN35ezWjCdGgzfRnzsZNaWYLXgc4ZoyKVeg+is9ao6n3AIVzdeXhwDWaadSrdFKdLEKmmhpMaWnXhXazTU/p0n6wrOK7ZgKN7CshEOjiO7yuD4YnuWbOy1B38sXECE9Txcn0jzxhThcYKNoscpUJDu7TjeMTj8ELDc4z1lTyAK3yMPxAvGaVMo70+ms2g7ThFeDV4dYqNA56Z4SIC1i/zZPd9i2+dpiSEstovs6pvU+ph1DFKqwpnYUXAgwqeyt6/IEqYiKEeHyEpOF7u2WGFt+vRs5t4QctJq0+iqylhFfnZewEivTG2XmVzJXqQJn8NpNmnmsJ2lc213gPEo5eVmYlK6VUWYZ2BfHVen2yP+LdrRTNRNsFRGljZiDHmlMdcVOVb+TGNDkWseQqRIGJISx3pCnra1N+FrG+5IxEIRr/+GUHj5cogz3ezOUxK9HbHeYr07tUdpL1vS5Xs7d1LdO7ndvvLFNmvR/BaPluvuyPJE9xZ36Yfn2R2OudW61xvkCb0V7rqsC3JDapqMZeiDv6nd09bhDp0VMXk2NEggBZ+JrNbrf71h2yUSWxyTq7t2qJKVdCApxTy/v/Cy4upHPF0YXuOzmskvKce2zs1FvE9G/B6cF2hkudgwV2tvKFPbjk47OtBG8FSxDGS5mwi8FPzCz/XwgwWiOcrg6S+ejAIJ9Vp9S5pa05Ils0YG+M2zFrVQ+3I8nuLKQmtqmgqvSq9+vnvaSLI9LTPT5Mwsixiv3rqWMgsR+uLiQmVxHPbLrXR4/beQT744XyNhW/cvENKNQoUppaDol5E6MMbDGBiyPo8j4b0rVhcoDPm+2Efo0sTsCv0E8y+sl1saWvh289uf1jSkNUk0bbvDxQdSVG2KNHPYTdKjSng1XZGo2PVLF8mqY9WukoznzBmf5Plttv4sMwU9rJPKTWnuG2cq1k38Wr69psK/vNUZvl9lJGD/p6gjIY9RH2PBSSytGWf+OCX6RXVqVZ00AKw0T+FEtdaZko1kGom8uiA4oY0b4OjWP+2XssdKs4stdZUle4g6iYLBi5fNFAoMbipKLPeufS0w+ramlkugG+CsjoI3jvMBgTpV4DJQHqytuI+nqwhfR4MvbBnylzf95t7zbZxU0l0lafuFLutzrX4ZAUTDj8c/pCa79L8miG8Bv+vruYC/f31HGeu6wqEQ94FBAwr/Jm3qTzpSLrPuAQrZu1fY78x764XaEzaQrZzsmXKu5zPVx4RzMDvYjYiQNC+FDviFx5j8BLkuI/LDdy8PBLgsxIMMzJRq5In4SbpaPngVYxMHs0CjBB32jganrVgtvSVMa4XRLApZVz87s+8P3IH7kHrLecOWU+dfoPnCb15+RQQuY9YpWCvwX4X0AgyxUA174QiRLW0mgRl2E292coerXE8x1Q+ETb45dTrtasrZRoafUKFbmPMCqU74bkjvvXe2v00xl5cE/PPpYwLDK3hNxk55asev1WJhGwilI4Hv4PLQYj/DhzY2/ZK3ZfJOHNrby3UYFJ8fCwMz/x+KwfkLmzocaildlgOdukzVo1mjJn0SzJv9tDY9DqGh/QPNOkwjoS2d4FaPTi2w38S6p9/2rUmnHr0SDKGsfbq4ZLEZMz5p1vr0+/lkeqdTuyzXlHRsFCycVKplOdOketDVt06tpkpwpGsjeO3YNKnWoFG/Nl49nBoQuJt16vCDnjYbMgvjbw9K7EfOwNWn2QALxgcehHP7efUSgIpvk+CnLl1KL3dpIC6boM4u30h1+DMvFv7glwAAAA==")}${font("spk-title", 900, "d09GMgABAAAAAANUAA8AAAAABhAAAAL/AAEAgwAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbgRQcMAZgAEQRCAqCEIICATYCJAMQCwoABCAFgzwHIAwHG/QEQK4GY2Ml9pspIpEKhDpnv9fYYf6/IKK6KrK6V70HYtbgia+bPbwB/GR8xbmY28QamndPMstioWme/cR+YlASpZMyDR6+na/qgkgiyQaeDjaiMY6G0n5XJsPf6/9C+9pFCbzu5oeyhI6Qef48sS5y4MiatyTxQGphEFIgkKXb1EcvYWBp1aJtENANAChCaIQAwxTetBkZn07/zCrq6N96eyN9OsACAXJVtDaiAAFCp4BiGEN0owPR5+xe2r6JMowOxjFRNNCPKzCAUBSNiauQYmWbOIKqVAJtLe/TFmMF9ahsGOJGVVlskgnAACNWhIwjK5GjgaZy838XtE/aYRCAetVRYBQFFNBAPxoB/eicgS1bCowWigLxe5aXggAAEBLoCUAHYAusQTKGegwA/QCAoqhmO6K3vW1eupGZa/90ye0Fd8y35pd0aQuGDpyfYbXyuGFId3PGMeZvt48z25vvzU++myv3T0fqDx7IgvuGmHcNXVdnvneP+f+u+4sePDM/WHR/yd2Fr2tNiyNNi/un/kKvxIXHhse5xzKf1qqU4Q4rDs/M626kDu5uuO9Mit/hF/IdN120Cm8pWL+4OG/rtxEq+EVZWQ7mSsgoiAu0639eO8spFxzOKNvcsuvZycVPT2Y+PVm55UDllkl5NJyB5ZbUV3WMMfFZK1WXESAW/c7PKSvq6f/N1l77CHCVyO0A7/9k/X/3b24m7RZgSwEQ/JK36n29OxMIzKD7jQwc8hfL2mLGEKArJAFQQAgIxgAANnLxpNoBexlmKAbZi0oP56XWkbqilen+r7I2IMVzQRIvGY/DVQA7mFFcOXPhapREuoIupkMhEEUX0YFJasRs5Chm8eRMpIIyyLJQhkTGTEaZxlNwgVQohzIVZAGRSKy48/4RBCYK44m9odBQmgQhgReQzlMIoSvkKIV0mSeUyXlIDLhw5MyZKz/JboAz5zqvRgrmDqqcO/Lgye+1IYCrSraFeh7DRnKuXLhx5cFPsGM8ACzDFeKDrKX9+lIA")}
    #spooky-egg { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; transition: opacity 0.8s ease; }
    #spooky-egg.spk-leaving { opacity: 0; }
    .spk-art { position: absolute; inset: 0; }
    .spk-close {
      position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0;
      display: grid; place-items: center; border-radius: 50%; cursor: pointer; pointer-events: auto;
      border: 2px solid #EDE4CC; background: rgba(14, 10, 25, 0.7); color: #EDE4CC;
      animation: spk-fade 0.6s 0.4s ease both; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    }
    .spk-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
    .spk-close:hover { background: #D2601A; border-color: #D2601A; color: #FFF8EA; }
    .spk-close:focus-visible { outline: 3px solid #D2601A; outline-offset: 3px; }
    #spooky-egg.spk-leaving .spk-scene { transform: translateY(12%); transition: transform 0.8s ease-in; }
    .spk-veil {
      position: absolute; inset: 0;
      background: radial-gradient(ellipse 120% 90% at 50% 30%, rgba(24, 17, 48, 0.8), rgba(11, 7, 25, 0.92) 60%, rgba(6, 4, 16, 0.97));
      -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
      animation: spk-fade 0.9s ease both;
    }
    .spk-moon {
      position: absolute; top: clamp(40px, 9vh, 100px); right: clamp(24px, 11vw, 220px);
      width: clamp(68px, 10vw, 140px); aspect-ratio: 1; border-radius: 50%;
      background:
        radial-gradient(circle at 63% 30%, rgba(160, 140, 100, 0.32) 0 8%, transparent 9%),
        radial-gradient(circle at 34% 60%, rgba(160, 140, 100, 0.28) 0 12%, transparent 13%),
        radial-gradient(circle at 70% 70%, rgba(160, 140, 100, 0.22) 0 6%, transparent 7%),
        radial-gradient(circle at 38% 34%, #FFFAEE, #EFE2BD 55%, #CDB98A);
      box-shadow: 0 0 40px 8px rgba(255, 240, 200, 0.32), 0 0 160px 50px rgba(255, 214, 150, 0.16);
      animation: spk-moon 1.8s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }
    .spk-scene {
      position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(220px, 44vh, 440px);
      animation: spk-rise 1.1s cubic-bezier(0.16, 0.84, 0.24, 1) backwards;
    }
    .spk-fog {
      position: absolute; left: -25%; width: 150%; bottom: 0; height: 30vh; filter: blur(8px);
      background:
        radial-gradient(ellipse 22% 40% at 18% 72%, rgba(196, 186, 232, 0.2), transparent 70%),
        radial-gradient(ellipse 28% 36% at 52% 82%, rgba(196, 186, 232, 0.17), transparent 70%),
        radial-gradient(ellipse 20% 34% at 84% 76%, rgba(196, 186, 232, 0.15), transparent 70%);
      animation: spk-drift 12s linear both, spk-fade 2s 0.5s ease both;
    }
    .spk-fog.spk-back { bottom: 8vh; animation-direction: reverse, normal; opacity: 0.7; }
    .spk-climb { animation: spk-climb 1.3s 1s cubic-bezier(0.3, 1.25, 0.5, 1) backwards; }
    .spk-forearm { transform-origin: 80px 62px; animation: spk-wave 0.55s ease-in-out 2.2s 10 alternate; }
    .spk-grip { animation: spk-fade 0.4s 2s ease both; }
    .spk-eye { animation: spk-candle 1.4s ease-in-out infinite alternate; }
    .spk-pop { animation: spk-pop 0.75s cubic-bezier(0.3, 1.5, 0.5, 1) backwards; }
    .spk-halo { animation: spk-fade 0.6s ease both, spk-candle 1.7s ease-in-out infinite alternate; }
    .spk-face { animation: spk-candle 1.3s ease-in-out infinite alternate; }
    .spk-ember { opacity: 0; animation: spk-ember ease-out infinite; }
    .spk-bat { position: absolute; left: 0; color: #120C1E; animation: spk-fly linear both; }
    .spk-bat svg { display: block; width: 100%; height: auto; fill: currentColor; }
    .spk-bob { animation: spk-bob ease-in-out infinite alternate; }
    .spk-wings { transform-origin: 50px 18px; animation: spk-flap 0.15s ease-in-out infinite alternate; }
    .spk-title {
      position: absolute; left: 50%; top: clamp(60px, 14vh, 160px); transform: translateX(-50%);
      width: min(92vw, 720px); text-align: center;
    }
    .spk-boo {
      display: block; font-family: spk-title, Georgia, serif; font-weight: 900; filter: url(#spk-ink);
      font-size: clamp(72px, 12vw, 150px); line-height: 1; color: #EDE4CC;
      text-shadow: 0.04em 0.035em 0 #D2601A;
    }
    .spk-boo span {
      display: inline-block; transform: rotate(var(--tilt));
      animation: spk-stamp 0.42s cubic-bezier(0.5, 0, 0.75, 0) backwards;
    }
    .spk-sub {
      display: flex; align-items: center; justify-content: center; gap: 0.8em; margin-top: 0.7em;
      font-family: spk-epitaph, Georgia, serif; font-weight: 600; font-size: clamp(14px, 1.9vw, 21px);
      letter-spacing: 0.14em; color: #EDE4CC; animation: spk-fade 0.8s 2.5s ease both;
    }
    .spk-sub::before, .spk-sub::after {
      content: ""; flex: 0 1 64px; height: 5px;
      border-top: 1.5px solid #D2601A; border-bottom: 1.5px solid #D2601A;
    }
    @media (max-width: 600px) {
      .spk-sub::before, .spk-sub::after { display: none; }
      .spk-sub { text-wrap: balance; }
      .spk-moon { top: 20px; right: 76px; width: 56px; }
      .spk-title { top: 17vh; }
    }
    @keyframes spk-fade { from { opacity: 0; } }
    @keyframes spk-rise { from { transform: translateY(100%); } }
    @keyframes spk-moon { from { opacity: 0; transform: translateY(40px) scale(0.92); } }
    @keyframes spk-climb { from { transform: translateY(200px); } }
    @keyframes spk-pop { from { transform: translateY(95px); } }
    @keyframes spk-wave { from { transform: rotate(-20deg); } to { transform: rotate(14deg); } }
    @keyframes spk-candle { 0% { opacity: 1; } 35% { opacity: 0.78; } 55% { opacity: 0.95; } 80% { opacity: 0.7; } 100% { opacity: 0.92; } }
    @keyframes spk-ember {
      0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 0.9; }
      100% { opacity: 0; transform: translate(var(--drift), -150px); }
    }
    @keyframes spk-drift { to { transform: translateX(8%); } }
    @keyframes spk-fly { from { transform: translateX(-15vw); } to { transform: translateX(115vw); } }
    @keyframes spk-bob { from { transform: translateY(-2.5vh) rotate(-4deg); } to { transform: translateY(2.5vh) rotate(5deg); } }
    @keyframes spk-flap { to { transform: scaleY(0.3); } }
    @keyframes spk-stamp { from { opacity: 0; transform: rotate(calc(var(--tilt) * -2)) scale(1.6); } }`;

  function play() {
    const style = document.createElement("style");
    style.textContent = css;
    const egg = document.createElement("div");
    egg.id = "spooky-egg";
    egg.innerHTML = `
      <div class="spk-art" aria-hidden="true">
      <div class="spk-veil"></div>
      <div class="spk-moon"></div>
      ${bats}
      <div class="spk-fog spk-back"></div>
      ${scene}
      <div class="spk-fog"></div>
      <div class="spk-title">
        <span class="spk-boo">${boo}</span>
        <span class="spk-sub">Happy Halloween from the Shiny team!</span>
      </div>
      </div>
      <button type="button" class="spk-close" aria-label="Close the Halloween animation">
        <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M7 7 L17 17 M17 7 L7 17"/></svg>
      </button>`;
    document.head.appendChild(style);
    document.body.appendChild(egg);

    let done = false;
    function finish() {
      if (done) return;
      done = true;
      egg.classList.add("spk-leaving");
      setTimeout(() => { egg.remove(); style.remove(); }, 800);
      document.removeEventListener("pointerdown", finish);
      document.removeEventListener("keydown", onKey);
    }
    function onKey(event) {
      if (event.key === "Escape") finish();
    }
    egg.querySelector(".spk-close").addEventListener("click", finish);
    document.addEventListener("pointerdown", finish);
    document.addEventListener("keydown", onKey);
    setTimeout(finish, DURATION);
  }

  function onScroll() {
    const heading = document.getElementById("in-closing");
    const pageEnd = window.scrollY + window.innerHeight >= document.documentElement.scrollHeight - 2;
    if ((heading && heading.getBoundingClientRect().top < window.innerHeight * 0.25) || pageEnd) {
      window.removeEventListener("scroll", onScroll);
      play();
    }
  }
  window.addEventListener("scroll", onScroll, { passive: true });
})();
</script>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-10-29_shiny-python-concurrent-async/feature.gif" length="193148" type="image/gif" />
    </item>
    <item>
      <title>Shiny for Python 1.9</title>
      <link>https://opensource.posit.co/blog/2026-10-29_shiny-python-1-9/</link>
      <pubDate>Thu, 29 Oct 2026 00:02:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-10-29_shiny-python-1-9/</guid>
      <dc:creator>Barret Schloerke</dc:creator>
      <dc:creator>Josh Taillon</dc:creator>
      <dc:creator>Carson Sievert</dc:creator>
      <dc:creator>Karan Gathani</dc:creator>
      <dc:creator>Shiny Team</dc:creator><description><![CDATA[<p>We&rsquo;re pleased to announce that <a href="https://pypi.org/project/shiny/" target="_blank" rel="noopener">Shiny for Python v1.9</a> is now on PyPI!</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pip install -U shiny</span></span></code></pre></div></div>
<p>The highlights:</p>
<ul>
<li><a href="#concurrent-async">Async effects and outputs now run concurrently</a>, so one slow <code>await</code> no longer holds up other sessions or other outputs,</li>
<li><a href="#sidebar-landmarks"><code>ui.sidebar(role=)</code></a> makes a sidebar an ARIA landmark that screen reader users can jump to,</li>
<li><a href="#download-buttons-in-express">Express download buttons take an <code>icon</code></a> and other attributes, with no <code>ui.hold()</code> needed, and</li>
<li><a href="#updates-from-background-tasks">UI updates from background tasks</a> now reach the browser right away.</li>
</ul>
<p>This release has a few breaking changes, so please read <a href="#breaking-changes">Breaking changes</a> before you upgrade. Full details are in the <a href="https://github.com/posit-dev/py-shiny/blob/main/CHANGELOG.md" target="_blank" rel="noopener">Shiny for Python changelog</a>.</p>
<h2 id="concurrent-async">Concurrent async
</h2>
<p>The biggest change in 1.9 is under the hood. Until now, one lock for the whole process ran reactive updates one at a time. If an <code>async</code> output awaited a two-second database query, every other session in the process waited too, and so did the other outputs in the same session.</p>
<p>In 1.9 the lock is gone. Shiny starts each invalidated effect as its own task, so while one async output awaits, the event loop is free to run the others:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">shiny.express</span> <span class="kn">import</span> <span class="n">render</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nd">@render.text</span>
</span></span><span class="line"><span class="cl"><span class="k">async</span> <span class="k">def</span> <span class="nf">sales</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="k">await</span> <span class="n">db</span><span class="o">.</span><span class="n">query</span><span class="p">(</span><span class="s2">&#34;sales&#34;</span><span class="p">)</span>  <span class="c1"># 2 seconds</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nd">@render.text</span>
</span></span><span class="line"><span class="cl"><span class="k">async</span> <span class="k">def</span> <span class="nf">forecast</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="k">await</span> <span class="n">api</span><span class="o">.</span><span class="n">forecast</span><span class="p">()</span>  <span class="c1"># 2 seconds</span></span></span></code></pre></div></div>
<p>In 1.8, this page took four seconds for one user, and eight seconds for the second of two users who clicked at the same time. In 1.9, both outputs finish after two seconds for everyone. The rest of how a session behaves stays the same: input changes still wait until all of the session&rsquo;s effects have finished, and outputs are still sent together.</p>
<p>There&rsquo;s a lot more to say about this, so it has its own post: <a href="https://opensource.posit.co/blog/2026-10-29_shiny-python-concurrent-async">All Together Now: Concurrent Async in Shiny for Python</a>. It covers how the new model works, why concurrency still needs <code>await</code> (synchronous code still blocks every session), and the changes you might notice in an existing app. Two API changes come with it:</p>
<ul>
<li><code>reactive.lock()</code> is now defunct. It no longer locks anything and emits a <code>ShinyDeprecationWarning</code>. Please remove it from your code.</li>
<li>The new <a href="https://shiny.posit.co/py/api/core/Session.html#shiny.Session.run_once_when_idle" target="_blank" rel="noopener"><code>session.run_once_when_idle()</code></a> runs a function once, after the session&rsquo;s effects have finished and its outputs have been sent. Use it to change reactive state from a background task or a custom timer without changing a value that a running effect is still reading.</li>
</ul>
<h2 id="breaking-changes">Breaking changes
</h2>
<p>Besides the concurrency changes above, three changes may need an update to your code or tests:</p>
<ul>
<li><strong>Sidebars render a <code>&lt;div&gt;</code> by default.</strong> <code>ui.sidebar()</code> used to render an <code>&lt;aside&gt;</code>, which is a <a href="https://www.w3.org/WAI/ARIA/apg/patterns/landmarks/examples/complementary.html" target="_blank" rel="noopener">&ldquo;complementary&rdquo; landmark</a>. Now it renders a neutral <code>&lt;div&gt;</code> unless you set <a href="#sidebar-landmarks"><code>role=</code></a>. If your CSS, JavaScript, or tests select <code>aside.sidebar</code>, select <code>.sidebar</code> instead, or set <code>role=&quot;complementary&quot;</code> to keep the <code>&lt;aside&gt;</code>.</li>
<li><strong><code>near_points(add_dist=True)</code> names its column <code>dist_</code>.</strong> The docs always said <code>dist_</code>, but the column was named <code>dist</code>, which could collide with a <code>dist</code> column in your own data. Code that reads <code>df[&quot;dist&quot;]</code> from the result must now read <code>df[&quot;dist_&quot;]</code>.</li>
<li><strong>OpenTelemetry <code>reactive_update</code> spans follow each session.</strong> There is now one span per session cycle, from when the session turns busy until all of its effects (including async ones) have finished, and it carries the session&rsquo;s <code>session.id</code>. Before, one span covered a whole reactive flush, which could serve several sessions. If you have dashboards or alerts built on these spans, check them after you upgrade. Effects without a session no longer have a <code>reactive_update</code> parent.</li>
</ul>
<h2 id="sidebar-landmarks">Sidebar landmarks
</h2>
<p>Screen readers let people jump between the main regions of a page, called <a href="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles#3._landmark_roles" target="_blank" rel="noopener">landmarks</a>, such as the navigation, the main content, and the search form. A sidebar often holds one of these regions, but Shiny had no way to say which one.</p>
<p><a href="https://shiny.posit.co/py/api/core/ui.sidebar.html" target="_blank" rel="noopener"><code>ui.sidebar()</code></a> gains a <code>role</code> argument. Pass <code>&quot;form&quot;</code>, <code>&quot;search&quot;</code>, <code>&quot;complementary&quot;</code>, or <code>&quot;region&quot;</code> to describe what the sidebar is for:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">shiny</span> <span class="kn">import</span> <span class="n">App</span><span class="p">,</span> <span class="n">render</span><span class="p">,</span> <span class="n">ui</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">app_ui</span> <span class="o">=</span> <span class="n">ui</span><span class="o">.</span><span class="n">page_sidebar</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">ui</span><span class="o">.</span><span class="n">sidebar</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">ui</span><span class="o">.</span><span class="n">input_text</span><span class="p">(</span><span class="s2">&#34;query&#34;</span><span class="p">,</span> <span class="s2">&#34;Search penguins&#34;</span><span class="p">),</span>
</span></span><span class="line"><span class="cl">        <span class="n">ui</span><span class="o">.</span><span class="n">input_checkbox_group</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;species&#34;</span><span class="p">,</span> <span class="s2">&#34;Species&#34;</span><span class="p">,</span> <span class="p">[</span><span class="s2">&#34;Adelie&#34;</span><span class="p">,</span> <span class="s2">&#34;Chinstrap&#34;</span><span class="p">,</span> <span class="s2">&#34;Gentoo&#34;</span><span class="p">]</span>
</span></span><span class="line"><span class="cl">        <span class="p">),</span>
</span></span><span class="line"><span class="cl">        <span class="n">title</span><span class="o">=</span><span class="s2">&#34;Filters&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="n">role</span><span class="o">=</span><span class="s2">&#34;search&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="p">),</span>
</span></span><span class="line"><span class="cl">    <span class="n">ui</span><span class="o">.</span><span class="n">output_text</span><span class="p">(</span><span class="s2">&#34;summary&#34;</span><span class="p">),</span>
</span></span><span class="line"><span class="cl">    <span class="n">title</span><span class="o">=</span><span class="s2">&#34;Penguins&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span></span></span></code></pre></div></div>
<p>A landmark needs a name, so Shiny labels it with the sidebar&rsquo;s <code>title</code>. The sidebar above renders as:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">div</span> <span class="na">id</span><span class="o">=</span><span class="s">&#34;bslib_sidebar_363556&#34;</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;sidebar&#34;</span> <span class="na">role</span><span class="o">=</span><span class="s">&#34;search&#34;</span>
</span></span><span class="line"><span class="cl">     <span class="na">aria-labelledby</span><span class="o">=</span><span class="s">&#34;bslib_sidebar_363556-title&#34;</span><span class="p">&gt;</span></span></span></code></pre></div></div>
<p>If your sidebar has no title, pass <code>aria_label=</code> or <code>aria_labelledby=</code> instead. Shiny raises an error if a landmark sidebar has no name at all. <code>role=&quot;complementary&quot;</code> renders an <code>&lt;aside&gt;</code>, the other roles render a <code>&lt;div&gt;</code> with that <code>role</code>, and the default (<code>role=None</code>) renders a plain <code>&lt;div&gt;</code>.</p>
<p>Two more accessibility changes come along with this. <code>ui.page_sidebar()</code> now places the whole sidebar layout inside the page&rsquo;s <code>&lt;main&gt;</code> landmark, and navset links now have <code>aria-controls</code> pointing at the tab panel they show. These changes will also be included in the next release of <a href="https://rstudio.github.io/bslib/" target="_blank" rel="noopener">bslib</a> for R.</p>
<h2 id="download-buttons-in-express">Download buttons in Express
</h2>
<p>In Express, <code>@render.download_button</code> places its button for you. That&rsquo;s handy until you want an icon or a different button style, since there was no way to pass those along. The workaround was to wrap the render function in <code>ui.hold()</code> and place a <code>ui.download_button()</code> by hand.</p>
<p>In 1.9, <a href="https://shiny.posit.co/py/api/express/express.render.download_button.html" target="_blank" rel="noopener"><code>@render.download_button</code></a> and <code>@render.download_link</code> take an <code>icon</code> argument, and pass any other keyword arguments to the control they place:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">faicons</span> <span class="kn">import</span> <span class="n">icon_svg</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">shiny.express</span> <span class="kn">import</span> <span class="n">render</span><span class="p">,</span> <span class="n">ui</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">penguins</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">(</span><span class="o">...</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">ui</span><span class="o">.</span><span class="n">page_opts</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s2">&#34;Penguins&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nd">@render.download_button</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">label</span><span class="o">=</span><span class="s2">&#34;Download CSV&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="n">icon</span><span class="o">=</span><span class="n">icon_svg</span><span class="p">(</span><span class="s2">&#34;download&#34;</span><span class="p">),</span>
</span></span><span class="line"><span class="cl">    <span class="n">class_</span><span class="o">=</span><span class="s2">&#34;btn-success&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="n">filename</span><span class="o">=</span><span class="s2">&#34;penguins.csv&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">download</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="k">yield</span> <span class="n">penguins</span><span class="o">.</span><span class="n">to_csv</span><span class="p">(</span><span class="n">index</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nd">@render.data_frame</span>
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">table</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="n">penguins</span></span></span></code></pre></div></div>
<img src="https://opensource.posit.co/blog/2026-10-29_shiny-python-1-9/download-icon.png" alt="A Shiny app titled Penguins shows a green Download CSV button with a download icon, above a table of three penguin species, their islands, and their bill lengths." />
<p>This is part of a wider fix. In Express, <code>@output_args()</code> now accepts every argument of the output&rsquo;s UI function. On a <code>@render.ui</code> output, it accepts <code>inline</code>, <code>container</code>, <code>fill</code>, <code>fillable</code>, and HTML attributes, and on a <code>@render.text</code> output it accepts <code>container</code>, instead of raising a <code>TypeError</code>.</p>
<p>Also, if a download handler sets a reactive value, the outputs and effects that read it now update right away. Before, they waited for the next message from the browser.</p>
<h2 id="updates-from-background-tasks">Updates from background tasks
</h2>
<p>Sometimes an app starts an <code>asyncio</code> task that runs alongside the reactive graph, for example to poll a service or to watch a file. Before 1.9, a <code>ui.update_*()</code> call from such a task sat in a queue until the user next changed an input. In 1.9, it&rsquo;s sent to the browser right away:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">asyncio</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">datetime</span> <span class="kn">import</span> <span class="n">datetime</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">shiny</span> <span class="kn">import</span> <span class="n">App</span><span class="p">,</span> <span class="n">ui</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">app_ui</span> <span class="o">=</span> <span class="n">ui</span><span class="o">.</span><span class="n">page_fixed</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">ui</span><span class="o">.</span><span class="n">input_text</span><span class="p">(</span><span class="s2">&#34;status&#34;</span><span class="p">,</span> <span class="s2">&#34;Last heartbeat&#34;</span><span class="p">),</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">server</span><span class="p">(</span><span class="nb">input</span><span class="p">,</span> <span class="n">output</span><span class="p">,</span> <span class="n">session</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="k">async</span> <span class="k">def</span> <span class="nf">heartbeat</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">        <span class="k">while</span> <span class="kc">True</span><span class="p">:</span>
</span></span><span class="line"><span class="cl">            <span class="k">await</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">            <span class="n">ui</span><span class="o">.</span><span class="n">update_text</span><span class="p">(</span><span class="s2">&#34;status&#34;</span><span class="p">,</span> <span class="n">value</span><span class="o">=</span><span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s2">&#34;%H:%M:%S&#34;</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">    <span class="n">task</span> <span class="o">=</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">create_task</span><span class="p">(</span><span class="n">heartbeat</span><span class="p">())</span>
</span></span><span class="line"><span class="cl">    <span class="n">session</span><span class="o">.</span><span class="n">on_ended</span><span class="p">(</span><span class="n">task</span><span class="o">.</span><span class="n">cancel</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">app</span> <span class="o">=</span> <span class="n">App</span><span class="p">(</span><span class="n">app_ui</span><span class="p">,</span> <span class="n">server</span><span class="p">)</span></span></span></code></pre></div></div>
<p>The text box now ticks once a second, with no input from the user. If the task needs to change a reactive value instead, wrap the change in <code>session.run_once_when_idle()</code>, described <a href="#concurrent-async">above</a>, so it doesn&rsquo;t change under an effect that is still running.</p>
<h2 id="faster-data-frames">Faster data frames
</h2>
<p><code>@render.data_frame</code> now serializes data frames faster and with less memory. A 100,000-row frame with mixed column types serializes 2 to 3.5 times faster, with a 15 to 40% lower memory peak. The largest gains are for pandas datetime and timedelta columns, duration columns, and <code>Decimal</code> or missing (<code>pd.NA</code>) values. Editing a cell no longer copies the whole data frame. (Thanks, <a href="https://github.com/FBruzzesi" target="_blank" rel="noopener">@FBruzzesi</a>!)</p>
<p>Along the way, values of pandas nullable dtypes (<code>Int64</code>, <code>Float64</code>, <code>boolean</code>) now reach the browser as numbers and booleans instead of strings such as <code>&quot;1&quot;</code> and <code>&quot;True&quot;</code>, so they sort and filter as you would expect. Polars <code>Categorical</code> and <code>Enum</code> columns work with Polars 2.0, and key-value <code>Map</code> columns are labeled as <code>object</code>, like struct and list columns.</p>
<h2 id="deprecation-shiny-add-test">Deprecation: <code>shiny add test</code>
</h2>
<p><code>shiny add test</code>, which generated Playwright tests with an LLM, is deprecated and will be removed within the next few releases. To generate tests, use the bundled <code>shiny-for-python</code> <a href="https://opensource.posit.co/blog/2026-08-04_shiny-r-1-14-python-1-7#agent-skills">Agent Skill</a> with your coding agent instead. The skill also knows about <a href="https://opensource.posit.co/blog/2026-09-22_shiny-python-1-8#in-memory-server-testing">in-memory server tests</a>, which are often all you need.</p>
<h2 id="other-improvements">Other improvements
</h2>
<p>A few more changes worth a quick mention. The full list is in the <a href="https://github.com/posit-dev/py-shiny/blob/main/CHANGELOG.md" target="_blank" rel="noopener">changelog</a>:</p>
<ul>
<li>Message handlers set with <code>session.set_message_handler()</code> now run in their own task, so a slow handler no longer holds up other messages from the client.</li>
<li>Destroying an effect now cancels its in-progress run. So when a session ends, its in-progress <code>async</code> effects and render functions are cancelled instead of running on after the session is gone.</li>
<li><code>req(False, cancel_output=True)</code> inside a <code>@reactive.effect</code> now stops the effect quietly, instead of being treated as an error that closes the session.</li>
<li>On Windows, an output&rsquo;s busy indicator now shows while the output renders.</li>
<li><code>ui.input_date()</code>&rsquo;s <code>datesdisabled</code> now works when <code>format</code> is not the default <code>yyyy-mm-dd</code>.</li>
<li><code>Progress.set(0)</code> now places the bar at <code>0</code> relative to <code>min</code> and <code>max</code>. Before, <code>Progress(min=-10, max=10)</code> showed an empty bar at <code>0</code> instead of a half-full one.</li>
<li><code>near_points()</code> and <code>brushed_points()</code> now handle a categorical column whose categories aren&rsquo;t strings, instead of raising <code>ValueError</code>.</li>
<li>Module bookmarks now find the files that <code>session.bookmark.on_bookmark()</code> saved when the app restores.</li>
<li><code>shiny create</code> now offers the &ldquo;Stream markdown with enterprise LLM&rdquo; templates, which a misspelled path had hidden.</li>
<li><code>Jsonifiable</code> now uses <code>Sequence</code> and <code>Mapping</code>, so values like <code>dict[str, int]</code> and <code>list[str]</code> type-check as JSON-able. (Thanks, <a href="https://github.com/wolfgang-aura" target="_blank" rel="noopener">@wolfgang-aura</a>!)</li>
</ul>
<h2 id="in-closing">In closing
</h2>
<p>We&rsquo;re excited to see what you build with this release. If an app behaves differently after you upgrade, especially around async code, please let us know! As always, if you have questions or feedback, <a href="https://discord.gg/yMGCamUMnS" target="_blank" rel="noopener">join us on Discord</a> or open an issue on <a href="https://github.com/posit-dev/py-shiny/issues/new" target="_blank" rel="noopener">posit-dev/py-shiny</a>. Happy Shiny-ing!</p>
<p>The example apps in this post are in the post&rsquo;s <a href="https://github.com/posit-dev/open-source-website/tree/main/content/blog/shiny-python-1-9/_examples" target="_blank" rel="noopener"><code>_examples/</code> folder</a>.</p>
<h2 id="acknowledgements">Acknowledgements
</h2>
<p>A big thank you to all the folks who helped make this release happen by opening issues and contributing code:</p>
<p><a href="https://github.com/cpsievert" target="_blank" rel="noopener">@cpsievert</a>, <a href="https://github.com/faysou" target="_blank" rel="noopener">@faysou</a>, <a href="https://github.com/FBruzzesi" target="_blank" rel="noopener">@FBruzzesi</a>, <a href="https://github.com/fricour" target="_blank" rel="noopener">@fricour</a>, <a href="https://github.com/jat255" target="_blank" rel="noopener">@jat255</a>, <a href="https://github.com/karangattu" target="_blank" rel="noopener">@karangattu</a>, <a href="https://github.com/mmporong" target="_blank" rel="noopener">@mmporong</a>, <a href="https://github.com/pcbeingused333" target="_blank" rel="noopener">@pcbeingused333</a>, <a href="https://github.com/raashish1601" target="_blank" rel="noopener">@raashish1601</a>, <a href="https://github.com/Rodrigo-Palma" target="_blank" rel="noopener">@Rodrigo-Palma</a>, <a href="https://github.com/schloerke" target="_blank" rel="noopener">@schloerke</a>, <a href="https://github.com/taekop" target="_blank" rel="noopener">@taekop</a>, and <a href="https://github.com/wolfgang-aura" target="_blank" rel="noopener">@wolfgang-aura</a>.</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-10-29_shiny-python-1-9/feature.gif" length="164182" type="image/gif" />
    </item>
    <item>
      <title>A deeper Positron integration for Posit Assistant</title>
      <link>https://opensource.posit.co/blog/2026-10-21_assistant-drives-positron/</link>
      <pubDate>Wed, 21 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-10-21_assistant-drives-positron/</guid>
      <dc:creator>Jonathan McPherson</dc:creator><description><![CDATA[<p>In earlier releases of Positron, Posit Assistant&rsquo;s ability to interact with Positron was mostly limited to the Console and Editor panes. It could run code in Positron, see what that code did, and make changes to your scripts and documents. This alone makes it a powerful data science agent &hellip; but we can do better!</p>
<p>Starting with <a href="https://opensource.posit.co/blog/2026-10-13_positron-2026-10-release">this month&rsquo;s release</a> (2026.10), Posit Assistant can now interact with nearly the entire Positron surface. This is less about replacing pointing and clicking with prompts (although you can do a bit of that too) and more about revealing things to Assistant that Positron already knows, giving it more and better context for your questions about your data or Positron itself.</p>
<p>These new features are currently in preview; enable them with the <a href="positron://settings/assistant.previewFeatures">Assistant: Preview Features</a> setting in Positron.</p>
<img src="https://opensource.posit.co/blog/2026-10-21_assistant-drives-positron/preview-features.png" data-fig-align="center" data-fig-alt="The Assistant: Preview Features setting in Positron, in the enabled state" />
<p>Enabled? Here are some things you can try:</p>
<h2 id="packages">Packages
</h2>
<p>Assistant can now connect to the same internal data source as Positron&rsquo;s Packages pane. This means that requests to install a package will be fulfilled using the method appropriate to your current Python or R installation (Assistant used to get this wrong, occasionally). It also means you can ask for information about installed packages that Positron adds, such as active CVEs.</p>
<p>Try:</p>
<blockquote>
<p>install the ggplot2 package in Positron</p>
</blockquote>
<p>or</p>
<blockquote>
<p>do any of the packages used in this script have active vulnerabilities? ask Positron</p>
</blockquote>
<img src="https://opensource.posit.co/blog/2026-10-21_assistant-drives-positron/vulnerabilities.png" data-fig-align="center" data-fig-alt="Posit Assistant answering a query about vulnerabilities in the current script" />
<h2 id="interpreters">Interpreters
</h2>
<p>Positron maintains an inventory of every R and Python installation on your system so that it can recommend the best one for a new project, show a list when you ask to open a console, and so on. R and Python environment management and discovery is a complex topic with dozens of different packaging systems and conventions in play, so this inventory is invaluable.</p>
<p>Now Posit Assistant can see that list, too, answer questions about it, and set up new environments for you in Positron.</p>
<blockquote>
<p>why don&rsquo;t I see my R 4.1 installation in Positron?</p>
</blockquote>
<blockquote>
<p>what&rsquo;s the highest version of Python available in Positron?</p>
</blockquote>
<blockquote>
<p>set up a new uv environment in this Positron project</p>
</blockquote>
<img src="https://opensource.posit.co/blog/2026-10-21_assistant-drives-positron/new-uv-environment.png" data-fig-align="center" data-fig-alt="Posit Assistant setting up a uv environment in a new project" />
<h2 id="consoles">Consoles
</h2>
<p>Posit Assistant can now start and select consoles. This is pretty useful if you work with long-running or concurrently running code!</p>
<blockquote>
<p>run this R script in a separate Positron console</p>
</blockquote>
<img src="https://opensource.posit.co/blog/2026-10-21_assistant-drives-positron/separate-console.png" data-fig-align="center" data-fig-alt="Posit Assistant setting up a second R console to run a script" />
<h2 id="publishing-to-posit-connect">Publishing to Posit Connect
</h2>
<p>If you use <a href="https://posit.co/products/enterprise/connect" target="_blank" rel="noopener">Posit Connect</a>, you can ask Posit Assistant to publish your content to Connect, or <a href="https://connect.posit.cloud/" target="_blank" rel="noopener">Connect Cloud</a>.</p>
<blockquote>
<p>publish this app to Connect</p>
</blockquote>
<img src="https://opensource.posit.co/blog/2026-10-21_assistant-drives-positron/publish-to-connect.png" data-fig-align="center" data-fig-alt="Posit Assistant publishing a Shiny app to Posit Connect" />
<h2 id="security">Security
</h2>
<p>You&rsquo;ll be prompted each time Assistant wants to interact with Positron. Just as with code execution or shell execution, you can approve Positron commands one by one or auto-approve for your project.</p>
<p>Because Positron commands can make changes and perform some sensitive actions, they are not available in Assistant&rsquo;s <em>Ask</em> mode.</p>
<h2 id="troubleshooting--feedback">Troubleshooting &amp; Feedback
</h2>
<p>We&rsquo;re still improving the way this system works. Many of the queries above are also answerable in some form <em>without</em> consulting Positron, though the results won&rsquo;t be as good or consistent with your environment. Consequently, you may occasionally see Posit Assistant reach for the wrong tool; tell it to &ldquo;ask Positron&rdquo; or &ldquo;use a Positron command&rdquo; to accomplish a task if it gets it wrong.</p>
<p>We&rsquo;d love your feedback on this new functionality in Positron, good or bad! Drop us a line in the <a href="https://github.com/posit-dev/positron/discussions" target="_blank" rel="noopener">Positron Discussions</a> forum on Github.</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-10-21_assistant-drives-positron/assistant-drives-positron.png" length="318736" type="image/png" />
    </item>
    <item>
      <title>Great Tables `v1.0.0` and `v1.1.0`: new formatters, conditional styling, multi-column stubs, and richer color scales</title>
      <link>https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/</link>
      <pubDate>Mon, 19 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/</guid>
      <dc:creator>Rich Iannone</dc:creator><description><![CDATA[<p><a href="https://posit-dev.github.io/great-tables/" target="_blank" rel="noopener">Great Tables</a> reached
<code>v1.0.0</code> at the end of September, and <code>v1.1.0</code> followed only three weeks
later. Crossing into <code>1.x</code> territory means that the library&rsquo;s core API
is settled and that the work ahead consists of extending it rather than
reshaping it. The two releases, taken as a whole, move the library
forward along three lines:</p>
<ol>
<li>tables can now present specialized kinds of content (fractions,
chemical formulas, links) according to their proper conventions</li>
<li>they can respond to the values they contain, through value-based
styling and a considerably more capable <code>data_color()</code></li>
<li>they hold up better structurally, with multi-level stubs, decimal
alignment, and semantic HTML that assistive technologies can
navigate</li>
</ol>
<p>This post takes each of these additions in turn and pairs each with a
functional example. Every example draws on one of the datasets bundled
with the package, which are now reachable through a single new function,
<code>load_dataset()</code>. Passing it a dataset name and <code>tbl_type=&quot;polars&quot;</code> (or
<code>&quot;pandas&quot;</code>, the default) returns the corresponding DataFrame, so the
examples below can be run as written after upgrading to <code>v1.1.0</code>.</p>
<h2 id="new-formatters-for-specialized-values">New formatters for specialized values
</h2>
<p>Some values have conventions of their own that a general-purpose number
formatter cannot honor. A quantity like 1.75 hours reads more naturally
as &ldquo;1 3/4&rdquo; in some contexts, a list of items is often labeled A, B, C
rather than 1, 2, 3, and a chemical formula looks odd without its
specialized typesetting (e.g., subscripts, brackets, etc.). Version
<code>1.0.0</code> adds formatters for each of these cases: <code>fmt_fraction()</code>,
<code>fmt_index()</code>, and <code>fmt_chem()</code>.</p>
<p>The <code>films</code> dataset records every film in competition at the Cannes Film
Festival since 1946, with running times stored as strings like
<code>&quot;1h 44m&quot;</code>. If we convert those to decimal hours, <code>fmt_fraction()</code> can
present them as mixed fractions. Its <code>accuracy=</code> argument governs how
fine the fractions may be: the default <code>&quot;low&quot;</code> permits single-digit
denominators, <code>&quot;med&quot;</code> and <code>&quot;high&quot;</code> allow two and three digits, and an
integer fixes the denominator by that number (so <code>accuracy=4</code> gives
quarters). The <code>layout=</code> argument chooses between ordinary inline
fractions and a diagonal form with a raised numerator and lowered
denominator, which is how fractions are usually typeset. We&rsquo;ll show both
side by side and use <code>fmt_index()</code> to turn a column of integers into
lettered row labels.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">polars</span> <span class="k">as</span> <span class="nn">pl</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">great_tables</span> <span class="kn">import</span> <span class="n">GT</span><span class="p">,</span> <span class="n">md</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">great_tables.data</span> <span class="kn">import</span> <span class="n">load_dataset</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">films</span> <span class="o">=</span> <span class="n">load_dataset</span><span class="p">(</span><span class="s2">&#34;films&#34;</span><span class="p">,</span> <span class="n">tbl_type</span><span class="o">=</span><span class="s2">&#34;polars&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">loach</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">films</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;director&#34;</span><span class="p">)</span> <span class="o">==</span> <span class="s2">&#34;Ken Loach&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">head</span><span class="p">(</span><span class="mi">8</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">with_columns</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">hours</span><span class="o">=</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">            <span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;run_time&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">str</span><span class="o">.</span><span class="n">extract</span><span class="p">(</span><span class="sa">r</span><span class="s2">&#34;(\d+)h&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">cast</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">Float64</span><span class="p">)</span><span class="o">.</span><span class="n">fill_null</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">            <span class="o">+</span> <span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;run_time&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">str</span><span class="o">.</span><span class="n">extract</span><span class="p">(</span><span class="sa">r</span><span class="s2">&#34;(\d+)m&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">cast</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">Float64</span><span class="p">)</span><span class="o">.</span><span class="n">fill_null</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span> <span class="o">/</span> <span class="mi">60</span>
</span></span><span class="line"><span class="cl">        <span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">with_columns</span><span class="p">(</span><span class="n">hours_diag</span><span class="o">=</span><span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;hours&#34;</span><span class="p">),</span> <span class="n">idx</span><span class="o">=</span><span class="n">pl</span><span class="o">.</span><span class="n">int_range</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="n">pl</span><span class="o">.</span><span class="n">len</span><span class="p">()</span> <span class="o">+</span> <span class="mi">1</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">select</span><span class="p">(</span><span class="s2">&#34;idx&#34;</span><span class="p">,</span> <span class="s2">&#34;title&#34;</span><span class="p">,</span> <span class="s2">&#34;year&#34;</span><span class="p">,</span> <span class="s2">&#34;run_time&#34;</span><span class="p">,</span> <span class="s2">&#34;hours&#34;</span><span class="p">,</span> <span class="s2">&#34;hours_diag&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">GT</span><span class="p">(</span><span class="n">loach</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_header</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s2">&#34;Ken Loach at Cannes&#34;</span><span class="p">,</span> <span class="n">subtitle</span><span class="o">=</span><span class="s2">&#34;Running times as fractions of an hour&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_index</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;idx&#34;</span><span class="p">,</span> <span class="n">pattern</span><span class="o">=</span><span class="s2">&#34;</span><span class="si">{x}</span><span class="s2">.&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_fraction</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;hours&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_fraction</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;hours_diag&#34;</span><span class="p">,</span> <span class="n">layout</span><span class="o">=</span><span class="s2">&#34;diagonal&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">cols_label</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">idx</span><span class="o">=</span><span class="s2">&#34;&#34;</span><span class="p">,</span> <span class="n">title</span><span class="o">=</span><span class="s2">&#34;Film&#34;</span><span class="p">,</span> <span class="n">year</span><span class="o">=</span><span class="s2">&#34;Year&#34;</span><span class="p">,</span> <span class="n">run_time</span><span class="o">=</span><span class="s2">&#34;Listed&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="n">hours</span><span class="o">=</span><span class="s2">&#34;Inline&#34;</span><span class="p">,</span> <span class="n">hours_diag</span><span class="o">=</span><span class="s2">&#34;Diagonal&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_spanner</span><span class="p">(</span><span class="n">label</span><span class="o">=</span><span class="s2">&#34;Hours&#34;</span><span class="p">,</span> <span class="n">columns</span><span class="o">=</span><span class="p">[</span><span class="s2">&#34;hours&#34;</span><span class="p">,</span> <span class="s2">&#34;hours_diag&#34;</span><span class="p">])</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span></span></span></code></pre></div></div>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/assets/fmt-fraction.png" alt="Eight Ken Loach films with lettered row labels A through H and running times shown as mixed fractions of an hour, in both inline and diagonal layouts"></p>
<p>The <code>fmt_index()</code> method maps 1 to &ldquo;A&rdquo;, 2 to &ldquo;B&rdquo;, and so on, and its
<code>pattern=</code> argument lets us append a period to each label. For values
beyond 26, the <code>index_algo=</code> argument decides what happens next:
<code>&quot;repeat&quot;</code> doubles the letter (&ldquo;AA&rdquo;, &ldquo;BB&rdquo;), while <code>&quot;excel&quot;</code> follows the
spreadsheet convention of column names (&ldquo;AA&rdquo;, &ldquo;AB&rdquo;). There is also a
<code>case=</code> argument for lowercase labels.</p>
<p>The <code>fmt_chem()</code> method handles our own brand of chemistry notation and
renders it with the correct typography. So you get to incorporate things
like: subscripted atom counts, superscripted charges, isotope notation,
stoichiometric coefficients, various reaction arrows, etc. The
<code>reactions</code> dataset, which contains rate constants for the gas-phase
reactions of organic compounds with atmospheric oxidants, stores its
formulas as plain strings and makes for a good test of this method.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">reactions</span> <span class="o">=</span> <span class="n">load_dataset</span><span class="p">(</span><span class="s2">&#34;reactions&#34;</span><span class="p">,</span> <span class="n">tbl_type</span><span class="o">=</span><span class="s2">&#34;polars&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">compounds</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">reactions</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;cmpd_name&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">is_in</span><span class="p">([</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;methane&#34;</span><span class="p">,</span> <span class="s2">&#34;ethanol&#34;</span><span class="p">,</span> <span class="s2">&#34;acetone&#34;</span><span class="p">,</span> <span class="s2">&#34;benzene&#34;</span><span class="p">,</span> <span class="s2">&#34;toluene&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;dimethyl sulfide&#34;</span><span class="p">,</span> <span class="s2">&#34;isoprene&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="p">])</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">select</span><span class="p">(</span><span class="s2">&#34;cmpd_name&#34;</span><span class="p">,</span> <span class="s2">&#34;cmpd_formula&#34;</span><span class="p">,</span> <span class="s2">&#34;cmpd_mwt&#34;</span><span class="p">,</span> <span class="s2">&#34;OH_k298&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">sort</span><span class="p">(</span><span class="s2">&#34;cmpd_mwt&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">GT</span><span class="p">(</span><span class="n">compounds</span><span class="p">,</span> <span class="n">rowname_col</span><span class="o">=</span><span class="s2">&#34;cmpd_name&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_header</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s2">&#34;Reaction Rates with the Hydroxyl Radical&#34;</span><span class="p">,</span> <span class="n">subtitle</span><span class="o">=</span><span class="n">md</span><span class="p">(</span><span class="s2">&#34;Rate constants at 298 K&#34;</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_chem</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;cmpd_formula&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_number</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;cmpd_mwt&#34;</span><span class="p">,</span> <span class="n">decimals</span><span class="o">=</span><span class="mi">2</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_scientific</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;OH_k298&#34;</span><span class="p">,</span> <span class="n">decimals</span><span class="o">=</span><span class="mi">2</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">cols_label</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">cmpd_formula</span><span class="o">=</span><span class="s2">&#34;Formula&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="n">cmpd_mwt</span><span class="o">=</span><span class="s2">&#34;Mol. Weight&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="n">OH_k298</span><span class="o">=</span><span class="n">md</span><span class="p">(</span><span class="s2">&#34;k&lt;sub&gt;OH&lt;/sub&gt;&#34;</span><span class="p">),</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span></span></span></code></pre></div></div>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/assets/fmt-chem.png" alt="Seven organic compounds with their chemical formulas properly subscripted, molecular weights, and hydroxyl radical rate constants in scientific notation"></p>
<p>The formulas here are simple ones, but the same method will typeset an
entire reaction such as <code>&quot;2 CH3OH -&gt; CH3OCH3 + H2O&quot;</code> placed in a cell,
and it does so in LaTeX output as well as HTML as of <code>v1.1.0</code>.</p>
<h2 id="links-and-buttons-with-fmt_url-and-fmt_email">Links and buttons with <code>fmt_url()</code> and <code>fmt_email()</code>
</h2>
<p>Tables are frequently a point of departure. You might need a table with
a list of resources, a directory of people, or an index of documents.
The <code>fmt_url()</code> and <code>fmt_email()</code> methods turn columns of URLs and email
addresses into working links, so the reader can follow them directly
from the table. Both methods accept a fixed label (or a function that
computes one from each value), and both can render their links either as
underlined text or as small buttons with configurable fill, outline, and
width.</p>
<p>The <code>films</code> dataset includes an IMDb link for each film, which is a good
candidate for a button. Here we give every link the same short label and
a fill color that matches IMDb&rsquo;s own.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">wenders</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">films</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;director&#34;</span><span class="p">)</span> <span class="o">==</span> <span class="s2">&#34;Wim Wenders&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">select</span><span class="p">(</span><span class="s2">&#34;year&#34;</span><span class="p">,</span> <span class="s2">&#34;title&#34;</span><span class="p">,</span> <span class="s2">&#34;run_time&#34;</span><span class="p">,</span> <span class="s2">&#34;imdb_url&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">head</span><span class="p">(</span><span class="mi">6</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">GT</span><span class="p">(</span><span class="n">wenders</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_header</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s2">&#34;Wim Wenders at Cannes&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_url</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;imdb_url&#34;</span><span class="p">,</span> <span class="n">label</span><span class="o">=</span><span class="s2">&#34;IMDb&#34;</span><span class="p">,</span> <span class="n">as_button</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">button_fill</span><span class="o">=</span><span class="s2">&#34;#F5C518&#34;</span><span class="p">,</span> <span class="n">color</span><span class="o">=</span><span class="s2">&#34;black&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">cols_label</span><span class="p">(</span><span class="n">year</span><span class="o">=</span><span class="s2">&#34;Year&#34;</span><span class="p">,</span> <span class="n">title</span><span class="o">=</span><span class="s2">&#34;Film&#34;</span><span class="p">,</span> <span class="n">run_time</span><span class="o">=</span><span class="s2">&#34;Running Time&#34;</span><span class="p">,</span> <span class="n">imdb_url</span><span class="o">=</span><span class="s2">&#34;&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span></span></span></code></pre></div></div>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/assets/fmt-url.png" alt="Six Wim Wenders films with a yellow IMDb button in the final column of each row"></p>
<p>The <code>fmt_email()</code> method works in the same way, producing <code>mailto:</code>
links. In its most basic form it simply makes each address clickable, as
in this small directory drawn from the <code>peeps</code> dataset (full of
fictional people).</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">peeps</span> <span class="o">=</span> <span class="n">load_dataset</span><span class="p">(</span><span class="s2">&#34;peeps&#34;</span><span class="p">,</span> <span class="n">tbl_type</span><span class="o">=</span><span class="s2">&#34;polars&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">contacts</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">peeps</span><span class="o">.</span><span class="n">head</span><span class="p">(</span><span class="mi">5</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">with_columns</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;name_given&#34;</span><span class="p">)</span> <span class="o">+</span> <span class="s2">&#34; &#34;</span> <span class="o">+</span> <span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;name_family&#34;</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">select</span><span class="p">(</span><span class="s2">&#34;name&#34;</span><span class="p">,</span> <span class="s2">&#34;city&#34;</span><span class="p">,</span> <span class="s2">&#34;state_prov&#34;</span><span class="p">,</span> <span class="s2">&#34;email_addr&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">GT</span><span class="p">(</span><span class="n">contacts</span><span class="p">,</span> <span class="n">rowname_col</span><span class="o">=</span><span class="s2">&#34;name&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_email</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;email_addr&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">cols_label</span><span class="p">(</span><span class="n">city</span><span class="o">=</span><span class="s2">&#34;City&#34;</span><span class="p">,</span> <span class="n">state_prov</span><span class="o">=</span><span class="s2">&#34;State&#34;</span><span class="p">,</span> <span class="n">email_addr</span><span class="o">=</span><span class="s2">&#34;Email&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span></span></span></code></pre></div></div>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/assets/fmt-email.png" alt="Five people with their city, state, and an underlined, clickable email address"></p>
<p>The images in this post are static, of course, but in HTML output these
links are live. Links open in a new tab by default, which can be changed
through the <code>target=</code> argument, and in LaTeX output they are now written
with <code>\href</code> so that they remain clickable in a typeset PDF.</p>
<h2 id="styling-cells-by-their-values-with-tab_style_body">Styling cells by their values with <code>tab_style_body()</code>
</h2>
<p>The <code>tab_style()</code> method has always asked a question about <em>where</em>: you
name a location (a column, a set of rows, the column labels) and the
style is applied there. Often, though, the question we want to ask is
about <em>what</em>. We want every cell containing a particular value to stand
out, or every row in which some condition holds, regardless of where
those cells happen to sit. The new <code>tab_style_body()</code> method is built
for this. It matches body cells by exact values (<code>values=</code>), by a
regular expression applied to the cell&rsquo;s text (<code>pattern=</code>), or by an
arbitrary predicate function (<code>fn=</code>), and the <code>targets=</code> argument
decides whether the style should be applied to the matched cell alone,
its whole row, or its whole column.</p>
<p>The <code>metro</code> dataset describes the stations of the Paris Métro, including
the lines that serve each one, the RER commuter-rail connections, and
annual passenger counts. In the table below we highlight every station
connected to RER line A, extending the fill across the entire row (and
into the stub), and separately set in bold purple the line listings that
include line 14 (the fully automated line).</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">great_tables</span> <span class="kn">import</span> <span class="n">style</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">metro</span> <span class="o">=</span> <span class="n">load_dataset</span><span class="p">(</span><span class="s2">&#34;metro&#34;</span><span class="p">,</span> <span class="n">tbl_type</span><span class="o">=</span><span class="s2">&#34;polars&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">metro_busy</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">metro</span><span class="o">.</span><span class="n">select</span><span class="p">(</span><span class="s2">&#34;name&#34;</span><span class="p">,</span> <span class="s2">&#34;lines&#34;</span><span class="p">,</span> <span class="s2">&#34;connect_rer&#34;</span><span class="p">,</span> <span class="s2">&#34;passengers&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">drop_nulls</span><span class="p">(</span><span class="s2">&#34;passengers&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">top_k</span><span class="p">(</span><span class="mi">12</span><span class="p">,</span> <span class="n">by</span><span class="o">=</span><span class="s2">&#34;passengers&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">sort</span><span class="p">(</span><span class="s2">&#34;passengers&#34;</span><span class="p">,</span> <span class="n">descending</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">GT</span><span class="p">(</span><span class="n">metro_busy</span><span class="p">,</span> <span class="n">rowname_col</span><span class="o">=</span><span class="s2">&#34;name&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_header</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s2">&#34;The Busiest Stations of the Paris Métro&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_integer</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;passengers&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">sub_missing</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;connect_rer&#34;</span><span class="p">,</span> <span class="n">missing_text</span><span class="o">=</span><span class="s2">&#34;&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">cols_label</span><span class="p">(</span><span class="n">lines</span><span class="o">=</span><span class="s2">&#34;Lines&#34;</span><span class="p">,</span> <span class="n">connect_rer</span><span class="o">=</span><span class="s2">&#34;RER&#34;</span><span class="p">,</span> <span class="n">passengers</span><span class="o">=</span><span class="s2">&#34;Passengers&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_style_body</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">style</span><span class="o">=</span><span class="n">style</span><span class="o">.</span><span class="n">fill</span><span class="p">(</span><span class="n">color</span><span class="o">=</span><span class="s2">&#34;#FFF3C4&#34;</span><span class="p">),</span>
</span></span><span class="line"><span class="cl">        <span class="n">pattern</span><span class="o">=</span><span class="sa">r</span><span class="s2">&#34;\bA\b&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="n">targets</span><span class="o">=</span><span class="s2">&#34;row&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="n">extents</span><span class="o">=</span><span class="p">[</span><span class="s2">&#34;body&#34;</span><span class="p">,</span> <span class="s2">&#34;stub&#34;</span><span class="p">],</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_style_body</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">style</span><span class="o">=</span><span class="n">style</span><span class="o">.</span><span class="n">text</span><span class="p">(</span><span class="n">weight</span><span class="o">=</span><span class="s2">&#34;bold&#34;</span><span class="p">,</span> <span class="n">color</span><span class="o">=</span><span class="s2">&#34;#6E3FA3&#34;</span><span class="p">),</span>
</span></span><span class="line"><span class="cl">        <span class="n">columns</span><span class="o">=</span><span class="s2">&#34;lines&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="n">pattern</span><span class="o">=</span><span class="sa">r</span><span class="s2">&#34;\b14\b&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span></span></span></code></pre></div></div>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/assets/tab-style-body.png" alt="The twelve busiest Paris Métro stations, with rows for stations on RER A filled in pale yellow and the line listings that include line 14 set in bold purple"></p>
<p>The word boundaries in each pattern are pretty important here. Without
them, <code>&quot;14&quot;</code> would also match a hypothetical line 140, and <code>&quot;A&quot;</code> would
match any text containing that letter. Matching is performed against the
underlying data rather than the formatted output, so a predicate passed
to <code>fn=</code> receives the raw value (a number, a date, a string) and can
compare it directly.</p>
<h2 id="multi-column-stubs">Multi-column stubs
</h2>
<p>The stub is the column of row labels on the left side of a table, and
until now it could hold only a single column. Many datasets, however,
have a natural hierarchy among their identifying columns: region and
city (<code>towny</code>), manufacturer and model (<code>gtcars</code>), etc. In <code>v1.1.0</code>, the
<code>rowname_col=</code> argument accepts a list of column names, and the stub is
built from all of them, with repeated values in the outer levels merged
into a single spanning cell.</p>
<p>Once a stub has several levels, we need a way to refer to each one. The
new <code>stub</code> selector serves this purpose in any <code>columns=</code> argument:
<code>stub</code> alone refers to the whole stub, and <code>stub(n)</code> refers to a single
level, counted from the right. In the example below, built from the
<code>gtcars</code> dataset of high-performance cars, <code>stub(1)</code> is the model and
<code>stub(2)</code> is the manufacturer, and we give each its own width. We also
bold the manufacturer level alone by passing <code>columns=</code> to <code>loc.stub()</code>.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">great_tables</span> <span class="kn">import</span> <span class="n">loc</span><span class="p">,</span> <span class="n">stub</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">gtcars</span> <span class="o">=</span> <span class="n">load_dataset</span><span class="p">(</span><span class="s2">&#34;gtcars&#34;</span><span class="p">,</span> <span class="n">tbl_type</span><span class="o">=</span><span class="s2">&#34;polars&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">cars</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">gtcars</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;mfr&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">is_in</span><span class="p">([</span><span class="s2">&#34;Ferrari&#34;</span><span class="p">,</span> <span class="s2">&#34;Lamborghini&#34;</span><span class="p">,</span> <span class="s2">&#34;Porsche&#34;</span><span class="p">]))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">select</span><span class="p">(</span><span class="s2">&#34;mfr&#34;</span><span class="p">,</span> <span class="s2">&#34;model&#34;</span><span class="p">,</span> <span class="s2">&#34;year&#34;</span><span class="p">,</span> <span class="s2">&#34;hp&#34;</span><span class="p">,</span> <span class="s2">&#34;trq&#34;</span><span class="p">,</span> <span class="s2">&#34;msrp&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">sort</span><span class="p">(</span><span class="s2">&#34;mfr&#34;</span><span class="p">,</span> <span class="s2">&#34;model&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">GT</span><span class="p">(</span><span class="n">cars</span><span class="p">,</span> <span class="n">rowname_col</span><span class="o">=</span><span class="p">[</span><span class="s2">&#34;mfr&#34;</span><span class="p">,</span> <span class="s2">&#34;model&#34;</span><span class="p">])</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_header</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s2">&#34;Three European Marques&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_integer</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="p">[</span><span class="s2">&#34;hp&#34;</span><span class="p">,</span> <span class="s2">&#34;trq&#34;</span><span class="p">])</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_currency</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;msrp&#34;</span><span class="p">,</span> <span class="n">decimals</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">cols_label</span><span class="p">(</span><span class="n">year</span><span class="o">=</span><span class="s2">&#34;Year&#34;</span><span class="p">,</span> <span class="n">hp</span><span class="o">=</span><span class="s2">&#34;HP&#34;</span><span class="p">,</span> <span class="n">trq</span><span class="o">=</span><span class="s2">&#34;Torque&#34;</span><span class="p">,</span> <span class="n">msrp</span><span class="o">=</span><span class="s2">&#34;MSRP&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">cols_width</span><span class="p">(</span><span class="n">cases</span><span class="o">=</span><span class="p">{</span><span class="n">stub</span><span class="p">(</span><span class="mi">2</span><span class="p">):</span> <span class="s2">&#34;120px&#34;</span><span class="p">,</span> <span class="n">stub</span><span class="p">(</span><span class="mi">1</span><span class="p">):</span> <span class="s2">&#34;140px&#34;</span><span class="p">})</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_style</span><span class="p">(</span><span class="n">style</span><span class="o">=</span><span class="n">style</span><span class="o">.</span><span class="n">text</span><span class="p">(</span><span class="n">weight</span><span class="o">=</span><span class="s2">&#34;bold&#34;</span><span class="p">),</span> <span class="n">locations</span><span class="o">=</span><span class="n">loc</span><span class="o">.</span><span class="n">stub</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;mfr&#34;</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_stubhead</span><span class="p">(</span><span class="n">label</span><span class="o">=</span><span class="s2">&#34;Car&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span></span></span></code></pre></div></div>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/assets/multi-column-stub.png" alt="Sixteen cars from Ferrari, Lamborghini, and Porsche, with a two-level stub in which each manufacturer name spans the rows of its models"></p>
<p>A related change accompanies this feature. Stub and row group columns
are now excluded from column selections, as was always the intent, so
that a method called without <code>columns=</code> targets only the body. One
visible consequence is that <code>data_color()</code> no longer colors the cells of
the stub when it is applied to the whole table.</p>
<h2 id="lining-up-numbers-with-cols_align_decimal">Lining up numbers with <code>cols_align_decimal()</code>
</h2>
<p>Right-aligning a column of numbers works well when every value has the
same number of decimal places. When they differ, the digits of equal
magnitude no longer sit above one another, and the eye must work harder
to compare values. The new <code>cols_align_decimal()</code> method solves this by
padding each formatted value with figure spaces (spaces exactly as wide
as a digit) so that the decimal marks fall in a single vertical line.
Because it operates after formatting, it works with the output of any
<code>fmt_*()</code> method, including values with suffixes like <code>%</code>.</p>
<p>The <code>constants</code> dataset of fundamental physical constants is about as
varied in magnitude as data gets. In the table below, the same values
appear twice: once with ordinary right alignment and once aligned on the
decimal mark.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">constants</span> <span class="o">=</span> <span class="n">load_dataset</span><span class="p">(</span><span class="s2">&#34;constants&#34;</span><span class="p">,</span> <span class="n">tbl_type</span><span class="o">=</span><span class="s2">&#34;polars&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">const_mini</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">constants</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;name&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">is_in</span><span class="p">([</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;speed of light in vacuum&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;standard acceleration of gravity&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;molar gas constant&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;Faraday constant&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;fine-structure constant&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;inverse fine-structure constant&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;proton-electron mass ratio&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;Wien wavelength displacement law constant&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="p">])</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">select</span><span class="p">(</span><span class="s2">&#34;name&#34;</span><span class="p">,</span> <span class="s2">&#34;value&#34;</span><span class="p">,</span> <span class="s2">&#34;units&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">with_columns</span><span class="p">(</span><span class="n">aligned</span><span class="o">=</span><span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;value&#34;</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">select</span><span class="p">(</span><span class="s2">&#34;name&#34;</span><span class="p">,</span> <span class="s2">&#34;value&#34;</span><span class="p">,</span> <span class="s2">&#34;aligned&#34;</span><span class="p">,</span> <span class="s2">&#34;units&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">GT</span><span class="p">(</span><span class="n">const_mini</span><span class="p">,</span> <span class="n">rowname_col</span><span class="o">=</span><span class="s2">&#34;name&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_header</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s2">&#34;A Few Physical Constants&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_number</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="p">[</span><span class="s2">&#34;value&#34;</span><span class="p">,</span> <span class="s2">&#34;aligned&#34;</span><span class="p">],</span> <span class="n">decimals</span><span class="o">=</span><span class="mi">6</span><span class="p">,</span> <span class="n">drop_trailing_zeros</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">cols_align_decimal</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;aligned&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">sub_missing</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;units&#34;</span><span class="p">,</span> <span class="n">missing_text</span><span class="o">=</span><span class="s2">&#34;&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_units</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="s2">&#34;units&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">cols_label</span><span class="p">(</span><span class="n">value</span><span class="o">=</span><span class="s2">&#34;Default&#34;</span><span class="p">,</span> <span class="n">aligned</span><span class="o">=</span><span class="s2">&#34;Aligned&#34;</span><span class="p">,</span> <span class="n">units</span><span class="o">=</span><span class="s2">&#34;Units&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span></span></span></code></pre></div></div>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/assets/cols-align-decimal.png" alt="Eight physical constants shown twice, first right-aligned and then aligned on the decimal point, with units typeset in a final column"></p>
<p>In the aligned column, the integer parts and the fractional parts each
occupy their own region, and the relative magnitudes of the constants
become apparent at a glance. Locales that use a comma as the decimal
mark are handled through the <code>dec_mark=</code> or <code>locale=</code> arguments (or by
the locale set on the table itself).</p>
<h2 id="a-more-capable-data_color">A more capable <code>data_color()</code>
</h2>
<p>The <code>data_color()</code> method colors cells according to their values, and
<code>v1.1.0</code> gives it more new capabilities than any other part of the
library. Three new arguments change what kinds of color scales are
possible, and two changes to its defaults improve every table that uses
it.</p>
<p>The first of the new arguments is <code>midpoint=</code>. Many quantities have a
meaningful center (a change of zero, a ratio of one, a score of fifty)
and should be colored with a diverging palette that fades to neutral at
that center and intensifies in opposite directions on either side.
Setting <code>midpoint=0</code> centers the palette there and, unless you supply a
<code>domain=</code> yourself, makes the domain symmetric around it. The <code>towny</code>
dataset records population change across five census periods, and with a
red-to-blue palette, growth and decline become visually opposed.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">polars.selectors</span> <span class="k">as</span> <span class="nn">cs</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">towny</span> <span class="o">=</span> <span class="n">load_dataset</span><span class="p">(</span><span class="s2">&#34;towny&#34;</span><span class="p">,</span> <span class="n">tbl_type</span><span class="o">=</span><span class="s2">&#34;polars&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">towny_change</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">towny</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="p">(</span><span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;csd_type&#34;</span><span class="p">)</span> <span class="o">==</span> <span class="s2">&#34;city&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">        <span class="o">&amp;</span> <span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;name&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">is_in</span><span class="p">([</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;Toronto&#34;</span><span class="p">,</span> <span class="s2">&#34;Ottawa&#34;</span><span class="p">,</span> <span class="s2">&#34;Mississauga&#34;</span><span class="p">,</span> <span class="s2">&#34;Hamilton&#34;</span><span class="p">,</span> <span class="s2">&#34;London&#34;</span><span class="p">,</span> <span class="s2">&#34;Kitchener&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;Windsor&#34;</span><span class="p">,</span> <span class="s2">&#34;Greater Sudbury&#34;</span><span class="p">,</span> <span class="s2">&#34;St. Catharines&#34;</span><span class="p">,</span> <span class="s2">&#34;Kingston&#34;</span><span class="p">,</span> <span class="s2">&#34;Waterloo&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">            <span class="s2">&#34;Thunder Bay&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="p">])</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">select</span><span class="p">(</span><span class="s2">&#34;name&#34;</span><span class="p">,</span> <span class="n">cs</span><span class="o">.</span><span class="n">starts_with</span><span class="p">(</span><span class="s2">&#34;pop_change&#34;</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">sort</span><span class="p">(</span><span class="s2">&#34;name&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">GT</span><span class="p">(</span><span class="n">towny_change</span><span class="p">,</span> <span class="n">rowname_col</span><span class="o">=</span><span class="s2">&#34;name&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_header</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s2">&#34;Population Change in Twelve Ontario Cities&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_percent</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="n">cs</span><span class="o">.</span><span class="n">starts_with</span><span class="p">(</span><span class="s2">&#34;pop_change&#34;</span><span class="p">),</span> <span class="n">decimals</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">cols_label</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">pop_change_1996_2001_pct</span><span class="o">=</span><span class="s2">&#34;1996–01&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="n">pop_change_2001_2006_pct</span><span class="o">=</span><span class="s2">&#34;2001–06&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="n">pop_change_2006_2011_pct</span><span class="o">=</span><span class="s2">&#34;2006–11&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="n">pop_change_2011_2016_pct</span><span class="o">=</span><span class="s2">&#34;2011–16&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">        <span class="n">pop_change_2016_2021_pct</span><span class="o">=</span><span class="s2">&#34;2016–21&#34;</span><span class="p">,</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">data_color</span><span class="p">(</span><span class="n">palette</span><span class="o">=</span><span class="p">[</span><span class="s2">&#34;#B2182B&#34;</span><span class="p">,</span> <span class="s2">&#34;#F7F7F7&#34;</span><span class="p">,</span> <span class="s2">&#34;#2166AC&#34;</span><span class="p">],</span> <span class="n">midpoint</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span></span></span></code></pre></div></div>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/assets/data-color-midpoint.png" alt="Population change for twelve Ontario cities over five census periods, with declines in shades of red, growth in shades of blue, and near-zero values close to white"></p>
<p>Because the domain is symmetric, a decline of 4% receives exactly as
much red as a gain of 4% receives blue. The handful of red cells stand
out clearly against the general pattern of growth.</p>
<p>The second new argument is <code>direction=</code>. By default, <code>data_color()</code>
computes its scale down each column, which is the right choice when the
columns hold different measurements. Sometimes, however, it is the rows
that are internally comparable and the columns that are not. In the
following table of national populations by decade, from the
<code>countrypops</code> dataset, coloring by column would merely tell us that
Brazil is larger than Ireland. With <code>direction=&quot;row&quot;</code>, each country
receives its own scale, and the colors instead trace the shape of each
country&rsquo;s history.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="n">countrypops</span> <span class="o">=</span> <span class="n">load_dataset</span><span class="p">(</span><span class="s2">&#34;countrypops&#34;</span><span class="p">,</span> <span class="n">tbl_type</span><span class="o">=</span><span class="s2">&#34;polars&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">pops_wide</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">countrypops</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;country_name&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">is_in</span><span class="p">([</span><span class="s2">&#34;Nigeria&#34;</span><span class="p">,</span> <span class="s2">&#34;Brazil&#34;</span><span class="p">,</span> <span class="s2">&#34;Ireland&#34;</span><span class="p">,</span> <span class="s2">&#34;Germany&#34;</span><span class="p">,</span> <span class="s2">&#34;Japan&#34;</span><span class="p">,</span> <span class="s2">&#34;Bulgaria&#34;</span><span class="p">])</span>
</span></span><span class="line"><span class="cl">        <span class="o">&amp;</span> <span class="n">pl</span><span class="o">.</span><span class="n">col</span><span class="p">(</span><span class="s2">&#34;year&#34;</span><span class="p">)</span><span class="o">.</span><span class="n">is_in</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="nb">range</span><span class="p">(</span><span class="mi">1960</span><span class="p">,</span> <span class="mi">2021</span><span class="p">,</span> <span class="mi">10</span><span class="p">)))</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">pivot</span><span class="p">(</span><span class="n">on</span><span class="o">=</span><span class="s2">&#34;year&#34;</span><span class="p">,</span> <span class="n">index</span><span class="o">=</span><span class="s2">&#34;country_name&#34;</span><span class="p">,</span> <span class="n">values</span><span class="o">=</span><span class="s2">&#34;population&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">year_cols</span> <span class="o">=</span> <span class="p">[</span><span class="n">c</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="n">pops_wide</span><span class="o">.</span><span class="n">columns</span> <span class="k">if</span> <span class="n">c</span> <span class="o">!=</span> <span class="s2">&#34;country_name&#34;</span><span class="p">]</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">GT</span><span class="p">(</span><span class="n">pops_wide</span><span class="p">,</span> <span class="n">rowname_col</span><span class="o">=</span><span class="s2">&#34;country_name&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_header</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s2">&#34;Population by Decade&#34;</span><span class="p">,</span> <span class="n">subtitle</span><span class="o">=</span><span class="s2">&#34;Each row is colored on its own scale&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_integer</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="n">year_cols</span><span class="p">,</span> <span class="n">compact</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">data_color</span><span class="p">(</span><span class="n">palette</span><span class="o">=</span><span class="s2">&#34;viridis&#34;</span><span class="p">,</span> <span class="n">direction</span><span class="o">=</span><span class="s2">&#34;row&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span></span></span></code></pre></div></div>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/assets/data-color-row.png" alt="Populations of six countries by decade from 1960 to 2020, each row colored on its own viridis scale"></p>
<p>The patterns are immediately legible. Nigeria and Brazil brighten
steadily from left to right. Japan reaches its peak around 2010 and
begins to recede. And Bulgaria, whose population peaked in the 1980s,
darkens again toward the present.</p>
<p>The third new argument, <code>fn=</code>, hands the color mapping over to you. It
takes a function that receives a list of values (a column, or a row with
<code>direction=&quot;row&quot;</code>) and returns a list of colors of the same length. Any
function with that shape will do, but the library also provides three
helpers that build such functions for common cases: <code>col_numeric()</code> for
continuous scales, <code>col_factor()</code> for categories, and <code>col_bin()</code> for
numeric values cut into bins. Here <code>col_bin()</code> sorts horsepower and
torque figures from <code>gtcars</code> into four explicitly bounded bands.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">great_tables</span> <span class="kn">import</span> <span class="n">col_bin</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">hp_cars</span> <span class="o">=</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">gtcars</span><span class="o">.</span><span class="n">select</span><span class="p">(</span><span class="s2">&#34;mfr&#34;</span><span class="p">,</span> <span class="s2">&#34;model&#34;</span><span class="p">,</span> <span class="s2">&#34;hp&#34;</span><span class="p">,</span> <span class="s2">&#34;trq&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">sort</span><span class="p">(</span><span class="s2">&#34;hp&#34;</span><span class="p">,</span> <span class="n">descending</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">gather_every</span><span class="p">(</span><span class="mi">4</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">head</span><span class="p">(</span><span class="mi">10</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="n">GT</span><span class="p">(</span><span class="n">hp_cars</span><span class="p">,</span> <span class="n">rowname_col</span><span class="o">=</span><span class="s2">&#34;model&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">tab_header</span><span class="p">(</span><span class="n">title</span><span class="o">=</span><span class="s2">&#34;Horsepower and Torque, Binned&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">fmt_integer</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="p">[</span><span class="s2">&#34;hp&#34;</span><span class="p">,</span> <span class="s2">&#34;trq&#34;</span><span class="p">])</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">cols_label</span><span class="p">(</span><span class="n">mfr</span><span class="o">=</span><span class="s2">&#34;Make&#34;</span><span class="p">,</span> <span class="n">hp</span><span class="o">=</span><span class="s2">&#34;HP&#34;</span><span class="p">,</span> <span class="n">trq</span><span class="o">=</span><span class="s2">&#34;Torque&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="o">.</span><span class="n">data_color</span><span class="p">(</span>
</span></span><span class="line"><span class="cl">        <span class="n">columns</span><span class="o">=</span><span class="p">[</span><span class="s2">&#34;hp&#34;</span><span class="p">,</span> <span class="s2">&#34;trq&#34;</span><span class="p">],</span>
</span></span><span class="line"><span class="cl">        <span class="n">fn</span><span class="o">=</span><span class="n">col_bin</span><span class="p">(</span><span class="n">palette</span><span class="o">=</span><span class="p">[</span><span class="s2">&#34;#EDF8E9&#34;</span><span class="p">,</span> <span class="s2">&#34;#BAE4B3&#34;</span><span class="p">,</span> <span class="s2">&#34;#74C476&#34;</span><span class="p">,</span> <span class="s2">&#34;#238B45&#34;</span><span class="p">],</span> <span class="n">bins</span><span class="o">=</span><span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">400</span><span class="p">,</span> <span class="mi">500</span><span class="p">,</span> <span class="mi">600</span><span class="p">,</span> <span class="mi">1000</span><span class="p">]),</span>
</span></span><span class="line"><span class="cl">    <span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">)</span></span></span></code></pre></div></div>
<p style="text-align: center;"><img src="https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/assets/data-color-fn.png" alt="Ten cars with horsepower and torque values colored in four shades of green according to fixed bins"></p>
<p>Because the bin boundaries are fixed rather than derived from each
column&rsquo;s range, the two columns share a common scale: the Rolls-Royce
Dawn&rsquo;s 563 horsepower and 575 lb-ft of torque fall in the same band and
receive the same green. This is something the automatic scaling of
<code>data_color()</code> cannot express on its own.</p>
<p>Finally, two changes to the defaults affect every table that uses
<code>data_color()</code>, whether or not it uses any of the new arguments. When
the method chooses a text color to sit on top of each fill, it now
judges legibility with APCA (the Accessible Perceptual Contrast
Algorithm) rather than the older WCAG contrast ratio. APCA models human
perception of contrast more faithfully, particularly for mid-tone
backgrounds, and you can see its choices in the tables above where light
text appears only on fills that are genuinely dark. If you need the
previous behavior, <code>contrast_algo=&quot;wcag&quot;</code> restores it. Palettes are also
now interpolated in the CIELAB color space, which is designed so that
equal numerical steps correspond to roughly equal perceived differences,
and the resulting gradients are smoother and more even than those
interpolated in RGB.</p>
<h2 id="accessible-html-tables">Accessible HTML tables
</h2>
<p>A table that looks clear on screen can still be difficult to navigate
for someone using a screen reader, because the visual relationship
between a cell and its headers is not by itself available to assistive
software. As of <code>v1.1.0</code>, the HTML that Great Tables produces carries
this information explicitly. Every column header and stub cell receives
an <code>id</code>, and every body cell lists the headers it belongs to in a
<code>headers</code> attribute. Stub cells are marked up as row headers with
<code>scope=&quot;row&quot;</code>, column headers carry <code>scope=&quot;col&quot;</code>, and the table as a
whole is labeled and described by its title and subtitle through
<code>aria-labelledby</code> and <code>aria-describedby</code>.</p>
<p>A new
<a href="https://posit-dev.github.io/great-tables/user-guide/accessibility.html" target="_blank" rel="noopener">Accessibility</a>
page in the User Guide describes all of this in more detail and it also
offers guidance on creating tables that work well for everyone.</p>
<h2 id="smaller-changes-worth-knowing-about">Smaller changes worth knowing about
</h2>
<p>Several smaller changes in these releases deserve a mention. The number
formatters gained a <code>min_sep_threshold=</code> argument that sets how many
digits a number must have before digit grouping applies. The <code>v1.1.0</code>
release also fixed more than sixty bugs, most of them in the number
formatters.</p>
<p>LaTeX output received a great deal of attention as well. Units notation
and <code>fmt_chem()</code> now render in LaTeX. Summary rows, decimal alignment,
and stub indentation are rendered correctly. A long list of escaping
problems with special characters has also been resolved.</p>
<h2 id="getting-started">Getting started
</h2>
<p>Great Tables <code>v1.1.0</code> is available now on PyPI, so
<code>pip install --upgrade great-tables</code> brings everything described here.
The <a href="https://posit-dev.github.io/great-tables/" target="_blank" rel="noopener">documentation site</a>
covers each new method with runnable examples, and the full changelogs
for
<a href="https://github.com/posit-dev/great-tables/releases/tag/v1.0.0" target="_blank" rel="noopener"><code>v1.0.0</code></a>
and
<a href="https://github.com/posit-dev/great-tables/releases/tag/v1.1.0" target="_blank" rel="noopener"><code>v1.1.0</code></a>
list every fix and change in detail.</p>
<p>Looking back across both releases, the common thread is a table that
knows more about what it contains. It knows that a fraction, a formula,
or a link has a proper form. It also knows which cells deserve emphasis
because of what they hold rather than where they sit. Many people
contributed to this work, and we are especially grateful to
<a href="https://github.com/LuisFigueroaG" target="_blank" rel="noopener">@LuisFigueroaG</a>,
<a href="https://github.com/raashish1601" target="_blank" rel="noopener">@raashish1601</a>,
<a href="https://github.com/manan28025" target="_blank" rel="noopener">@manan28025</a>,
<a href="https://github.com/Rodrigo-Palma" target="_blank" rel="noopener">@Rodrigo-Palma</a>,
<a href="https://github.com/taekop" target="_blank" rel="noopener">@taekop</a>,
<a href="https://github.com/blaahhrrgg" target="_blank" rel="noopener">@blaahhrrgg</a>, and
<a href="https://github.com/naseem173" target="_blank" rel="noopener">@naseem173</a>. If you have a feature to
request or a bug to report, the <a href="https://github.com/posit-dev/great-tables" target="_blank" rel="noopener">GitHub
repository</a> is the right
place to get in touch!</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-10-19_great-tables-1-1/assets/great-tables-v-1-1-0-release.png" length="1556573" type="image/png" />
    </item>
    <item>
      <title>Positron October Release Highlights</title>
      <link>https://opensource.posit.co/blog/2026-10-13_positron-2026-10-release/</link>
      <pubDate>Tue, 13 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-10-13_positron-2026-10-release/</guid>
      <dc:creator>Julia Silge</dc:creator><description><![CDATA[<div class="callout callout-note" role="note" aria-label="Note">
<div class="callout-header">
<span class="callout-title">Note</span>
</div>
<div class="callout-body">
<p><a href="https://positron.posit.co/?utm_source=opensource-posit-co&amp;utm_medium=referral&amp;utm_campaign=positron-2026-10-release-blog&amp;utm_content=intro-note" target="_blank" rel="noopener">Positron</a> is Posit&rsquo;s new, next-generation IDE for data science. Positron is designed to be an extensible, polyglot tool for exploring data and reproducible authoring in Python, R, and more.</p>
</div>
</div>
<p>Welcome back to another edition of our monthly Positron updates! Each month we share highlights from our <a href="https://positron.posit.co/release-notes?utm_source=opensource-posit-co&amp;utm_medium=referral&amp;utm_campaign=positron-2026-10-release-blog&amp;utm_content=release-notes-link" target="_blank" rel="noopener">latest release</a> and useful resources. <a href="https://opensource.posit.co/blog/2026-09-09_positron-2026-09-release">Last release</a> we told you about a redesigned welcome page, a first version of Import Data, new Posit Assistant features, expanded Data Connections, package vulnerability scanning, and a more responsive Console. This milestone brings a new ability for Posit Assistant to drive Positron itself, a built-in MCP server so you can bring your own coding agent, Data Connections on by default, faster language features for Quarto, and smoother interpreter and project setup.</p>
<h2 id="posit-assistant-can-drive-positron">Posit Assistant can drive Positron
</h2>
<p><a href="https://assistant.posit.co/?utm_source=opensource-posit-co&amp;utm_medium=referral&amp;utm_campaign=positron-2026-10-release-blog&amp;utm_content=assistant-section" target="_blank" rel="noopener">Posit Assistant</a> can now operate Positron itself, not just the R or Python session inside it. You can ask it to run a Shiny app, open a Parquet file in the Data Explorer, set up a Python environment, browse your data connections, or deploy to Posit Connect. Posit Assistant uses the same source of truth as the Positron UI, so it works with your real interpreters, packages, and connections rather than guessing at them.</p>
<img src="https://opensource.posit.co/blog/2026-10-13_positron-2026-10-release/assistant-data-explorer.png" data-fig-align="center" data-fig-alt="Positron with the Posit Assistant chat beside the Data Explorer, which shows pokemon.xlsx that Posit Assistant opened." />
<p>In practice, this means Posit Assistant can run and preview Dash, FastAPI, Flask, Gradio, marimo, Streamlit, and Shiny apps with the same app commands you use, see which apps are running along with their status and URL, and stop them. It can show HTML files and URLs in the Viewer pane, and it can read, take screenshots of, and interact with data apps and other content there, which makes it much more useful for checking its own work on an app. It can read your configured and detected Data Connections, browse a connection&rsquo;s schema, and give you the code to open it. It can also tell which interpreter a project uses, explain why an installed interpreter isn&rsquo;t showing up, and make that interpreter available, and it knows the commands for deploying to Connect through Posit Publisher.</p>
<p>To try this preview feature, enable the <a href="positron://settings/assistant.previewFeatures"><code>assistant.previewFeatures</code></a> setting, and tell us what you think in the <a href="https://github.com/posit-dev/positron/discussions/16280" target="_blank" rel="noopener">GitHub discussion</a>.</p>
<h2 id="bring-your-own-coding-agent">Bring your own coding agent
</h2>
<p>If you already have a favorite coding agent other than Posit Assistant, this release lets it work alongside you in Positron. A new built-in Model Context Protocol (MCP) server lets coding agents such as Claude Code, Codex, and Gemini CLI work in your live Python and R sessions. Our goal is to give these agents a set of tools comparable to what Posit Assistant has: agents can list your sessions, run code in the Console, inspect objects without cluttering your history, read recent session history, interrupt a long-running computation, look at the current plot, and search for and run Positron commands. These other agents may not have the data science expertise that Posit Assistant has, but they can still help you write code and explore data.</p>
<p>You stay in the loop on what an agent does. Code that an agent runs shows up in the Console with the agent&rsquo;s name next to it, so you can always tell agent code from your own. Console tabs also now show a dot when code runs in a console you aren&rsquo;t looking at, whether that code came from Posit Assistant or an external agent.</p>
<img src="https://opensource.posit.co/blog/2026-10-13_positron-2026-10-release/claude-code-in-positron.png" data-fig-align="center" data-fig-alt="Claude Code in Positron&#39;s editor area, asked whether to visualize country-to-country twinning relationships as a heatmap or a network graph. It calls the Positron execute_code and get_plot tools, then recommends the heatmap and explains it. In the Console, the R code it ran is labeled Claude Code, and the Plots pane shows the resulting heatmap of twinning links between the top countries." />
<p>To try this experimental feature, enable the <a href="positron://settings/ai.mcp.enabled"><code>ai.mcp.enabled</code></a> setting. Positron configures Claude Code for you automatically, and the <em>Positron MCP: Add to Coding Agent</em> command sets up the Codex and Gemini CLIs. For any other MCP client, <em>Copy Connection Details</em> gives you a URL and token to connect with.</p>
<h2 id="data-connections-on-by-default">Data Connections on by default
</h2>
<p><a href="https://positron.posit.co/data-connections?utm_source=opensource-posit-co&amp;utm_medium=referral&amp;utm_campaign=positron-2026-10-release-blog&amp;utm_content=data-connections-section" target="_blank" rel="noopener">Data Connections</a> is now the default way to work with databases and data warehouses in Positron. Data Connections connects to databases directly, without needing a Python or R session, and it replaces both the older Connections pane and the Catalog Explorer. If you need the older Connections pane, set <a href="positron://settings/dataConnections.enabled"><code>dataConnections.enabled</code></a> to <code>false</code> and reload the window.</p>
<p>This release also extends what you can connect to and how you sign in. Amazon Redshift connections can sign in with AWS Identity and Access Management (IAM), for both Redshift Serverless and provisioned clusters, using credentials from the standard AWS credential provider chain. On Posit Workbench, Snowflake and Databricks connections can use the session&rsquo;s managed credentials with no credential input at all. Snowflake users get the most new features this month; the Data Connections pane shows Snowflake semantic views with their dimensions, facts, metrics, and relationships, you can browse Snowflake stages as folders and files, and connections in <code>connections.toml</code> show up automatically as detected connections.</p>
<p>Smaller improvements round out the experience. When you open a DuckDB or SQLite file from the Explorer, Positron offers to create a data connection for it. <strong>Connect With</strong> can now generate ggsql code for SQLite, DuckDB, ODBC, PostgreSQL, and Redshift connections.</p>
<img src="https://opensource.posit.co/blog/2026-10-13_positron-2026-10-release/connections-ggsql-bikeshare.gif" data-fig-align="center" data-fig-alt="The Data Connections pane in Positron showing a Bikeshare demo SQLite connection. Choosing ggsql under Connect With opens a dialog with the generated connection code. After clicking Connect, the code runs in a ggsql console, followed by a SQL query that counts bikes by bike type and returns a results table." />
<p>The <strong>Add Data Connection</strong> dialog lists each driver with a short description, and Positron now tells you when a connection fails to open or expand. For slow tables and views, the Data Explorer now shows a progress indicator and placeholders while data arrives, and it loads column summaries in two passes so that missing-value counts appear quickly and sparklines follow later.</p>
<h2 id="faster-language-features-for-quarto">Faster language features for Quarto
</h2>
<p>Positron now provides completions, hover, diagnostics, outline, formatting, and other language features natively for R and Python cells in Quarto and R Markdown documents. Before, the Quarto extension wrote temporary virtual documents to disk to power these features. Positron now uses a virtual notebook in memory instead, which is faster (especially in remote sessions) and solves a whole category of bugs, such as Python imports that did not resolve correctly. It also means Go to Definition, Find References, and Rename work across R cells, finding names that earlier cells define.</p>
<p>The document outline for Quarto and R Markdown documents with many code chunks now updates quickly, and it no longer shows duplicate groups or symbols. Inline output, including HTML tables and the inline Data Explorer, now scales with your editor font size. If you run into problems with the new language features and need to go back to the old behavior, set <a href="positron://settings/quarto.embeddedLanguageFeatures.native"><code>quarto.embeddedLanguageFeatures.native</code></a> to <code>false</code>.</p>
<h2 id="interpreter-project-setup">Interpreter project setup
</h2>
<p>Positron is better at setting up the right Python environment for your project. When a workspace has a <code>uv.lock</code> or <code>pixi.lock</code> file but no environment yet, Positron offers to create it with <code>uv sync</code> or <code>pixi install</code>, which is especially handy right after you clone a project. If uv is missing, the New Folder flow can install it for you, and package installs and the Packages pane work with uv right away. When Positron finds a new Python environment in a workspace, it now offers to start a console session in it, and system Python installations now show last in the interpreter picker, below uv, venv, conda, and pyenv environments.</p>
<img src="https://opensource.posit.co/blog/2026-10-13_positron-2026-10-release/uv-lock-create-env.gif" data-fig-align="center" data-fig-alt="A Shiny dashboard Quarto document open in Positron. A notification says the project has a uv.lock file but no virtual environment and offers to run uv sync. After clicking Yes, Positron creates the environment and then offers to start a console session with it." />
<p>For more control over interpreters in <em>both</em> Python and R, interpreter path settings now support <code>${workspaceFolder}</code>, so a project can point to an interpreter that lives inside it. The new <a href="positron://settings/interpreters.definitions"><code>interpreters.definitions</code></a> setting lets you define additional R and Python interpreters, each with its own label, environment variables, and startup script. This is useful for workflows like loading environment modules or configuring rJava before a session starts. Set <a href="positron://settings/interpreters.discovery"><code>interpreters.discovery</code></a> to <code>definitionsOnly</code> to show only the interpreters you have defined for a language.</p>
<h2 id="whats-coming-next">What&rsquo;s coming next
</h2>
<ul>
<li>Meet Posit at <a href="https://posit.co/events/snowflake-world-tour-2026-nyc?utm_source=opensource-posit-co&amp;utm_medium=referral&amp;utm_campaign=positron-2026-10-release-blog&amp;utm_term=snowflake&amp;utm_content=events-section" target="_blank" rel="noopener">Snowflake World Tour NYC</a> on October 15. Stop by our booth, schedule time with a Posit expert, or catch our theater session on AI-powered data science where your data lives, inside Snowflake.</li>
<li>Join us at <a href="https://opensource.posit.co/events/data-outpost-2026/" target="_blank" rel="noopener">Data Outpost</a> on November 4-5 in San Francisco. I&rsquo;ll be speaking on &ldquo;The SQL Agent Harness We Didn&rsquo;t Mean to Build,&rdquo; about how the SQL tools we built in Positron for people turned out to already be a harness for AI assistants.</li>
</ul>
<div class="callout callout-tip" role="note" aria-label="Tip">
<div class="callout-header">
<span class="callout-title">Tip</span>
</div>
<div class="callout-body">
<p><a href="https://positron.posit.co/download?utm_source=opensource-posit-co&amp;utm_medium=referral&amp;utm_campaign=positron-2026-10-release-blog&amp;utm_content=download-cta" target="_blank" rel="noopener">Download Positron</a> to try out the new features and improvements in this release!</p>
</div>
</div>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-10-13_positron-2026-10-release/featured.svg" length="91754" type="image/svg&#43;xml" />
    </item>
    <item>
      <title>Correct, transparent, and reproducible data agents</title>
      <link>https://opensource.posit.co/blog/2026-10-09_ai-newsletter/</link>
      <pubDate>Fri, 09 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-10-09_ai-newsletter/</guid>
      <dc:creator>Sara Altman</dc:creator>
      <dc:creator>Simon Couch</dc:creator><description><![CDATA[<div class="callout callout-tip" role="note" aria-label="Tip">
<div class="callout-header">
<span class="callout-title"><strong>Subscribe to the AI Newsletter!</strong></span>
</div>
<div class="callout-body">
<p>The AI newsletter is published as an RSS feed. Follow it in your favorite reader:</p>
<p><a href="https://opensource.posit.co/tags/ai-newsletter/index.xml" target="_blank" rel="noopener noreferrer" class="btn-shortcode inline-flex mb-5 mr-5 items-center px-4 py-3 text-sm leading-5 gap-2 rounded-lg bg-blue-400 !text-white font-semibold align-middle hover:bg-blue-500 transition no-underline">Subscribe via RSS</a></p>
<p><strong>Want the newsletter as an email?</strong> Paste the feed URL, <a href="https://opensource.posit.co/tags/ai-newsletter/index.xml" target="_blank" rel="noopener">https://opensource.posit.co/tags/ai-newsletter/index.xml</a>, into a free RSS-to-email service such as <a href="https://blogtrottr.com/" target="_blank" rel="noopener">Blogtrottr</a>, <a href="https://feedrabbit.com/" target="_blank" rel="noopener">Feedrabbit</a>, or <a href="https://follow.it/" target="_blank" rel="noopener">Follow.it</a>, and each new issue will arrive in your inbox.</p>
</div>
</div>
<style>
.blog-toc-content ul ul {
  display: none;
}
.prose img[src*="images/slides/"],
.prose video.column-page {
  border-radius: 0.25rem;
  box-shadow:
    0 1rem 2.5rem rgba(28, 45, 70, 0.14),
    0 0.2rem 0.6rem rgba(28, 45, 70, 0.1);
}
.prose img[src*="images/slides/"] {
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}
.prose img[src*="images/slides/"]:hover,
.prose img[src*="images/slides/"]:focus-visible {
  box-shadow:
    0 1.2rem 3rem rgba(28, 45, 70, 0.2),
    0 0.25rem 0.75rem rgba(28, 45, 70, 0.14);
  transform: translateY(-2px);
}
</style>
<p>Last month, we gave a posit::conf(2026) keynote on building correct, transparent, and reproducible data agents. The talk brings together many themes from this newsletter, so this week we&rsquo;re sharing an annotated walkthrough. You can also see the full slide deck <a href="https://pos.it/keynote" target="_blank" rel="noopener">here</a>.</p>
<h2 id="correctness-vsconvenience">Correctness vs. convenience
</h2>
<p><strong>(Simon)</strong></p>
<p>This morning, your VP pulled up a coding agent and asked a reasonable question:</p>
<blockquote>
<p>How is traffic trending for our site?</p>
</blockquote>
<p>The agent looked around the workspace, found a table that seemed relevant,
wrote a SQL query against it, and returned a polished chart. Daily visits, it
said, were down 64% over the last 90 days.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/vp-site-traffic-reminder.webp" class="column-page" loading="lazy" data-fig-alt="A chat interface shows the question “how is traffic trending for our site?” The agent answers that daily visits are down 64 percent and displays a sharply declining line chart." width="1280" height="720" />
<p>The variation looks a little tight, and the bend is a little sharp. Is there
any possible reason we might see that bend other than a genuine change in site
traffic?</p>
<p>It turns out that a version of Chrome released 45 days earlier fired the
page-view event differently, so it was not aggregated correctly in the
database. As people updated Chrome, it appeared that site visits were trending
down. This was not even the table the data science team used to track site
traffic.</p>
<p>But you are not there! Your VP sees this chart and takes it to the rest of the
leadership team. They decide to restructure the organization and spend millions
of dollars to reverse the trend.</p>
<p>A month later, somebody asks, &ldquo;Could you recreate that chart? Let&rsquo;s see how
things are trending now.&rdquo; The agent cannot find it. Many coding agents delete
conversation histories after 30 days, and they often do data analysis in
temporary files so they do not clutter the project directory. The source code
for the analysis is long gone.</p>
<p>The coding agent offers to recreate the chart. It looks around the workspace,
finds a table, and runs some SQL. The number was going up the whole time.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/site-traffic-recreated.webp" class="column-page" loading="lazy" data-fig-alt="A chat interface cannot find the earlier conversation or its files. After recreating the analysis with a different warehouse table, it reports that daily visits increased 22 percent and shows an upward-trending chart." width="1280" height="720" />
<p>This is a fictional story, but we&rsquo;e seen situations like this internally
at Posit and at many of the organizations we work with. It is becoming normal
to <em>vibe-analyze</em> data: ask an agent a question, receive a plausible answer,
and move on without understanding how it was produced.</p>
<h3 id="the-tension-between-correctness-and-convenience-is-not-new">The tension between correctness and convenience is not new
</h3>
<p>Posit CTO Joe Cheng summarized the current moment this way:</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/convenience-versus-correctness.webp" class="column-page" loading="lazy" data-fig-alt="A cream-colored slide displays the quotation “In the battle between convenience and correctness, convenience is winning,” attributed to Joe Cheng, Posit CTO." width="1280" height="720" />
<p>AI has broadened the group of people who can convincingly do data analysis, but
many may have no idea what data scientists go through to produce a trustworthy
analysis.</p>
<p>Joe said this a month before the keynote, but he could have said it seven years
ago. In 2019, the beverage company Conviviality disclosed that <a href="https://www.accountingweb.co.uk/business/management-accounting/convivialitys-spreadsheet-hell-sinks-the-business" target="_blank" rel="noopener">a spreadsheet
arithmetic error had contributed £5.2 million to a £14 million forecasting
mistake</a>.
When that &ldquo;innocent spreadsheeting mistake&rdquo; came to light, the business sank.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/conviviality-spreadsheet-error.webp" class="column-page" loading="lazy" data-fig-alt="A news article about Conviviality reporting a spreadsheet arithmetic error that contributed 5.2 million pounds to a 14 million pound forecasting error." width="1280" height="720" />
<p>Or Joe could have said it 20 years ago, when <a href="https://www.science.org/doi/10.1126/science.314.5807.1856" target="_blank" rel="noopener">a sign error in closed-source
protein-modeling
software</a> sent a
research field down the wrong path. A lab published landmark study after
landmark study while other labs struggled to reproduce its findings. Only
after another lab found a protein structure that was nearly a mirror image of
one that the first lab had published did the first lab audit its source code.
They found a negative sign where it did not belong and retracted five papers.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/protein-modeling-software-error.webp" class="column-page" loading="lazy" data-fig-alt="A Science article titled &#39;Error prompts retractions&#39; describing a sign error in protein-modeling software." width="1280" height="720" />
<p>There were threats to correctness in data analysis long before AI. Posit&rsquo;s
stance has never been that people must sacrifice convenience for correctness.
While preparing the talk, I found this quote in a blog post old enough to
refer to itself as a &ldquo;weblog&rdquo;:</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/trustworthy-and-intuitive.webp" class="column-page" loading="lazy" data-fig-alt="A cream-colored slide quotes JJ Allaire: “Our goal is to develop a powerful tool that supports trustworthy, high quality analysis. At the same time, we want RStudio to be as straightforward and intuitive as possible.”" width="1280" height="720" />
<p>JJ was saying that a tool could be both correct and convenient. (By
convenient, we do not mean 7-Eleven. We mean straightforward and intuitive.😜)</p>
<p>Can we take the same stance toward AI? Is it possible to make data analysis
agents that are both correct and convenient for end users?</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/correct-and-convenient.webp" class="column-page" loading="lazy" data-fig-alt="Two overlapping circles, one blue and one orange, form a Venn diagram above the words &#39;Correct and convenient.&#39;" width="1280" height="720" />
<h2 id="why-build-ai-tools-at-all">Why build AI tools at all?
</h2>
<p><strong>(Sara)</strong></p>
<p>This pull between correctness and convenience has been on our minds throughout
the new, exciting age of LLMs. In 2025 and early 2026, AI started to feel
really, really convenient for data analysis. That made us worry about
correctness.</p>
<p>In August 2025, when we released Databot, our state-of-the-art exploratory data
analysis agent, we did so under what was essentially a warning label. The
release post was one of the first things I worked on after joining the AI team,
and it gave me the chance to do something I think I am particularly good at:
be pessimistic.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/databot-flotation-device.webp" class="column-page" loading="lazy" data-fig-alt="A split slide dated August 2025 shows an illustration of the Databot mascot wearing a bright orange flotation device." width="1280" height="720" />
<p>We were all really excited about Databot. It felt like flying through your
data, gathering insights faster than you thought would ever be possible. It was
precisely that convenience that worried us. People might trust it because they
were having so much fun, even when it was wrong. So we wrote an entire article
detailing basically every way we thought Databot might fail.</p>
<p>If you were at posit::conf(2025), you might remember Joe Cheng describing it as
both the most exciting and the most dangerous software he had worked on in his
30-year career.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/exciting-and-dangerous.webp" class="column-page" loading="lazy" data-fig-alt="A quotation from Joe Cheng says that Databot is both the most exciting software and the most dangerous software he has worked on in his 30-year career." width="1280" height="720" />
<p>That raises a fair question, one we contemplate ourselves on a weekly basis:
If AI causes all this chaos and makes all these mistakes, why are we doing
this? Why involve ourselves at all?</p>
<p>There are many answers. We&rsquo;ll focus on one.</p>
<h3 id="curiosity-and-exploration">Curiosity and exploration
</h3>
<p>Before joining the AI team, I taught data science. One thing that always
struck me was what brought people with very different backgrounds into the
field. The thing that united many of them was a sense of curiosity. Maybe they
were curious about a scientific field, computers, statistics, or how R and
Python themselves work. Data rewards that curiosity: There are datasets on
almost everything.</p>
<p>But even as an undergraduate who knew some statistics and a little R, I often
felt like I was looking at an ocean from above. The dataset was right in front of
me, and I knew there was so much going on, but I just couldn&rsquo;t see it.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/mission-ocean.webp" class="column-page" loading="lazy" data-fig-alt="An aerial photograph shows pale blue ocean water meeting a sandy shoreline, with a small dark shape visible below the surface." width="1280" height="720" />
<p>As a graduate student, I learned the tidyverse and more about data science. As
I got better at using those tools, I finally felt like I had what I needed to
ask and answer questions about my data.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/below-the-surface.webp" class="column-page" loading="lazy" data-fig-alt="A split slide pairs the words &#39;The right tools let us see below the surface&#39; with a photograph of rays swimming underwater." width="1280" height="720" />
<p>The right tools let us see below the surface. They enable that curiosity.</p>
<p>That same curiosity motivates our work now. We are curious about how these
models work, how we can build things around them to make them work better, and,
maybe most importantly, how we can turn them into tools that open new worlds of
analysis. For us, AI is a continuation of work we have always done: finding new
ways to explore data.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/ai-as-continuation.webp" class="column-page" loading="lazy" data-fig-alt="A cream-colored slide reads, &#39;AI is a continuation of our work to find new ways to explore data,&#39; with &#39;continuation&#39; and &#39;new ways to explore data&#39; highlighted." width="1280" height="720" />
<h3 id="the-models-got-better">The models got better
</h3>
<p>I also wanted to spend some time on what has changed since August 2025, when
we released that warning-label image. One major thing happened: The models got
better.</p>
<p>About a year before the keynote, we ran an experiment to understand how well
models interpret plots. We showed them plots based on a transformed diamonds
dataset and asked them to describe what they saw.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/bluffbench-counterintuitive-plot.webp" class="column-page" loading="lazy" data-fig-alt="A scatterplot shows diamond price decreasing as carat increases. An overlaid model response incorrectly says there is a strong positive relationship, followed by the question of whether models can interpret plots that contradict their expectations." width="1280" height="720" />
<p>The models gave answers like, &ldquo;There is a strong positive relationship between
carat and price.&rdquo; That sounds plausible until you look at the plot, which shows
the opposite. Behind the scenes, we had manipulated the data to reverse a
canonical relationship, so larger diamonds were, unintuitively, less expensive.</p>
<p>We wanted to know whether the models could see what was in front of them and
interpret plots that contradicted their expectations. A year ago, the answer
was largely no.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/bluffbench-november-2025.webp" class="column-page" loading="lazy" data-fig-alt="A horizontal stacked bar chart titled “Models often report what they expect to see, not what’s plotted.” GPT-5, Gemini Pro 2.5, and Claude Sonnet 4.5 are mostly marked incorrect." width="1280" height="720" />
<p>In November 2025, even the best models of the time were abysmal at this task.
They said what they expected to see instead of paying attention to what was
actually happening in the plot.</p>
<p>We tried all sorts of interventions to improve the
<a href="https://posit-dev.github.io/bluffbench/" target="_blank" rel="noopener">bluffbench</a> scores, and absolutely
nothing worked. Then we waited six months.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/bluffbench-september-2026.webp" class="column-page" loading="lazy" data-fig-alt="A horizontal stacked bar chart titled “Models got better at interpreting counterintuitive plots.” Recent thinking models have much larger correct segments than models evaluated in 2025." width="1280" height="720" />
<p>By May 2026, the major AI companies were releasing models that
were noticeably better at the task. By September, the numbers had jumped dramatically:
The models could interpret these counterintuitive plots.</p>
<p>The models got better. That does not mean data science is solved.</p>
<h3 id="models-still-make-mistakes">Models still make mistakes
</h3>
<p>After that experiment, we asked another question: Can models identify
data-quality issues in visualizations? In
<a href="https://github.com/posit-dev/bluffbench2" target="_blank" rel="noopener">bluffbench2</a>, we again showed them
plots and asked what they saw.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/bluffbench2-data-artifact.webp" class="column-page" loading="lazy" data-fig-alt="A scatterplot of sleep hours against stress score has an overall negative trend. Within the cloud, a suspicious subset of points falls exactly along a straight line." width="1280" height="720" />
<p>If you look carefully, there&rsquo;s a suspiciously straight line through the cloud
of points. If we really cared about this data, that&rsquo;s something to investigate: Did something weird happen when the data was
created? We wanted to know whether models would do the same.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/bluffbench2-results.webp" class="column-page" loading="lazy" data-fig-alt="A horizontal bar chart titled “Frontier models still struggle to notice subtle data quality issues.” Every evaluated model scores below 50 percent." width="1280" height="720" />
<p>It turns out they don&rsquo;t really. Even the leading models were not very good at
this task. They struggle to notice subtle data-quality issues.</p>
<p>But there&rsquo;s another problem. Data analysis is not just you, plus a good model,
plus your data. It also depends on context that is not necessarily in your CSV
file, warehouse table, or JSON file.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/context-outside-the-data.webp" class="column-page" loading="lazy" data-fig-alt="A cream-colored slide reads, &#39;Data analysis depends on context that is not in the data,&#39; with the word &#39;context&#39; highlighted." width="1280" height="720" />
<p>All data is constructed. It all has context. That context
might live in a data dictionary, a Markdown file, or a semantic view. Maybe it
just lives in the head of a coworker who has been at the organization for 15
years, knows absolutely everything, and has never written a single thing down.</p>
<p>That context is not inherently inaccessible to models. We could give it to
them. But it has to be in the right format, it has to be curated, and it has to
itself be correct.</p>
<p>So the models have gotten better, but data analysis with AI is not solved. The
question then becomes: How do we make AI-involved analysis correct?</p>
<h2 id="how-do-we-make-ai-for-data-analysis-trustworthy">How do we make AI for data analysis trustworthy?
</h2>
<p><strong>(Sara)</strong></p>
<p>Here&rsquo;s a common thought about AI: It&rsquo;s untrustworthy, but useful. To make it
trustworthy, we need to add in a person.</p>
<p>Here&rsquo;s a simple version of what that might look like. The agent or model does stuff, probably writes a bunch of code. A person then looks at that code and verifies, approves, or
redirects as needed. That feeds back into the agent. This intuitively can feel really appealing. The agent gets to do what it&rsquo;s
good at, the person does what they&rsquo;re good at, and there&rsquo;s an expert there to keep everything
from going off the rails.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/human-in-the-loop.webp" class="column-page" loading="lazy" data-fig-alt="A diagram presents a common division of labor in which an AI system produces work and a human verifies or supervises it." width="1280" height="720" />
<p>And so it&rsquo;s kind of tempting to apply this pattern everywhere. Any time the agent might make
a mistake, we have a person there to clean it up and make sure nothing bad
happens. We call this relatively simplistic view the <em>slap a human on it</em>
approach.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/slap-a-human-on-it.webp" class="column-page" loading="lazy" data-fig-alt="A cream-colored slide shows a roll of black repair tape, used as a metaphor for attaching a human reviewer to an AI system without designing the interaction." width="1280" height="720" />
<p>In this approach, you don&rsquo;t really think very much about what the person will actually do. How will
they apply their expertise? What is the purpose of their involvement? How will
we keep them from technically being in the loop but without actually applying
their expertise?</p>
<p>I&rsquo;m being a bit facetious, but this isn&rsquo;t that far from how we wrote risk mitigation with Databot a year earlier. We said that
Databot and LLMs were not at a point where users could abdicate responsibility.
You still needed all of your data skills to catch errors, interpret results in
context, and avoid being misled by confident but incorrect claims.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/user-responsibility.webp" class="column-page" loading="lazy" data-fig-alt="A quotation over a beach image says that people cannot abdicate responsibility or suspend skepticism when working with LLMs and that their expertise helps them catch errors and avoid confident but incorrect claims." width="1280" height="720" />
<p>And all of that is still true! But
we never said <em>how</em> this was supposed to happen. We assumed that if an expert
was there, they would catch the mistakes.</p>
<p>But just adding a person doesn&rsquo;t really guarantee a better result. Human&ndash;AI combinations do
not reliably outperform the better of the human or AI working
alone.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/human-ai-evidence.webp" class="column-page" loading="lazy" data-fig-alt="A slide reads, &#39;Adding a human does not guarantee a better result,&#39; followed by points about human-AI performance, approval fatigue, trust, timing, cognitive load, social cues, and information design." width="1280" height="720" />
<p>People also get tired of approving requests, and then they stop reading them.
Think about the last time your coding agent showed you a command to approve.
Did you carefully read it, or did you hit approve as quickly as possible and
feel annoyed that it even bothered to ask?</p>
<p>Human decision-making is not fixed. How much you trust the system, how much you
trust the people who built it, the timing of the information, your cognitive
load, and how much your coworkers trust the agent can all influence the
decision you make. Even if you are an expert who makes the right decision
outside an interaction with an agent, adding the agent might change that
decision.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/people-are-not-fixed.webp" class="column-page" loading="lazy" data-fig-alt="A cream-colored slide reads, &#39;People are not fixed safety components,&#39; with the final phrase highlighted." width="1280" height="720" />
<p>So how do we design the entire system to produce correct work? How do we build
trust and correctness into the agent itself, and design interactions with
users that actually support their expertise?</p>
<p>That maps onto two principles we returned to throughout the talk:</p>
<ol>
<li>Help the agent be correct.</li>
<li>Make it less bad when the agent is wrong.</li>
</ol>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/agent-correctness-goals.webp" class="column-page" loading="lazy" data-fig-alt="A cream-colored slide reads, &#39;Help the agent be correct&#39; and &#39;Make it less bad when the agent is wrong.&#39;" width="1280" height="720" />
<h2 id="posit-assistant">Posit Assistant
</h2>
<p><strong>(Simon)</strong></p>
<p><a href="https://pos.it/assistant" target="_blank" rel="noopener">Posit Assistant</a> is Posit&rsquo;s coding and data science
agent. It is available in RStudio, Positron, and the terminal. When it is
running inside an IDE, it works in the same R or Python session you&rsquo;re using.
You can use whatever model you want from whatever provider you have access to.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/posit-assistant.webp" class="column-page" loading="lazy" data-fig-alt="A blue slide displays the Posit Assistant wordmark and orange circular logo." width="1280" height="720" />
<p>For the demo, I returned to one of my first experiences of seeing below the
surface with data science. In an introductory statistics class, I analyzed
flight data to understand whether I could book tickets that were less likely
to be delayed. I used ggplot2 and dplyr, pushing data frames around and
visualizing them.</p>
<p>I asked Posit Assistant to find an R package with Houston flight data and
retrieve data from the previous year. It found <code>anyflights</code>, read its
documentation, and generated the correct call.</p>
<video class="column-page" loop muted playsinline controls preload="metadata" aria-label="Posit Assistant searches for an R package that provides data about flights from Houston.">
<source src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/videos/posit-assistant-web-fetch.mp4" type="video/mp4">
</video>
<p>Next, I asked it to grab data from the same time the previous year. The agent read the package documentation and so was able to write the code with the right arguments the first time.</p>
<video class="column-page" loop muted playsinline controls preload="metadata" aria-label="Posit Assistant reads the anyflights package documentation and writes code to retrieve Houston flight data.">
<source src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/videos/posit-assistant-docs.mp4" type="video/mp4">
</video>
<p>We have seen that many coding agents have a superficial relationship with data quality, and we wondered whether we could do better. Posit
Assistant proactively recommends cleaning the data and has a dedicated data-cleaning mode. It runs scratch code to look for
missing values, outliers, and similar issues. Once it finds them, it surfaces questions to the user in an interactive dialog.</p>
<video class="column-page" loop muted playsinline controls preload="metadata" aria-label="Posit Assistant enters data-cleaning mode, asks the user about missing values and outliers, and records the decisions in a persistent cleaning script.">
<source src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/videos/posit-assistant-clean-data.mp4" type="video/mp4">
</video>
<p>In the demo, the agent found missing values in a relevant column, then found some flights with departure delays of multiple days. I chose to keep both:
Those outliers represented what really happened.</p>
<p>At the end of cleaning mode, the agent wrote a persistent file in the project
directory to ingest and clean the data. When someone revisits the analysis,
they can reproduce those steps.</p>
<p>Posit Assistant also shows plots inside the conversation. It is nice to be able to see them, but we
also think it is necessary: Our evaluations show that agents cannot reliably
interpret plots. When one carrier appeared unusually delayed, it checked the sample size
and found only 32 flights, suggesting that we should not read too much into the
pattern.</p>
<video class="column-page" loop muted playsinline controls preload="metadata" aria-label="Posit Assistant plots departure delays by carrier, checks the sample size behind an apparent anomaly, and finds that the carrier has only 32 flights.">
<source src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/videos/posit-assistant-carriers.mp4" type="video/mp4">
</video>
<p>Once the analysis was complete, I asked the agent to turn it into a persistent
Quarto report.</p>
<video class="column-page" loop muted playsinline controls preload="metadata" aria-label="Posit Assistant uses a specialized skill to turn the flight-delay analysis into a persistent Quarto report.">
<source src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/videos/posit-assistant-report.mp4" type="video/mp4">
</video>
<p>I have one more &ldquo;little zoomy zoom&rdquo;: The entire conversation cost five cents.
<video class="column-page" loop muted playsinline controls preload="metadata" aria-label="The Posit Assistant conversation displays the selected GLM 5.3 Flash model, token usage, and a total cost of five cents."><source src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/videos/posit-assistant-model-cost.mp4" type="video/mp4"></video></p>
<p>Part of our mission at Posit is to provide tools to people regardless of their
economic means.</p>
<p>Posit Assistant is designed to be
token-efficient and can use capable, inexpensive open-weight models such as GLM
5.3 Flash through Posit AI Pass. We spend a lot of time
watching the open-weights model space for models on the Pareto frontier:
capable of data analysis and orders of magnitude cheaper than frontier models.</p>
<p>Returning to the two principles, part of helping the agent be correct is, quite
literally, asking nicely. We say, &ldquo;Pretty please pay attention to data
cleanliness. Pretty please be open to uncertainty when carrying out data
analysis.&rdquo;</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/posit-assistant-correctness.webp" class="column-page" loading="lazy" data-fig-alt="A slide says to help the agent be correct by encouraging sound statistics and reproducibility practices, and make errors less bad by using the user&#39;s expertise and sharing an R or Python environment." width="1280" height="720" />
<p>We also design interactions around the user&rsquo;s expertise: Cleaning mode asks
about the data-generating process, plots remain visible, and the user shares
the agent&rsquo;s R or Python session.</p>
<p>Posit Assistant assumes that the user is a data scientist, analyst, or someone
else who writes code and wants to work in an IDE, close to that code. But what
if the user is not a data scientist? How do we help them get correct answers,
too?</p>
<h2 id="introducing-commons">Introducing commons
</h2>
<p><strong>(Sara)</strong></p>
<p>Let&rsquo;s return to our vibe-analyzing VP. I think it&rsquo;s easy to say, &ldquo;They just
shouldn&rsquo;t be doing this kind of analysis.&rdquo; But let&rsquo;s be on their side for a
moment. They had a question, they wanted it answered, and so they&rsquo;re going to
reach for a tool that gives them an answer.</p>
<p>The problem is that they reached for the wrong tool and it gave them the wrong answer.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/vp-site-traffic-reminder.webp" class="column-page" loading="lazy" data-fig-alt="A chat interface shows the VP asking how traffic is trending for the site. The agent reports that daily visits are down 64 percent and displays a sharply declining line chart." width="1280" height="720" />
<p>The data team already has vetted, maintained code that computes site traffic
correctly. We call this <em>trusted code</em>. Trusted code might live in a package, Shiny app,
Quarto document, report, or dashboard.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/trusted-code.webp" class="column-page" loading="lazy" data-fig-alt="A cream-colored slide displays the words &#39;Trusted code,&#39; with &#39;Trusted&#39; highlighted in orange." width="1280" height="720" />
<p>Instead of having the model write bespoke code from scratch every time someone
asks a question, what if it could use that trusted code?</p>
<p>This is one of the core ideas behind a new open-source package that we&rsquo;re
excited to share with you all today. It&rsquo;s called commons.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/commons.webp" class="column-page" loading="lazy" data-fig-alt="A blue slide displays the orange commons bird logo and a link to pos.it/commons." width="1280" height="720" />
<p><a href="https://pos.it/commons" target="_blank" rel="noopener">commons</a> helps data scientists build trustworthy data
agents for their collaborators. It is an open-source R and Python package built
on the ellmer, chatlas, and shinychat stack.</p>
<p><strong>(Simon)</strong></p>
<p>Here is how the VP&rsquo;s analysis works with a commons agent. When the VP asks,
&ldquo;How is traffic trending for our site?&rdquo; the first thing the agent does is
search for a trusted calculation. If it finds one that answers the question,
it invokes that calculation directly.</p>
<video class="column-page" loop muted playsinline controls preload="metadata" aria-label="A commons agent answers a site-traffic question by running a trusted calculation, displaying a chart showing a 22 percent increase, and marking the answer with a green shield.">
<source src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/videos/commons-traffic-trend.mp4" type="video/mp4">
</video>
<p>The calculation returns a plot and a green shield indicating that the answer
came from a trusted calculation. commons adds that marker deterministically;
the agent itself does not control it.</p>
<p>What makes coding agents so convenient is that they are everything tools. They
will write their own R, Python, or SQL code to answer a question. Trusted
calculations cannot cover every question, so commons has a fallback path.</p>
<p>When no trusted calculation exists, the agent can use context authored by the
data team. commons verifies any citation against that context before displaying
its blue citation marker.</p>
<video class="column-page" loop muted playsinline controls preload="metadata" aria-label="A commons agent charts declining page views, uses trusted context to explain the instrumentation change behind the decline, and displays a blue citation marker.">
<source src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/videos/commons-page-views.mp4" type="video/mp4">
</video>
<p>If there is neither a trusted calculation nor supporting context to cite, the agent
can write code, but commons displays a yellow warning so the user knows to treat
the answer cautiously.</p>
<video class="column-page" loop muted playsinline controls preload="metadata" aria-label="A commons agent writes custom code to find the day with the most site visits, then marks the answer with a yellow warning because it did not use a trusted calculation or cite trusted context.">
<source src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/videos/commons-most-visits.mp4" type="video/mp4">
</video>
<p>Here&rsquo;s a diagram of the various ways the agent can come up with answers and how the trust relationships are mapped.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/commons-trust-flow.webp" class="column-page" loading="lazy" data-fig-alt="A flow diagram shows commons first searching trusted calculations. A found calculation leads to a verified marker. Otherwise the agent searches context and writes SQL, R, or Python, leading to either a citation marker or a lower-trust warning." width="1280" height="720" />
<p>So far, we&rsquo;ve been talking about the VP&rsquo;s experience with the commons agent. What is it like to work with
commons as a data scientist? There are three main loops: build, deploy, and improve.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/commons-lifecycle.webp" class="column-page" loading="lazy" data-fig-alt="Three cards describe the commons lifecycle: build by connecting the agent to trusted code, deploy it for colleagues on Connect, and improve it by reviewing behavior and covering common use cases." width="1280" height="720" />
<p>With data collection enabled, data scientists can review cases where the agent
had to write its own code. If those cases share a pattern, they can add trusted
code that moves future responses up the trust ladder, making the agent more
correct over time.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/commons-correctness.webp" class="column-page" loading="lazy" data-fig-alt="A slide says to help the agent be correct with trusted calculations and context, and make errors less bad by signaling trust and introducing feedback loops." width="1280" height="720" />
<p>Returning to our two principles, commons helps the agent be correct by letting
it directly use trusted code. It makes mistakes less bad by telling the user
when the agent did not directly use trusted code, and by moving responses up
the trust ladder over time.</p>
<h3 id="other-use-cases-for-commons">Other use-cases for commons
</h3>
<p><strong>(Sara)</strong></p>
<p>The VP example is business intelligence, but commons is not only for BI or
vice presidents. It&rsquo;s for any data person who wants to build an agent that
gives correct answers to their collaborators.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/commons-examples.webp" class="column-page" loading="lazy" data-fig-alt="A table pairs a biostatistician with a physician comparing treatment groups, a UX researcher with a product manager summarizing experiment results, and a policy analyst with a program lead simulating a policy&#39;s budget impact." width="1280" height="720" />
<p>We&rsquo;ve made a sample <a href="https://pos.it/clinical-trials-agent" target="_blank" rel="noopener">clinical trials
agent</a> to highlight this functionality.
Its data is simulated. The trusted code is a TLG catalog: code written and
trusted by data people to work on this type of data and produce correct
answers. You can ask it questions such as, &ldquo;Plot Kaplan&ndash;Meier curves.&rdquo;</p>
<video class="column-page" loop muted playsinline controls preload="metadata" aria-label="A clinical trials agent runs a trusted calculation for the safety population and produces a Kaplan–Meier plot of serious adverse-event-free probability.">
<source src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/videos/clinical-trials-agent-demo.mp4" type="video/mp4">
</video>
<h2 id="it-is-still-very-bad-to-be-wrong">It is still very bad to be wrong
</h2>
<p><strong>(Sara)</strong></p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/conclusion.webp" class="column-page" loading="lazy" data-fig-alt="A blue slide reads “It’s (still) very bad to be wrong” in large cream-colored text." width="1280" height="720" />
<p>It&rsquo;s now so easy to ask any kind of agent a question about your data and get a
wrong answer that looks completely plausible.</p>
<p>The problem is not just that the answer is wrong, and it&rsquo;s also not just that you might be unable to reproduce it or have no
idea how it arrived at the answer.</p>
<p>These are bad enough, but there&rsquo;s another problem. If we become accustomed to, say, 15% of our numbers
being wrong, we might lose trust in analysis itself and its ability to tell us things about the world, or become used to numbers just being a bit wrong all the time.</p>
<p>But correctness matters, especially in particular industries, and Posit has always
built tools to support correct analysis. We do not think that standard should
change just because AI is here.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/conclusion-infrastructure.webp" class="column-page" loading="lazy" data-fig-alt="A blue slide reads, &#39;AI has expanded who can get answers from data. That changes the infrastructure we need for correct, transparent, and reproducible analysis.&#39;" width="1280" height="720" />
<p>But AI has expanded who can get answers from data. Now anyone can ask a
question about their data. That changes how we need to think about the
infrastructure for building correct, transparent, and reproducible agents.</p>
<p>With commons, a data team establishes which code and calculations it trusts
and provides the organizational context the agent needs. The team can give that
agent to someone who might otherwise perform a vibe analysis. That person keeps
the convenience of asking questions in natural language, while the answers are
grounded in the data team&rsquo;s trusted work and can be traced and reproduced.</p>
<p>That is where data scientists and analysts come in. This infrastructure must be
built by people who understand the data, calculations, and organization.
commons helps them build it and make it available to others.</p>
<h2 id="looking-forward">Looking forward
</h2>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/canvas.webp" class="column-page" loading="lazy" data-fig-alt="A Canvas application displays a polished data-analysis workspace with an agent conversation, visual results, and interactive controls arranged across a large visual canvas." width="1280" height="720" />
<p>Looking forward, we have been experimenting with something called Canvas.</p>
<p>Canvas is a next-generation agent experience. It assumes that you might not
always want to look at the code. That does not mean the code is not there when
you need it, but you might not always want to work in an IDE.</p>
<p>This frees up real estate for expansive, new agent-collaboration interfaces.
Canvas feels a little aggressively agentic to us, in the way Databot felt a
year ago.</p>
<img src="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/slides/thank-you.webp" class="column-page" loading="lazy" data-fig-alt="A green slide says &#39;Thank you!&#39; above resource cards linking to the keynote slides, commons, and the AI Newsletter." width="1280" height="720" />
<h3 id="recent-past-newsletters">Recent past newsletters
</h3>
<ul>
<li><a href="https://opensource.posit.co/blog/2026-09-18_ai-newsletter">New releases from ellmer, shinychat, and commons</a></li>
<li><a href="https://opensource.posit.co/blog/2026-09-04_ai-newsletter">You probably don&rsquo;t want to fine-tune</a></li>
</ul>
<p><a href="https://opensource.posit.co/tags/ai-newsletter/index.xml" target="_blank" rel="noopener noreferrer" class="btn-shortcode inline-flex mb-5 mr-5 items-center px-4 py-3 text-sm leading-5 gap-2 rounded-lg bg-blue-400 !text-white font-semibold align-middle hover:bg-blue-500 transition no-underline">Subscribe via RSS</a></p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-10-09_ai-newsletter/images/hero.webp" length="15396" type="image/webp" />
    </item>
    <item>
      <title>Genomes, Prompts, and Shiny: What I Built During My Summer at Posit</title>
      <link>https://opensource.posit.co/blog/2026-10-08_genomes-prompts-and-shiny/</link>
      <pubDate>Thu, 08 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-10-08_genomes-prompts-and-shiny/</guid>
      <dc:creator>Samuel Bharti</dc:creator>
      <dc:creator>Shiny Team</dc:creator>
      <dc:creator>Barret Schloerke</dc:creator>
      <dc:creator>Carson Sievert</dc:creator>
      <dc:creator>Joe Cheng</dc:creator><description><![CDATA[<p>My name is Samuel Bharti and I am a PhD candidate at the University of Alabama at Birmingham, working on rare diseases and cancers, particularly focusing on Neurofibromatosis Type 1 and the cancers associated with it. I spent this summer as a software engineering intern on the Shiny team at Posit. In three short months, I built <strong>10 open-source applications and 5 supporting packages</strong> for computational biology, across R, Python, TypeScript, and JavaScript. Some are tools researchers can use directly. Others sit underneath those applications and solve recurring infrastructure problems.</p>
<p>I came into the internship as a computational biologist. In my PhD research, I work with single-cell sequencing, genomics, and multi-omics data, and with the public databases and identifiers that come with them.</p>
<p>Across different projects, I kept running into the same problems:</p>
<ul>
<li>Biological datasets are getting enormous.</li>
<li>The information needed to interpret them is scattered across many databases.</li>
<li>Identifiers are surprisingly inconsistent.</li>
<li>The same API and data-access logic gets rewritten again and again.</li>
<li>Even when excellent public datasets exist, there can still be a huge gap between <strong>the data being available</strong> and <strong>a researcher being able to use it comfortably</strong>.</li>
</ul>
<p>Those gaps became the theme of my summer.</p>
<blockquote>
<p>How do we make increasingly large and complicated biological datasets genuinely usable for researchers?</p>
</blockquote>
<h2 id="making-enormous-biological-datasets-explorable">Making enormous biological datasets explorable
</h2>
<p>One of the projects I am most excited about is <a href="https://posit-tahoe-explorer.share.connect.posit.cloud/" target="_blank" rel="noopener"><strong>Tahoe Explorer</strong></a> (<a href="https://github.com/samuelbharti/tahoe-explorer" target="_blank" rel="noopener">source</a>).</p>
<p><a href="https://huggingface.co/datasets/tahoebio/Tahoe-100M" target="_blank" rel="noopener">Tahoe-100M</a> contains more than 100 million single-cell perturbation profiles. That scale is scientifically exciting, but it creates a practical problem: you cannot treat 100 million observations like a normal dataframe inside an interactive application.</p>
<p>I wanted researchers to be able to answer basic questions before committing to a large analysis. Which cell lines are represented? Which drugs were tested? How much coverage exists for the combination I care about? What do we know about the genomic background of those cell lines? And once I find what I need, how do I retrieve only that part of the dataset?</p>
<p>Tahoe Explorer lets researchers move through drugs, cell lines, samples, genes, coverage, and cell-level metadata without first downloading and loading the entire resource. For the larger data, queries are pushed down to DuckDB, which returns only the rows or summaries the current view needs.</p>
<p>I integrated additional information from resources such as <a href="https://depmap.org/portal/" target="_blank" rel="noopener">DepMap</a> and <a href="https://www.cellosaurus.org/" target="_blank" rel="noopener">Cellosaurus</a>, including variant information for the cell lines. That makes it possible to think about perturbation response alongside the genomic context of each cell line.</p>
<p>The Subset builder tab then turns exploration into something reproducible. Users can define the experiment they care about and generate R or Python code for retrieving that subset later.</p>
<p>Another feature of the app is the built-in chat assistant. It can help researchers reason about Tahoe, identify useful filters, interact with supported parts of the app, and finally build those reproducible subset recipes.</p>
<p>What I like most is that the assistant lives inside the app. It can use tools over the data and help operate the workflow. To me, that is a much more interesting direction for AI in scientific software.</p>
<div class="not-prose">
<figure>
<a href="https://posit-tahoe-explorer.share.connect.posit.cloud/" target="_blank" rel="noopener"><img class="h-auto max-w-full rounded-lg" src="https://opensource.posit.co/blog/2026-10-08_genomes-prompts-and-shiny/tahoe-explorer.gif" alt="An animation of Tahoe Explorer. On the Overview tab, the tiles show 100.6M cells, 50 cell lines and 379 drugs, and clicking the Breast bar in the cell lines by organ chart filters the table to HS-578T and BT-474. The Coverage tab shows a heatmap of the cells profiled for each drug and cell line. On the Subset builder tab, the assistant panel opens and is asked to build a breast cancer subset. It replies that it selected Organ: Breast in the Subset builder, names BT-474 and HS-578T, estimates 3,094,027 cells across 1,344 samples, and writes R and Python code to pull them, while the tiles change to 3.1M cells and 2 cell lines." title="A quick tour of the Overview and Coverage tabs, then the assistant setting a filter in the Subset builder and reporting what the selection covers." loading="lazy"></a>
<figcaption class="text-sm text-center text-gray-500">A quick tour of the Overview and Coverage tabs, then the assistant setting a filter in the Subset builder and reporting what the selection covers.</figcaption>
</figure>
</div>
<p>The Tahoe app solved one type of scaling problem: accessing and understanding a dataset that is much larger than the application itself. One layer later, the same issue came back, with the <strong>visualization itself</strong> as the bottleneck.</p>
<p><a href="https://opensource.posit.co/software/plotomics/"><strong>plotomics</strong></a> and <a href="https://posit-plotomics-live.share.connect.posit.cloud/" target="_blank" rel="noopener"><strong>Plotomics Live</strong></a> (<a href="https://github.com/samuelbharti/plotomics-live" target="_blank" rel="noopener">source</a>) came out of that bottleneck.</p>
<p>plotomics is a visualization library for computational biology with a shared TypeScript rendering core and wrappers for R and Python. Its 17 components cover embeddings, heatmaps, volcano plots, networks, oncoplots, genomic views, spatial data, survival analysis, and other common biological visualizations. Of those, 15 ship in R, Python, and JavaScript; the two genome browsers are JavaScript and Python only.</p>
<p>For large visualizations, the browser can draw with WebGL or Canvas. Numeric data can also move to the frontend as binary buffers instead of being serialized into huge JSON payloads.</p>
<p>The visualization logic exists once. The R, Python, and JavaScript wrappers all talk to the same rendering engine.</p>
<p>I built <strong>Plotomics Live</strong> to explore how far that model could go inside Shiny.</p>
<p>The app contains 26 biological visualizations, built from those 17 components with several of them used more than once, across single-cell data, spatial transcriptomics, genomics, networks, perturbation data, and other common workflows. Every one of them renders two ways, and an engine toggle puts the GPU-accelerated React component beside the server-rendered ggplot2 image so you can compare them directly.</p>
<p>One page, for example, interactively renders more than half a million real single-cell observations in the browser.</p>
<p>Plotomics Live is where I worked out what Shiny can look like when R remains the analytical engine and the browser does more of the work it is good at.</p>
<div class="not-prose">
<figure>
<a href="https://posit-plotomics-live.share.connect.posit.cloud/" target="_blank" rel="noopener"><img class="h-auto max-w-full rounded-lg" src="https://opensource.posit.co/blog/2026-10-08_genomes-prompts-and-shiny/plotomics-live.gif" alt="An animation of Plotomics Live. On the Visium spatial transcriptomics page, capture spots in eleven color-coded clusters sit over a breast cancer tissue section, above a footer reading 3,798 capture spots, 11 clusters, 72 genes in panel. The spot opacity slider fades the spots to show the H&amp;E-stained tissue underneath, then brings them back. The coloring switches to ERBB2 expression, and the engine toggle swaps the Shiny React component for the ggplot2 (classic) image. The animation then moves to the Protein structure page, where the AlphaFold model of TP53, colored by pLDDT confidence, turns." title="Two of the 26 pages. The engine toggle swaps the React component for the ggplot2 image, over the same server-side computation." loading="lazy"></a>
<figcaption class="text-sm text-center text-gray-500">Two of the 26 pages. The engine toggle swaps the React component for the ggplot2 image, over the same server-side computation.</figcaption>
</figure>
</div>
<h2 id="connecting-biological-information-that-lives-everywhere">Connecting biological information that lives everywhere
</h2>
<p>Scale was only one recurring problem. The other was fragmentation.</p>
<p>A lot of computational biology does not involve one database or one algorithm. It involves assembling an answer from many different resources.</p>
<p>Variant interpretation is a good example. If I am reviewing a variant, I may want information from <a href="https://www.ncbi.nlm.nih.gov/clinvar/" target="_blank" rel="noopener">ClinVar</a>, <a href="https://gnomad.broadinstitute.org/" target="_blank" rel="noopener">gnomAD</a>, <a href="https://www.ensembl.org/" target="_blank" rel="noopener">Ensembl</a>, <a href="https://www.uniprot.org/" target="_blank" rel="noopener">UniProt</a>, <a href="https://alphafold.ebi.ac.uk/" target="_blank" rel="noopener">AlphaFold</a>, <a href="https://platform.opentargets.org/" target="_blank" rel="noopener">Open Targets</a>, <a href="https://www.dbnsfp.org/" target="_blank" rel="noopener">dbNSFP</a>, <a href="https://www.ebi.ac.uk/ProtVar/" target="_blank" rel="noopener">ProtVar</a>, and several other sources.</p>
<p><a href="https://posit-variant-reviewer.share.connect.posit.cloud/" target="_blank" rel="noopener"><strong>Variant Reviewer</strong></a> (<a href="https://github.com/samuelbharti/variant-reviewer" target="_blank" rel="noopener">source</a>) brings those sources together in one reactive workflow.</p>
<p>A researcher can start from a gene, a variant, or both, and the app combines clinical significance, population frequency, prediction scores, gene constraint, protein domains and 3D protein structure.</p>
<div class="not-prose">
<figure>
<a href="https://posit-variant-reviewer.share.connect.posit.cloud/" target="_blank" rel="noopener"><img class="h-auto max-w-full rounded-lg" src="https://opensource.posit.co/blog/2026-10-08_genomes-prompts-and-shiny/variant-reviewer.gif" alt="An animation of Variant Reviewer. Loading the BRAF V600E example fills the gene and variant boxes, and Review fills the cards: BRAF on the gene card, chr7:g.140753336A&gt;T and p.Val600Glu on the variant card, UniProt P15056 at position 600 on the protein card, and conflicting classifications of pathogenicity on the ClinVar card. The assistant on the right is then asked what ClinVar and gnomAD say about this variant, and answers with the ClinVar classification and its conditions and a gnomAD exome frequency of 2 in 1,460,618 alleles." title="One gene, one variant, one page. Each card is a different public service." loading="lazy"></a>
<figcaption class="text-sm text-center text-gray-500">One gene, one variant, one page. Each card is a different public service.</figcaption>
</figure>
</div>
<p>But building Variant Reviewer surfaced another problem. Every external biological service behaves differently: its own identifiers, its own failure modes, its own rate limits. One might return a clean &ldquo;not found&rdquo; response while another throws an error. And one slow or unavailable service should not break the entire application.</p>
<p>Once I started solving those problems in one app, it became apparent that I should not keep solving them separately.</p>
<h2 id="building-the-infrastructure-once">Building the infrastructure once
</h2>
<p>Five packages grew out of problems that kept appearing across the applications.</p>
<h3 id="biobouncer">biobouncer
</h3>
<p><a href="https://opensource.posit.co/software/biobouncer/"><strong>biobouncer</strong></a> handles biological identifier validation. Gene symbols change. Ontology identifiers have different namespaces. Variants can be syntactically valid but biologically meaningless. Public databases each have their own identifier conventions.</p>
<p>biobouncer provides a common layer for validating these inputs using pattern checks, cached resources, remote validation, and existence checks. It also has implementations across R, Python, and TypeScript backed by the same conformance data.</p>
<p>If the same identifier moves through an R pipeline, a Python analysis, and a web interface, I want &ldquo;valid&rdquo; to mean the same thing everywhere.</p>
<h3 id="biohttp">biohttp
</h3>
<p><a href="https://opensource.posit.co/software/biohttp/"><strong>biohttp</strong></a> handles the repetitive infrastructure around external APIs. Retries, throttling, caching, batching, timeouts, circuit breaking, and structured errors should not need to be rebuilt in every scientific application.</p>
<p>It also makes an important distinction between a service successfully returning no biological result and the service itself failing. That sounds small until an application depends on several external databases at once.</p>
<h3 id="bioclients">bioclients
</h3>
<p><a href="https://opensource.posit.co/software/bioclients/"><strong>bioclients</strong></a> sits on top of that transport layer and provides R clients for 29 biological services. Ensembl, UniProt, gnomAD, Open Targets, ClinVar, AlphaFold, and the rest each get a client that understands the structure and meaning of what they return.</p>
<p>Network requests and response parsing are separated so parsers can be tested against stored responses without requiring a live API.</p>
<p>The separation is intentional:</p>
<ul>
<li><strong>biohttp handles how we talk to a service.</strong></li>
<li><strong>bioclients handles what that biological service returns.</strong></li>
</ul>
<h3 id="plotomics">plotomics
</h3>
<p><strong>plotomics</strong> is the exception in this list. I described it above, because it came out of one specific problem before I was thinking about shared infrastructure at all. It belongs here anyway, for the same reason as the rest: the rendering layer only had to be built once.</p>
<h3 id="biocohort">biocohort
</h3>
<p>Before APIs and visualization even matter, most omics projects have another problem: keeping the study organized. Subjects, samples, assays, species, and the manual corrections made along the way often end up spread across spreadsheets and scripts.</p>
<p><a href="https://opensource.posit.co/software/biocohort/"><strong>biocohort</strong></a> provides a validated study representation for keeping those relationships together. The same manifest can describe multiple assay types and organisms, generate pipeline sample sheets, and preserve corrections that would otherwise disappear inside preprocessing code.</p>
<p>This one is particularly close to my own research because these small bookkeeping problems become very expensive once a project grows.</p>
<p><div class="not-prose"><figure>
    <img class="h-auto max-w-full rounded-lg"
      src="https://opensource.posit.co/blog/2026-10-08_genomes-prompts-and-shiny/package-stack.png"
      alt="A diagram. The ten applications are listed as chips inside a dashed box at the top. Below them are five rows, each showing a package&rsquo;s hex sticker next to its name and its job: biobouncer for whether an identifier means anything, biohttp for how we talk to a service, bioclients for what each biological service returns, plotomics for one rendering core in three languages, and biocohort for how a study stays organized."  title="The five packages, and the one question each of them answers." 
      loading="lazy"
    ><figcaption class="text-sm text-center text-gray-500">The five packages, and the one question each of them answers.</figcaption>
  </figure></div>
</p>
<p>This shift from app-specific code to reusable infrastructure was the biggest change in how I approached the internship. Instead of asking, &ldquo;How do I make this app work?&rdquo;, I started asking, &ldquo;Which part of this problem will the next app also need?&rdquo;</p>
<h2 id="from-retrieving-data-to-synthesizing-evidence">From retrieving data to synthesizing evidence
</h2>
<p>Once those pieces became reusable, I could build higher-level research workflows on top of them.</p>
<p><a href="https://posit-gene-list-builder.share.connect.posit.cloud/" target="_blank" rel="noopener"><strong>Gene List Builder</strong></a> (<a href="https://github.com/samuelbharti/gene-list-builder" target="_blank" rel="noopener">source</a>) came from another task I have done manually many times: starting with a disease and assembling a defensible list of associated genes.</p>
<p>The application resolves the disease to an ontology term, queries multiple gene-disease resources, normalizes the results, removes duplicates, and produces a ranked list using transparent and adjustable source weights.</p>
<p>The evidence comes from the underlying databases, the scoring is visible, and the provenance remains available. An optional AI layer can then help with curation after that deterministic evidence-gathering step.</p>
<p><a href="https://posit-genescout.share.connect.posit.cloud/" target="_blank" rel="noopener"><strong>GeneScout</strong></a> (<a href="https://github.com/samuelbharti/genescout" target="_blank" rel="noopener">source</a>) takes the same idea further.</p>
<p>It acts as an evidence-review workbench for evaluating candidate genes in a disease context. Its deterministic layer resolves genes, retrieves public evidence, keeps citations attached, scores the evidence, and applies caveats. An optional agent can then synthesize what was retrieved and suggest follow-up directions.</p>
<p>Both apps rest on the design principle I came away from the summer caring about most:</p>
<p><strong>AI can help interpret scientific evidence without needing to be the source of the evidence.</strong></p>
<div class="not-prose">
<figure>
<a href="https://posit-genescout.share.connect.posit.cloud/" target="_blank" rel="noopener"><img class="h-auto max-w-full rounded-lg" src="https://opensource.posit.co/blog/2026-10-08_genomes-prompts-and-shiny/genescout.gif" alt="An animation of GeneScout. The setup page holds four example gene lists and the study context NF1-associated cancer (MPNST). After Rank genes, the review shows 32 candidates ranked across 12 sources, with EGFR first. Selecting NF1 switches the panel on the right to its composite score of 0.55 and its breakdown by source, from Open Targets association to STRING connectivity. Opening its grounded evidence lists 38 cited items, starting with an Open Targets association with neurofibromatosis type 1." title="Every number in the breakdown traces back to a public source. Curate with AI and Analyze with specialists are separate, optional steps." loading="lazy"></a>
<figcaption class="text-sm text-center text-gray-500">Every number in the breakdown traces back to a public source. Curate with AI and Analyze with specialists are separate, optional steps.</figcaption>
</figure>
</div>
<h2 id="turning-analyses-into-tools-researchers-can-actually-explore">Turning analyses into tools researchers can actually explore
</h2>
<p>I built several more focused applications around common genomics workflows.</p>
<p><a href="https://posit-recount-explorer.share.connect.posit.cloud/" target="_blank" rel="noopener"><strong>Recount Explorer</strong></a> (<a href="https://github.com/samuelbharti/recount-explorer" target="_blank" rel="noopener">source</a>) provides an interactive entry point into <a href="https://rna.recount.bio/" target="_blank" rel="noopener">recount3</a>, allowing researchers to browse uniformly processed RNA-seq studies, inspect quality metrics, explore expression and PCA, and export data, without writing any code.</p>
<p><a href="https://posit-de-explorer.share.connect.posit.cloud/" target="_blank" rel="noopener"><strong>DE Explorer</strong></a> (<a href="https://github.com/posit-dev/shiny-showcase-bioinformatics/tree/main/apps/de-explorer" target="_blank" rel="noopener">source</a>) makes differential-expression results interactive, moving from a PCA of sample-level structure to a volcano plot, a filterable results table, and a heatmap of the genes you select.</p>
<p><a href="https://posit-signature-scoring.share.connect.posit.cloud/" target="_blank" rel="noopener"><strong>Signature Scoring</strong></a> (<a href="https://github.com/posit-dev/shiny-showcase-bioinformatics/tree/main/apps/signature-scoring" target="_blank" rel="noopener">source</a>) summarizes expression profiles into pathway-level scores and lets researchers compare those scores across groups before drilling down into the genes driving a pathway.</p>
<p><a href="https://posit-drug-perturbation.share.connect.posit.cloud/" target="_blank" rel="noopener"><strong>Drug Perturbation</strong></a> (<a href="https://github.com/posit-dev/shiny-showcase-bioinformatics/tree/main/apps/drug-perturbation" target="_blank" rel="noopener">source</a>) explores connectivity between gene-expression signatures and reference perturbations, including potential mimics and reversers across different cellular contexts. Its reference panel is synthetic, built over the TCGA-BRCA gene space.</p>
<p><a href="https://posit-genome-explorer.share.connect.posit.cloud/" target="_blank" rel="noopener"><strong>Genome Explorer</strong></a> (<a href="https://github.com/posit-dev/shiny-showcase-bioinformatics/tree/main/apps/genome-explorer" target="_blank" rel="noopener">source</a>) places recurrent variants into an interactive genomic view and lets users move from cohort-level patterns to individual loci.</p>
<p>These five are deliberately narrower than the applications above. An analysis can end in a tool: a thin Shiny layer turns a computational result into something the researcher who understands the biology can actually explore.</p>
<div class="not-prose">
<figure>
<a href="https://posit-shiny-showcase-bioinformatics.share.connect.posit.cloud/" target="_blank" rel="noopener"><img class="h-auto max-w-full rounded-lg" src="https://opensource.posit.co/blog/2026-10-08_genomes-prompts-and-shiny/focused-apps.png" alt="Five application screenshots in a labelled grid: Recount Explorer, DE Explorer, Signature Scoring, Drug Perturbation, and Genome Explorer. Each shows a populated dashboard, in order a study catalogue, a PCA with threshold controls, a pathway activity contrast, a connectivity leaderboard, and a genome browser above a variant table." title="Five smaller applications, each wrapped around one common genomics workflow." loading="lazy"></a>
<figcaption class="text-sm text-center text-gray-500">Five smaller applications, each wrapped around one common genomics workflow.</figcaption>
</figure>
</div>
<h2 id="working-in-open-source">Working in open source
</h2>
<p>I had worked on open-source software before, but working inside Posit&rsquo;s Open Source group changed how I thought about building research software.</p>
<p>Code review was where a lot of the interesting work happened.</p>
<p>I spent much more time thinking about API design, failure modes, backwards compatibility, and what another developer would experience after I stopped actively working on a project.</p>
<p>That distinction became very clear over the summer:</p>
<p><strong>Making something run once is different from making something other people can depend on.</strong></p>
<p>I got to move well outside the R layer I knew best. Across the summer I worked with R, Python, JavaScript, TypeScript, React, WebGL, Shiny internals, and newer work around <a href="https://github.com/posit-dev/shinyreact" target="_blank" rel="noopener">shinyreact</a>, which the Shiny team introduced in <a href="https://opensource.posit.co/blog/2026-09-30_introducing-shinyreact/">Introducing shinyreact</a> at the end of September.</p>
<p>Starting the internship at Open Source Work Week in Boston made the whole experience even better. Meeting everyone in person at the beginning made the later remote collaboration feel much more natural.</p>
<p>I am very grateful to <a href="https://opensource.posit.co/people/barret-schloerke/"><strong>Barret Schloerke</strong></a>, <a href="https://opensource.posit.co/people/carson-sievert/"><strong>Carson Sievert</strong></a>, <a href="https://opensource.posit.co/people/joe-cheng/"><strong>Joe Cheng</strong></a>, the rest of the Shiny team, and everyone across Posit who provided feedback, answered questions, challenged ideas, or helped me understand another part of the stack.</p>
<p>I learned a lot from being able to build freely while surrounded by people who know these tools from the inside.</p>
<h2 id="next-for-these-projects">Next for these projects
</h2>
<p>The internship ended, but I do not really think of these projects as finished. They are open source, and many of them solve problems I still encounter in my own research. I hope researchers use them, find things I did not anticipate, and help shape where they go next.</p>
<p>The applications and supporting packages are collected in the <a href="https://github.com/posit-dev/shiny-showcase-bioinformatics" target="_blank" rel="noopener"><strong>Shiny Showcase: Bioinformatics</strong></a> repository, with source code, documentation, examples, and citation information for the individual projects. The <a href="https://posit-shiny-showcase-bioinformatics.share.connect.posit.cloud/" target="_blank" rel="noopener">live gallery</a> links every app to a running deployment you can open in a browser.</p>
<p>I presented this as a talk in August 2026. <a href="https://www.samuelbharti.com/genomes-prompts-shiny/" target="_blank" rel="noopener">The deck</a> covers the same projects in slides, and its <a href="https://github.com/samuelbharti/genomes-prompts-shiny" target="_blank" rel="noopener">source</a> is public.</p>
<p>If you work in computational biology, genomics, or research software, I would genuinely love to hear what is useful and what is missing.</p>
<p>Try an app, use one of the packages, or open an issue if something breaks or could work better. Pull requests are welcome. Or tell me about the research-software problem you keep solving manually.</p>
<p>A lot of this work started exactly that way. I noticed recurring problems in my own research that felt harder than they should be, and I tried to build the tools I wished I already had.</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-10-08_genomes-prompts-and-shiny/featured.png" length="413419" type="image/png" />
    </item>
    <item>
      <title>posit::glimpse() Newsletter – October 2026</title>
      <link>https://opensource.posit.co/blog/2026-10-07_glimpse-10-2026/</link>
      <pubDate>Wed, 07 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-10-07_glimpse-10-2026/</guid>
      <dc:creator>Isabella Velásquez</dc:creator><description><![CDATA[<p>Hello, everyone! We’ve officially wrapped up posit::conf(2026), and to everyone who joined us in Houston or online, thank you for making it incredible 💙🧡 Between the keynote reveals, lightning talks, and workshops, it was a lot to take in! In this edition, we’ve rounded up all the major news and announcements in one place.</p>
<p>Want to catch up on talks? While we prepare the videos for YouTube, all session recordings are available now on the event portal:</p>
<ul>
<li>Register / log in at <a href="https://conf.posit.co" target="_blank" rel="noopener">conf.posit.co</a></li>
<li>Go to &ldquo;Schedule&rdquo;</li>
<li>Select any session and click &ldquo;View recording&rdquo;</li>
</ul>









  





  







<div class="not-prose grid grid-cols-2 md:grid-cols-3 gap-4 mt-2 mb-6">
  
    
    
    
    

    
    
      
      
      
      
      
        
        
        
          
            
            
            
            
            
          
        
          
            
            
            
              
              
            
            
            
          
        
          
            
            
            
              
              
            
            
            
          
        
          
        
      
      <figure class="m-0">
        <img
          src="https://opensource.posit.co/blog/2026-10-07_glimpse-10-2026/photos/photo1_hu_6fb08991979a00f7.jpeg"
          alt="photos/photo1.jpeg"
          class="w-full aspect-[4/3] object-cover rounded-lg cursor-pointer outline-none"
          style="object-position: center"
          loading="lazy"
          
          data-gallery-group="gallery-0"
          data-gallery-src="https://opensource.posit.co/blog/2026-10-07_glimpse-10-2026/photos/photo1.jpeg"
          data-gallery-caption=""
          
          data-gallery-webp="/blog/2026-10-07_glimpse-10-2026/photos/photo1_hu_c111386dc651e3ed.webp 640w, /blog/2026-10-07_glimpse-10-2026/photos/photo1_hu_a70580f20689bc35.webp 960w, /blog/2026-10-07_glimpse-10-2026/photos/photo1_hu_5f3f89496c54f45.webp 1280w"
          data-gallery-jpeg="/blog/2026-10-07_glimpse-10-2026/photos/photo1_hu_3733283b694e3e95.jpeg 640w, /blog/2026-10-07_glimpse-10-2026/photos/photo1_hu_e41a7fc1c4c722ad.jpeg 960w, /blog/2026-10-07_glimpse-10-2026/photos/photo1_hu_abfc3a8d2a5de3c.jpeg 1280w"
          role="button"
          tabindex="0"
          
        >
        
      </figure>
    
  
    
    
    
    

    
    
      
      
      
      
      
        
        
        
          
            
            
            
            
            
          
        
          
            
            
            
              
              
            
            
            
          
        
          
            
            
            
              
              
            
            
            
          
        
          
        
      
      <figure class="m-0">
        <img
          src="https://opensource.posit.co/blog/2026-10-07_glimpse-10-2026/photos/photo2_hu_fd39cc2dae09a981.jpeg"
          alt="photos/photo2.jpeg"
          class="w-full aspect-[4/3] object-cover rounded-lg cursor-pointer outline-none"
          style="object-position: center"
          loading="lazy"
          
          data-gallery-group="gallery-0"
          data-gallery-src="https://opensource.posit.co/blog/2026-10-07_glimpse-10-2026/photos/photo2.jpeg"
          data-gallery-caption=""
          
          data-gallery-webp="/blog/2026-10-07_glimpse-10-2026/photos/photo2_hu_231fb87d898db1c7.webp 640w, /blog/2026-10-07_glimpse-10-2026/photos/photo2_hu_ca84e3ba03e94d6f.webp 960w, /blog/2026-10-07_glimpse-10-2026/photos/photo2_hu_ae974601d02b8171.webp 1280w"
          data-gallery-jpeg="/blog/2026-10-07_glimpse-10-2026/photos/photo2_hu_2037ed65cf9451e5.jpeg 640w, /blog/2026-10-07_glimpse-10-2026/photos/photo2_hu_d9de34e3c9983c0d.jpeg 960w, /blog/2026-10-07_glimpse-10-2026/photos/photo2_hu_c717be003de21464.jpeg 1280w"
          role="button"
          tabindex="0"
          
        >
        
      </figure>
    
  
    
    
    
    

    
    
      
      
      
      
      
        
        
        
          
            
            
            
            
            
          
        
          
            
            
            
              
              
            
            
            
          
        
          
            
            
            
              
              
            
            
            
          
        
          
        
      
      <figure class="m-0">
        <img
          src="https://opensource.posit.co/blog/2026-10-07_glimpse-10-2026/photos/photo3_hu_5cd54b096e78ab13.jpeg"
          alt="photos/photo3.jpeg"
          class="w-full aspect-[4/3] object-cover rounded-lg cursor-pointer outline-none"
          style="object-position: center"
          loading="lazy"
          
          data-gallery-group="gallery-0"
          data-gallery-src="https://opensource.posit.co/blog/2026-10-07_glimpse-10-2026/photos/photo3.jpeg"
          data-gallery-caption=""
          
          data-gallery-webp="/blog/2026-10-07_glimpse-10-2026/photos/photo3_hu_5851fec0224c6f18.webp 640w, /blog/2026-10-07_glimpse-10-2026/photos/photo3_hu_e500064cd3693752.webp 960w, /blog/2026-10-07_glimpse-10-2026/photos/photo3_hu_8d370cb3ea37eb67.webp 1280w"
          data-gallery-jpeg="/blog/2026-10-07_glimpse-10-2026/photos/photo3_hu_27b827b979b5a5fb.jpeg 640w, /blog/2026-10-07_glimpse-10-2026/photos/photo3_hu_40bd6a7f550a9dde.jpeg 960w, /blog/2026-10-07_glimpse-10-2026/photos/photo3_hu_c6555aa88282daa2.jpeg 1280w"
          role="button"
          tabindex="0"
          
        >
        
      </figure>
    
  
</div>

<h2 id="announcing-the-winners-of-the-posit-impact-awards">Announcing the winners of the Posit Impact Awards
</h2>
<p>We were thrilled to launch the inaugural Posit Impact Awards to celebrate stories of measurable, meaningful change across our community. At posit::conf(2026), we were honored to announce our eight winners, each receiving a conference pass to join us in Houston!</p>
<p>A huge congratulations to all our winners, and a heartfelt thank you for the incredible work you do (and for sharing it with us)!</p>
<ul>
<li>Explore their stories in the <a href="https://posit.co/blog/2026-posit-impact-awards" target="_blank" rel="noopener">2026 Posit Impact Awards</a> blog post and join us at the <a href="https://posit.co/data-science-hangout" target="_blank" rel="noopener">Data Science Hangout</a> to hear from other Impact Award winners and nominees featured in the next few weeks.</li>
</ul>
<p><div class="not-prose"><figure>
    <img class="h-auto max-w-full rounded-lg"
      src="https://opensource.posit.co/blog/2026-10-07_glimpse-10-2026/images/impact-awards.jpeg"
      alt="Graphic presenting the 2026 Posit Impact Awards winners: Paulo Villarroel (Mission-Critical), Chendi Liao (Transformation), Claudio T. Rebelo (Scale &amp; Reach), Skyler Elmstrom (Resilient Impact), Jon Harmon (Community Builder), Christian Martinez (Open Source), and Amanda Perez &amp; Romina Mir (ROI &amp; Efficiency)." 
      loading="lazy"
    >
  </figure></div>
</p>
<h2 id="open-source-updates-from-positconf2026">Open Source updates from posit::conf(2026)
</h2>
<h3 id="introducing-commons">Introducing commons
</h3>
<p><a href="https://posit-dev.github.io/commons/" target="_blank" rel="noopener">commons</a> 0.1.0 introduces a new framework for building trustworthy self-service data analysis agents in R and Python. The package implements a three-tier trust labeling system that transparently indicates whether agents invoke trusted code directly, write new code justified by vetted context, or provide untrusted answers. Built on Posit’s LLM stack (<a href="https://ellmer.tidyverse.org/" target="_blank" rel="noopener">ellmer</a>, <a href="https://posit-dev.github.io/chatlas/" target="_blank" rel="noopener">chatlas</a>, <a href="https://posit-dev.github.io/shinychat/" target="_blank" rel="noopener">shinychat</a>), commons enables teams to convert existing analytical code into AI agent capabilities while maintaining transparency about code sources.</p>
<ul>
<li>Learn more about <a href="https://opensource.posit.co/blog/2026-09-15_commons-0-1-0/" target="_blank" rel="noopener">commons 0.1.0</a>.</li>
<li>Join Sara &amp; Simon&rsquo;s virtual webinar on October 28th to learn more about commons. <a href="https://events.zoom.us/ev/Ajss5j9VeRMe0zw-AtFKf7AUAsthzYhaYjYPeEIu1uYAQe1K0ud1~Agb_hSt1UGxd9fUyIDC32e6jAdEtbl7G_AaLZUYhRvyZR5cGpY5Kp_A0-w?mkt_tok=NzA5LU5YTi03MDYAAAGhT3GTQTQ5s7LDxqZGUAE1zALOLmEDysbAsOyvVdJ9P72DB_IRwtWRTED6kyJA-j-YKF7WxCTY_ZlZ4rTkiyY" target="_blank" rel="noopener">Register here</a>.</li>
</ul>
<h3 id="quarto-hub">Quarto Hub
</h3>
<p>Quarto Hub is a new hosted platform from Posit. In Quarto Hub, you can create, edit, comment on, and publish your <a href="https://quarto.org/" target="_blank" rel="noopener">Quarto projects</a> (single documents, presentations, websites) collaboratively and in real time.</p>
<ul>
<li>Watch Carlos Scheidegger&rsquo;s talk, &ldquo;Quarto Hub: Collaboratively edit, create, and share documents&rdquo;, on the event portal.</li>
</ul>
<script src="https://fast.wistia.com/player.js" async></script><script src="https://fast.wistia.com/embed/gd8zwcsex7.js" async type="module"></script><style>wistia-player[media-id='gd8zwcsex7']:not(:defined) { background: center / contain no-repeat url('https://fast.wistia.com/embed/medias/gd8zwcsex7/swatch'); display: block; filter: blur(5px); padding-top:56.25%; }</style> <wistia-player media-id="gd8zwcsex7" aspect="1.7777777777777777"></wistia-player>
<h3 id="skilift-and-skipatrol">skiLift and skiPatrol
</h3>
<p>Posit has taken over maintenance over two R packages that provide comprehensive tools to work and collaborate within Snowflake’s data platform and ML ecosystem:</p>
<ul>
<li><a href="https://github.com/posit-dev/skiLift/" target="_blank" rel="noopener">skiLift</a>: a DBI-compliant Snowflake connector written in R, that authenticates and communicates via the Snowflake SQL API (REST).</li>
<li><a href="https://github.com/posit-dev/skiPatrol/" target="_blank" rel="noopener">skiPatrol</a>: an R interface to Snowflake&rsquo;s ML platform: model registry, feature store, experiments, model monitoring, and container services.</li>
</ul>
<p>Learn more in the <a href="https://posit.co/blog/r-meet-snowflake-introducing-posits-skilift-and-skipatrol-packages" target="_blank" rel="noopener">R, meet Snowflake: Introducing Posit’s skiLift and skiPatrol Packages</a> blog post.</p>
<h2 id="even-more-open-source-updates">Even more open source updates
</h2>
<p>Beyond all the exciting conf news, September was packed with major product updates and community highlights across the board!</p>
<h3 id="at-the-database-layer">At the database layer
</h3>
<h4 id="ggsql-050-readers-writers-and-beta-status">ggsql 0.5.0: Readers, Writers, and Beta status
</h4>
<p><a href="https://ggsql.org/" target="_blank" rel="noopener">ggsql</a> is a tool that implements a grammar of graphics for SQL, enabling ggplot2-style data visualization directly from database queries. ggsql 0.5.0 reaches beta status with major improvements to database connectivity and rendering capabilities. The release introduces hybrid-reader mode for read-only connections with cache support, replaces the Vega-Lite renderer with a custom writer supporting PNG, JPEG, SVG, and PDF output, and adds rich text support through extended markdown. New features include caption support, minor breaks on scales, and true variable line aesthetics with gradients.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-09-24_ggsql_0_5_0/" target="_blank" rel="noopener">ggsql 0.5.0: Readers, Writers, and Beta status</a> blog post.</li>
</ul>
<h4 id="orbital-070">orbital 0.7.0
</h4>
<p><a href="https://orbital.tidymodels.org/" target="_blank" rel="noopener">orbital</a> enables the running predictions of tidymodels workflows inside databases. orbital 0.7.0 and tidypredict 1.2.0 massively expand in-database prediction capabilities for tidymodels workflows. The release adds 27 new model/engine combinations including discriminant analysis, naive Bayes, neural networks, SVMs, partial least squares, and ensemble methods. tidypredict now functions as a developer toolkit with new generics for programmatic use, and improved error messaging guides users when probability predictions aren’t available.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-09-09_orbital-0-7-0/" target="_blank" rel="noopener">orbital 0.7.0</a> blog post.</li>
</ul>
<h3 id="ai-powered-r-tools">AI-powered R tools
</h3>
<h4 id="ellmer-050">ellmer 0.5.0
</h4>
<p><a href="https://ellmer.tidyverse.org/" target="_blank" rel="noopener">ellmer</a> makes it easy to use large language models (LLM) from R. ellmer 0.5.0 brings major improvements for working with large language models in R. New file handling functions reduce token costs by efficiently managing documents. The release adds citation tracking from web search tools, token counting for cost prediction, and streaming structured output support. Developer features include <code>tool_context()</code> for accessing request metadata and new lifecycle hooks for building agents.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-09-14_ellmer-0-5-0/" target="_blank" rel="noopener">ellmer 0.5.0</a> blog post.</li>
</ul>
<h4 id="vitals-040">vitals 0.4.0
</h4>
<p><a href="https://vitals.tidyverse.org/" target="_blank" rel="noopener">vitals</a> is a framework for large language model evaluation in R. vitals 0.4.0 brings significant performance improvements and new agent comparison capabilities for LLM evaluation in R. The release includes claude_code() and codex() helpers for benchmarking custom ellmer-built agents against leading coding agents, plus vitals_log_read() for loading log files back into resumable Chat objects. Log files are now ~4x smaller and the log viewer is substantially faster.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-09-03_vitals-0-4-0/" target="_blank" rel="noopener">vitals 0.4.0</a> blog post.</li>
</ul>
<h3 id="our-stuff-is-so-shiny">Our stuff is so Shiny
</h3>
<p>Check out all the major work done by the Shiny team in September!</p>
<h4 id="introducing-shinyreact-react-ui-backed-by-a-shiny-server">Introducing shinyreact: React UI backed by a Shiny server
</h4>
<p><a href="https://posit-dev.github.io/shinyreact/" target="_blank" rel="noopener">shinyreact</a> enables developers to build Shiny applications with React-based UIs while keeping Shiny’s reactive computation on the server. The package provides two primary React hooks for client-server communication, gives access to the entire npm ecosystem of React components, and includes AI Agent Skills for building and converting apps.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-09-30_introducing-shinyreact/" target="_blank" rel="noopener">Introducing shinyreact: React UI backed by a Shiny server </a> blog post.</li>
</ul>
<h4 id="shiny-for-python-18">Shiny for Python 1.8
</h4>
<p><a href="https://shiny.posit.co/py/" target="_blank" rel="noopener">Shiny for Python</a> 1.8 introduces in-memory server testing without browsers, enabling developers to test reactive logic with pytest using a mock connection. The release adds <code>ui.page_html()</code> for using complete HTML documents from bundlers like Vite, and <code>session.allow_reconnect()</code> to maintain live sessions after dropped websocket connections. Additional improvements include deprecation of <code>ui.output_text_verbatim()</code> in favor of clearer naming, reactive value destruction fixes, and multiple bug fixes for downloads, navsets, and data frames.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-09-22_shiny-python-1-8/" target="_blank" rel="noopener">Shiny for Python 1.8</a> blog post.</li>
</ul>
<h4 id="multiple-tables-saved-conversations-and-take-home-dashboards-querychat-r-040-and-python-090">Multiple tables, saved conversations, and take-home dashboards: querychat R 0.4.0 and Python 0.9.0
</h4>
<p><a href="https://posit-dev.github.io/querychat/" target="_blank" rel="noopener">querychat</a> facilitates safe and reliable natural language exploration of tabular data, powered by SQL and large language models (LLMs). querychat R 0.4.0 and Python 0.9.0 introduce multiple table support with automatic joins, persistent conversation history across sessions, and the <code>/handoff</code> command for exporting chats as downloadable Quarto dashboards, Shiny apps, or marimo notebooks. The release builds on shinychat’s full-page layout with editable messages and file attachments, adds YAML-based data dictionaries for context, and integrates with pins boards for chatting with pinned data.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-09-29_querychat-tables-handoff/" target="_blank" rel="noopener">Multiple tables, saved conversations, and take-home dashboards: querychat R 0.4.0 and Python 0.9.0</a> blog post.</li>
</ul>
<h4 id="complete-chat-applications-in-shinychat-r-050-and-python-071">Complete chat applications in shinychat: R 0.5.0 and Python 0.7.1
</h4>
<p><a href="https://posit-dev.github.io/shinychat/" target="_blank" rel="noopener">shinychat</a> provides a Shiny toolkit for building generative AI applications like chatbots and streaming content. shinychat R 0.5.0 and Python 0.7.1 deliver complete chat application capabilities with conversation history, message editing and branching, greetings, file attachments, and slash commands. The new <code>page_chat()</code> layout provides full-window interfaces with integrated navigation, tool displays, citations, and artifact previews. Features include persistent conversation storage, search and organization tools, streaming responses with thinking panels, and toolbars for contextual actions.</p>
<ul>
<li>Read more in the <a href="https://opensource.posit.co/blog/2026-09-15_shinychat-r-0.5.0-python-0.7.1/" target="_blank" rel="noopener">Complete chat applications in shinychat: R 0.5.0 and Python 0.7.1</a> blog post.</li>
</ul>
<h2 id="positconf2027-will-be-in-seattle-wa-from-sept-13-15">posit::conf(2027) will be in Seattle, WA from Sept 13-15
</h2>
<p>Save the date: We&rsquo;re heading back to the Pacific Northwest for posit::conf(2027)! <a href="https://posit.co/about/subscription-management" target="_blank" rel="noopener">Subscribe to &ldquo;Events&rdquo;</a> to get notified when registration opens.</p>
<p>In the meantime, join us for our ongoing virtual events:</p>
<ul>
<li><a href="https://pos.it/dsh" target="_blank" rel="noopener">Data Science Hangout</a> for casual conversations with leaders in the data space</li>
<li><a href="https://pos.it/dslab" target="_blank" rel="noopener">Data Science Lab</a> for live coding sessions with practitioners building cool things with code</li>
</ul>
<p>Hope to see you there!</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-10-07_glimpse-10-2026/glimpse-conf.jpg" length="90759" type="image/jpeg" />
    </item>
    <item>
      <title>Introducing shinyreact: React UI backed by a Shiny server</title>
      <link>https://opensource.posit.co/blog/2026-09-30_introducing-shinyreact/</link>
      <pubDate>Wed, 30 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-09-30_introducing-shinyreact/</guid>
      <dc:creator>Barret Schloerke</dc:creator><description><![CDATA[<p>We&rsquo;re excited to introduce <a href="https://posit-dev.github.io/shinyreact/" target="_blank" rel="noopener">shinyreact</a>, a new package for R and Python. It lets you write the UI of a Shiny app in React, with any component library on npm, while reducing your Shiny server code to data-only logic.</p>
<p>shinyreact splits a Shiny app along a clean line. The Shiny server does reactive computation. The UI is a <a href="https://react.dev" target="_blank" rel="noopener">React</a> client that you own. shinyreact is the bridge between them, and it ships zero UI components of its own.</p>
<p>You can install it from CRAN or PyPI:</p>
<div class="panel-tabset" data-tabset-group="language">
<ul id="tabset-1" class="panel-tabset-tabby">
<li><a data-tabby-default href="#tabset-1-1">R</a></li>
<li><a href="#tabset-1-2">Python</a></li>
</ul>
<div id="tabset-1-1">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="nf">install.packages</span><span class="p">(</span><span class="s">&#34;shinyreact&#34;</span><span class="p">)</span></span></span></code></pre></div></div>
</div>
<div id="tabset-1-2">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pip install shinyreact</span></span></code></pre></div></div>
</div>
</div>
<p>shinyreact is new, and so is the way of building Shiny apps it proposes. We intend to keep the API small, but expect it to evolve as we learn from early adopters.</p>
<h2 id="shiny--react">Shiny + React?
</h2>
<p>For most Shiny apps, defining the UI in your app.py or app.R file allows you to construct a complete, production-ready app in just a few lines of code.</p>
<p>The trouble starts when the design asks for something Shiny and <a href="https://rstudio.github.io/bslib/" target="_blank" rel="noopener">bslib</a> don&rsquo;t have: a unique layout, richer interaction, or a component from a non-Bootstrap design system. At that point, Shiny hasn&rsquo;t had the right tool for the job.</p>
<p>React is that tool, for three reasons:</p>
<ul>
<li><strong>Ecosystem.</strong> React is the most widely used UI library on the web. Design systems, charts, tables, and maps are all one <code>npm install</code> away.</li>
<li><strong>The right model.</strong> React components are functions of state, which fits Shiny&rsquo;s reactive model naturally. When the server sends new data, the UI re-renders efficiently.</li>
<li><strong>AI assistance.</strong> LLMs have trained on an enormous amount of React code. Ask a frontier agent for a UI and it will produce better React than it will bespoke Shiny UI. This aligns with Shiny&rsquo;s goal that app developers should never be required to write low-level HTML or JavaScript themselves.</li>
</ul>
<p>Later in the post, we&rsquo;ll discuss a genomics app that renders a 584,000-cell UMAP on the GPU from a plain Shiny server. First, the basics.</p>
<h2 id="old-faithful-with-shinyreact">Old Faithful with shinyreact
</h2>
<p>Here is the classic Old Faithful histogram app as a shinyreact app:</p>
<div class="panel-tabset" data-tabset-group="language">
<ul id="tabset-2" class="panel-tabset-tabby">
<li><a data-tabby-default href="#tabset-2-1">R</a></li>
<li><a href="#tabset-2-2">Python</a></li>
</ul>
<div id="tabset-2-1">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="nf">library</span><span class="p">(</span><span class="n">shiny</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="nf">library</span><span class="p">(</span><span class="n">shinyreact</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Set up the page UI using shinyreact</span>
</span></span><span class="line"><span class="cl"><span class="n">ui</span> <span class="o">&lt;-</span> <span class="nf">page_react</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">server</span> <span class="o">&lt;-</span> <span class="kr">function</span><span class="p">(</span><span class="n">input</span><span class="p">,</span> <span class="n">output</span><span class="p">,</span> <span class="n">session</span><span class="p">)</span> <span class="p">{</span>
</span></span><span class="line"><span class="cl">  <span class="n">x</span> <span class="o">&lt;-</span> <span class="n">faithful</span><span class="o">$</span><span class="n">waiting</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="n">breaks</span> <span class="o">&lt;-</span> <span class="nf">reactive</span><span class="p">({</span>
</span></span><span class="line"><span class="cl">    <span class="nf">seq</span><span class="p">(</span><span class="nf">min</span><span class="p">(</span><span class="n">x</span><span class="p">),</span> <span class="nf">max</span><span class="p">(</span><span class="n">x</span><span class="p">),</span> <span class="n">length.out</span> <span class="o">=</span> <span class="n">input</span><span class="o">$</span><span class="n">bin_count</span> <span class="o">+</span> <span class="m">1</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">  <span class="p">})</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="c1"># Use `reactive_output()` to send data to the client</span>
</span></span><span class="line"><span class="cl">  <span class="n">output</span><span class="o">$</span><span class="n">dist_data</span> <span class="o">&lt;-</span> <span class="nf">reactive_output</span><span class="p">({</span>
</span></span><span class="line"><span class="cl">    <span class="n">bins</span> <span class="o">&lt;-</span> <span class="nf">hist</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">breaks</span> <span class="o">=</span> <span class="nf">breaks</span><span class="p">(),</span> <span class="n">plot</span> <span class="o">=</span> <span class="kc">FALSE</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="nf">list</span><span class="p">(</span><span class="n">breaks</span> <span class="o">=</span> <span class="nf">I</span><span class="p">(</span><span class="n">bins</span><span class="o">$</span><span class="n">breaks</span><span class="p">),</span> <span class="n">counts</span> <span class="o">=</span> <span class="nf">I</span><span class="p">(</span><span class="n">bins</span><span class="o">$</span><span class="n">counts</span><span class="p">))</span>
</span></span><span class="line"><span class="cl">  <span class="p">})</span>
</span></span><span class="line"><span class="cl"><span class="p">}</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nf">shinyApp</span><span class="p">(</span><span class="n">ui</span><span class="p">,</span> <span class="n">server</span><span class="p">)</span></span></span></code></pre></div></div>
</div>
<div id="tabset-2-2">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
</span></span><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">shiny.express</span> <span class="kn">import</span> <span class="nb">input</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">shinyreact</span> <span class="kn">import</span> <span class="n">reactive_output</span><span class="p">,</span> <span class="n">set_react_page</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Set up the page UI using shinyreact</span>
</span></span><span class="line"><span class="cl"><span class="n">set_react_page</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">x</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">read_csv</span><span class="p">(</span><span class="s2">&#34;faithful.csv&#34;</span><span class="p">)[</span><span class="s2">&#34;waiting&#34;</span><span class="p">]</span><span class="o">.</span><span class="n">to_numpy</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nd">@reactive_output</span>
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">dist_data</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">    <span class="n">breaks</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">linspace</span><span class="p">(</span><span class="n">x</span><span class="o">.</span><span class="n">min</span><span class="p">(),</span> <span class="n">x</span><span class="o">.</span><span class="n">max</span><span class="p">(),</span> <span class="nb">input</span><span class="o">.</span><span class="n">bin_count</span><span class="p">()</span> <span class="o">+</span> <span class="mi">1</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="n">counts</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">histogram</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">bins</span><span class="o">=</span><span class="n">breaks</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="k">return</span> <span class="p">{</span><span class="s2">&#34;breaks&#34;</span><span class="p">:</span> <span class="n">breaks</span><span class="o">.</span><span class="n">tolist</span><span class="p">(),</span> <span class="s2">&#34;counts&#34;</span><span class="p">:</span> <span class="n">counts</span><span class="o">.</span><span class="n">tolist</span><span class="p">()}</span></span></span></code></pre></div></div>
</div>
</div>
<p>Two things are different from a traditional Shiny app.</p>
<ol>
<li><strong>The UI is one line.</strong> <code>page_react()</code> (or <code>set_react_page()</code> in Shiny Express) serves the React client that lives in your app&rsquo;s <code>www/</code> directory. There&rsquo;s no <code>sliderInput()</code> or <code>plotOutput()</code>. The <code>www/</code> directory contains the static assets for the React app: <code>ui.js</code> and <code>ui.css</code> (when available).</li>
<li><strong>The output is data.</strong> <code>reactive_output()</code> has no matching UI function. This is a new concept for the Shiny ecosystem! <code>renderPlot()</code> sends an image for <code>plotOutput()</code> to place. <code>reactive_output()</code> sends plain JSON, here the histogram&rsquo;s <code>breaks</code> and <code>counts</code>. Like any render function, <code>reactive_output()</code> re-executes each time its reactive dependencies change. The server sends facts and React decides how to present them.</li>
</ol>
<p>Now the client:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-tsx" data-lang="tsx"><span class="line"><span class="cl"><span class="c1">// src/ui.tsx (which compiles to www/ui.js)
</span></span></span><span class="line"><span class="cl"><span class="kd">function</span> <span class="nx">App() {</span>
</span></span><span class="line"><span class="cl">  <span class="kr">const</span> <span class="p">[</span><span class="nx">binCount</span><span class="p">,</span> <span class="nx">setBinCount</span><span class="p">]</span> <span class="o">=</span> <span class="nx">useShinyInput</span><span class="p">(</span><span class="s2">&#34;bin_count&#34;</span><span class="p">,</span> <span class="mi">30</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">  <span class="kr">const</span> <span class="nx">bins</span> <span class="o">=</span> <span class="nx">useShinyOutputValue</span><span class="p">(</span><span class="s2">&#34;dist_data&#34;</span><span class="p">,</span> <span class="kc">null</span><span class="p">);</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">  <span class="k">return</span> <span class="p">(</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;</span><span class="nt">main</span> <span class="na">className</span><span class="o">=</span><span class="s">&#34;layout&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">      <span class="p">&lt;</span><span class="nt">label</span> <span class="na">htmlFor</span><span class="o">=</span><span class="s">&#34;bin_count&#34;</span><span class="p">&gt;</span><span class="nb">Number</span> <span class="k">of</span> <span class="nx">bins</span><span class="o">:</span><span class="p">&lt;/</span><span class="nt">label</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">      <span class="p">&lt;</span><span class="nt">input</span>
</span></span><span class="line"><span class="cl">        <span class="na">id</span><span class="o">=</span><span class="s">&#34;bin_count&#34;</span>
</span></span><span class="line"><span class="cl">        <span class="na">type</span><span class="o">=</span><span class="s">&#34;range&#34;</span>
</span></span><span class="line"><span class="cl">        <span class="na">min</span><span class="o">=</span><span class="p">{</span><span class="mi">1</span><span class="p">}</span>
</span></span><span class="line"><span class="cl">        <span class="na">max</span><span class="o">=</span><span class="p">{</span><span class="mi">50</span><span class="p">}</span>
</span></span><span class="line"><span class="cl">        <span class="na">value</span><span class="o">=</span><span class="p">{</span><span class="nx">binCount</span><span class="p">}</span>
</span></span><span class="line"><span class="cl">        <span class="na">onChange</span><span class="o">=</span><span class="p">{(</span><span class="nx">e</span><span class="p">)</span> <span class="o">=&gt;</span> <span class="nx">setBinCount</span><span class="p">(</span><span class="nb">Number</span><span class="p">(</span><span class="nx">e</span><span class="p">.</span><span class="nx">target</span><span class="p">.</span><span class="nx">value</span><span class="p">))}</span>
</span></span><span class="line"><span class="cl">      <span class="p">/&gt;</span>
</span></span><span class="line"><span class="cl">      <span class="p">&lt;</span><span class="nt">Histogram</span> <span class="na">bins</span><span class="o">=</span><span class="p">{</span><span class="nx">bins</span><span class="p">}</span> <span class="p">/&gt;</span>
</span></span><span class="line"><span class="cl">    <span class="p">&lt;/</span><span class="nt">main</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl">  <span class="p">);</span>
</span></span><span class="line"><span class="cl"><span class="p">}</span></span></span></code></pre></div></div>
<figure>
<img src="https://opensource.posit.co/blog/2026-09-30_introducing-shinyreact/hello-app.gif" data-fig-alt="A Shiny app with a range slider labeled Number of bins on the left and a histogram of Old Faithful waiting times on the right. As the slider moves from 30 to 8, 45, 20, and back to 30, the histogram redraws with that many bars and the caption updates to match." alt="The Old Faithful app: dragging the bin-count slider re-renders the histogram as the server sends new breaks and counts." />
<figcaption aria-hidden="true">The Old Faithful app: dragging the bin-count slider re-renders the histogram as the server sends new breaks and counts.</figcaption>
</figure>
<p>If you&rsquo;ve written React before, this is an ordinary component. <code>Histogram</code> is whatever you like: a hand-written SVG, a charting library, or a component from your design system. The only shinyreact-specific parts are two hooks:</p>
<ul>
<li><code>useShinyInput()</code> works like React&rsquo;s <code>useState()</code>, except that the value is also sent to the server as <code>input$bin_count</code> (or <code>input.bin_count()</code> in Python). Calling <code>setBinCount()</code> updates the UI and triggers the server&rsquo;s reactive graph.</li>
<li><code>useShinyOutputValue()</code> reads the value of a <code>reactive_output()</code>. When the server recomputes <code>dist_data</code>, the component re-renders with the new data.</li>
</ul>
<p>Those two hooks cover the vast majority of apps.</p>
<h2 id="ids-and-json-are-the-contract">IDs and JSON are the contract
</h2>
<p>The client and server share exactly two things: IDs and JSON values. If you write the client in TypeScript, each hook takes an optional type for its value, such as <code>useShinyInput&lt;number&gt;(&quot;bin_count&quot;, 30)</code>, and your editor will then flag a mismatch that <code>Shiny.setInputValue()</code> never could.</p>
<p>Here is the full round trip for the Old Faithful app:</p>
<ol>
<li>The client calls <code>useShinyInput(&quot;bin_count&quot;, 30)</code>, which sends <code>{&quot;bin_count&quot;: 30}</code> to the server.</li>
<li>The server reads <code>input$bin_count</code>, runs its reactive graph, and computes <code>dist_data</code> using <code>reactive_output()</code>.</li>
<li>The client receives the <code>dist_data</code> result as <code>{&quot;dist_data&quot;: {&quot;breaks&quot;: [...], &quot;counts&quot;: [...]}}</code>, and <code>useShinyOutputValue(&quot;dist_data&quot;)</code> hands it to React.</li>
</ol>
<p>That narrow boundary is what makes a shinyreact app easy to reason about. The server doesn&rsquo;t know or care how the histogram is drawn, and the client doesn&rsquo;t know how the bins are computed. Each side can be reviewed, tested, and rewritten independently, whether a person or an agent wrote it.</p>
<p>When you need more, a few other hooks are available. <code>useShinyOutputStatus()</code> tells you when an output is recalculating so you can show a skeleton, and <code>useShinyMessageHandler()</code> receives one-off messages pushed from the server with <code>send_message()</code>. See the <a href="https://posit-dev.github.io/shinyreact/js/" target="_blank" rel="noopener">JavaScript API reference</a> for the full list.</p>
<h2 id="you-dont-have-to-write-the-react-yourself">You don&rsquo;t have to write the React yourself
</h2>
<p>A fair reaction to all of this is, &ldquo;but I chose Shiny so I wouldn&rsquo;t have to write JavaScript!&rdquo;. That&rsquo;s still the goal. What&rsquo;s changed is that today&rsquo;s AI agents are very good at writing React, far better than they are at writing custom Shiny UI, because there is so much more React in the world for them to learn from.</p>
<p>With shinyreact, your job is to own the server, which is where your data and domain logic live, and to describe and review the UI. To make that concrete, both packages ship <a href="https://posit-dev.github.io/shinyreact/articles/agent-skills.html" target="_blank" rel="noopener">Agent Skills</a>:</p>
<ul>
<li><strong><code>shinyreact-build-app</code></strong> scaffolds a new shinyreact app from a description.</li>
<li><strong><code>shinyreact-convert-app</code></strong> opens an existing Shiny app in a browser, describes what it does in plain English, and then rewrites the UI in React against the same server.</li>
</ul>
<p>The day-to-day loop is familiar. You edit <code>src/ui.tsx</code> (or ask an agent to), the build step writes <code>www/ui.js</code>, and you reload the running Shiny app to see the change. The server side is unchanged: <code>runApp()</code> or <code>shiny run</code>, exactly as before.</p>
<p>Node.js isn&rsquo;t required, since a client can be a single <code>www/ui.js</code> file with no build step. However, we do strongly recommend it as it gives you a proper development environment: a build step gets you TypeScript, linting, and formatting.</p>
<h2 id="keep-what-you-already-have">Keep what you already have
</h2>
<p>shinyreact doesn&rsquo;t ask you to throw away the rest of the Shiny ecosystem.</p>
<ul>
<li><strong>Existing outputs.</strong> <code>renderPlotly()</code>, <code>render.data_frame</code>, and other render functions work as before. Drop a <code>&lt;ShinyOutput id=&quot;...&quot; /&gt;</code> into your React tree, and the output&rsquo;s JavaScript and CSS dependencies are delivered automatically.</li>
<li><strong>Modules.</strong> <code>ShinyModuleProvider</code> namespaces hook IDs to match a server-side module.</li>
<li><strong>Bookmarking.</strong> URL and server bookmarking seed the initial values of <code>useShinyInput()</code>.</li>
</ul>
<h2 id="testing-at-every-layer">Testing at every layer
</h2>
<p>Because the client and server only share IDs and JSON, each layer can be tested on its own. The server is the layer most Shiny developers care about, and it needs no browser at all. Use <code>shiny::testServer()</code> in R, or the new <code>local_server</code> pytest fixture in <a href="https://opensource.posit.co/blog/2026-09-22_shiny-python-1-8">Shiny for Python 1.8</a>: set inputs and assert on the JSON that comes out.</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">test_histogram</span><span class="p">(</span><span class="n">local_server</span><span class="p">):</span>
</span></span><span class="line"><span class="cl">    <span class="n">local_server</span><span class="o">.</span><span class="n">set_inputs</span><span class="p">(</span><span class="n">bin_count</span><span class="o">=</span><span class="mi">10</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="n">data</span> <span class="o">=</span> <span class="n">local_server</span><span class="o">.</span><span class="n">get_output</span><span class="p">(</span><span class="s2">&#34;dist_data&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">    <span class="k">assert</span> <span class="nb">len</span><span class="p">(</span><span class="n">data</span><span class="p">[</span><span class="s2">&#34;counts&#34;</span><span class="p">])</span> <span class="o">==</span> <span class="mi">10</span></span></span></code></pre></div></div>
<p>The other layers have their own tools:</p>
<ul>
<li><strong>The client.</strong> Ordinary JavaScript unit tests, with whichever test runner you (or your agent) prefer.</li>
<li><strong>The wire.</strong> <code>wire_tap()</code> for <a href="https://rstudio.github.io/shinytest2/" target="_blank" rel="noopener">shinytest2</a> and <code>WireTap</code> for Playwright record the JSON crossing the websocket during a browser test. That gives you an end-to-end assertion on what the client actually sent and what the server actually returned, without reaching into the rendered DOM.</li>
<li><strong>The behavior.</strong> Each example app ships a <code>FEATURES.md</code>: a nested list where every leaf is one checkable claim about the app, written in plain English. A person can read it as a spec, and an agent with a browser can walk it and turn each claim into a deterministic check against the running app.</li>
</ul>
<p>The <a href="https://posit-dev.github.io/shinyreact/articles/testing.html" target="_blank" rel="noopener">testing article</a> covers all of them.</p>
<h2 id="in-the-wild-plotomics-live">In the wild: Plotomics Live
</h2>
<p>Over the summer, Shiny intern <a href="https://www.samuelbharti.com" target="_blank" rel="noopener">Samuel Bharti</a> built a <a href="https://posit-shiny-showcase-bioinformatics.share.connect.posit.cloud/" target="_blank" rel="noopener">collection of bioinformatics Shiny apps</a>. Most of them are plain Shiny and bslib. The one that reached for shinyreact did so because the visualizations demanded it.</p>
<p><a href="https://posit-plotomics-live.share.connect.posit.cloud/" target="_blank" rel="noopener">Plotomics Live</a> (<a href="https://github.com/samuelbharti/plotomics-live" target="_blank" rel="noopener">source</a>, <a href="https://doi.org/10.5281/zenodo.21936926" target="_blank" rel="noopener">DOI</a>) is a 26-page gallery of GPU-accelerated genomics visualizations, from oncoplots to a one-million-point Xenium spatial view and an interactive 584,000-cell UMAP. Large data skips JSON entirely and moves as compact binary typed arrays straight to the GPU. Because React owns the component, a new selection updates the data in place without re-mounting the visualization or reallocating GPU buffers.</p>
<p><video controls autoplay loop muted playsinline src="https://opensource.posit.co/blog/2026-09-30_introducing-shinyreact/plotomics-live.mp4" class="w-full border rounded" title="Plotomics Live: one million Xenium detections rendered with WebGL, with hover tooltips and a legend of marker classes"></video></p>
<p>In Samuel&rsquo;s words:</p>
<blockquote>
<p>R stays the analysis engine, React becomes the visualization layer, and shinyreact removes the custom JavaScript bindings, manual message passing, and serialization code that used to sit between them.</p>
</blockquote>
<h2 id="whats-next">What&rsquo;s next
</h2>
<p>We&rsquo;re working on two directions next:</p>
<ul>
<li><strong>Embedding React components in existing apps</strong>, so you can adopt shinyreact one piece at a time without porting a whole app.</li>
<li><strong>Wrapping shinyreact in your own package</strong>, so you can build a component once and ship it the way bslib ships its components.</li>
</ul>
<h2 id="learn-more">Learn more
</h2>
<ul>
<li>Documentation: <a href="https://posit-dev.github.io/shinyreact/" target="_blank" rel="noopener">posit-dev.github.io/shinyreact</a></li>
<li>Source and example apps: <a href="https://github.com/posit-dev/shinyreact" target="_blank" rel="noopener">github.com/posit-dev/shinyreact</a></li>
<li>posit::conf(2026) talk slides: <a href="https://schloerke.com/presentation-2026-09-15-posit-conf-shinyreact/" target="_blank" rel="noopener">Beyond Bootstrap: Building Custom Shiny UI with React</a></li>
</ul>
<p>Give shinyreact a try, and please <a href="https://github.com/posit-dev/shinyreact/issues" target="_blank" rel="noopener">let us know</a> what you build and what breaks.</p>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-09-30_introducing-shinyreact/feature.png" length="310650" type="image/png" />
    </item>
    <item>
      <title>Multiple tables, saved conversations, and take-home dashboards: querychat R 0.4.0 and Python 0.9.0</title>
      <link>https://opensource.posit.co/blog/2026-09-29_querychat-tables-handoff/</link>
      <pubDate>Tue, 29 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://opensource.posit.co/blog/2026-09-29_querychat-tables-handoff/</guid>
      <dc:creator>Carson Sievert</dc:creator>
      <dc:creator>Garrick Aden-Buie</dc:creator><description><![CDATA[<p>I&rsquo;m thrilled to share the latest <a href="https://posit-dev.github.io/querychat" target="_blank" rel="noopener">querychat</a> release for both R (v0.4.0) and Python (v0.9.0).
Grab the latest from CRAN or PyPI:</p>
<div class="panel-tabset" data-tabset-group="language">
<ul id="tabset-1" class="panel-tabset-tabby">
<li><a data-tabby-default href="#tabset-1-1">R</a></li>
<li><a href="#tabset-1-2">Python</a></li>
</ul>
<div id="tabset-1-1">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="nf">install.packages</span><span class="p">(</span><span class="s">&#34;querychat&#34;</span><span class="p">)</span></span></span></code></pre></div></div>
</div>
<div id="tabset-1-2">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pip install -U querychat</span></span></code></pre></div></div>
</div>
</div>
<p>This release adds several headline features, including support for multiple tables, <code>data-dict.yml</code>, a full-page chat layout, support for pins, and a new <code>/handoff</code> command.
It also builds on <a href="https://opensource.posit.co/blog/2026-09-15_shinychat-r-0.5.0-python-0.7.1">shinychat&rsquo;s recent momentum</a>.
As a result, querychat gets chat features like history and file attachments basically for free.
<code>querychat_app()</code> provides a quick and useful way to start chatting with data and getting bespoke <a href="https://opensource.posit.co/blog/2026-06-17_querychat-ggsql">ggsql visualizations</a>, and it now uses shinychat&rsquo;s <code>page_chat()</code> for a full chat app experience.</p>
<p>See the <a href="https://github.com/posit-dev/querychat/blob/main/pkg-r/NEWS.md" target="_blank" rel="noopener">R release notes</a> and the <a href="https://github.com/posit-dev/querychat/blob/main/pkg-py/CHANGELOG.md" target="_blank" rel="noopener">Python changelog</a> for the complete list, including <a href="#a-few-changes-for-existing-apps">a few changes for existing apps</a> if you&rsquo;re upgrading.</p>
<h2 id="full-page-chat-layout">Full-page chat layout
</h2>
<p><code>querychat_app()</code> / <code>QueryChat.app()</code> now put the chat front and center (built on shinychat&rsquo;s <code>page_chat()</code>), leaving more breathing room for things you create within the chat.</p>
<div class="panel-tabset" data-tabset-group="language">
<ul id="tabset-2" class="panel-tabset-tabby">
<li><a data-tabby-default href="#tabset-2-1">R</a></li>
<li><a href="#tabset-2-2">Python</a></li>
</ul>
<div id="tabset-2-1">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="nf">library</span><span class="p">(</span><span class="n">palmerpenguins</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nf">querychat_app</span><span class="p">(</span><span class="n">penguins</span><span class="p">)</span></span></span></code></pre></div></div>
</div>
<div id="tabset-2-2">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">querychat</span> <span class="kn">import</span> <span class="n">QueryChat</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">palmerpenguins</span> <span class="kn">import</span> <span class="n">load_penguins</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">qc</span> <span class="o">=</span> <span class="n">QueryChat</span><span class="p">(</span><span class="n">load_penguins</span><span class="p">(),</span> <span class="s2">&#34;penguins&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">qc</span><span class="o">.</span><span class="n">app</span><span class="p">()</span></span></span></code></pre></div></div>
</div>
</div>
<script src="https://fast.wistia.com/player.js" async></script>
<script src="https://fast.wistia.com/embed/xe4aalo9yw.js" async type="module"></script>
<style>wistia-player[media-id='xe4aalo9yw']:not(:defined) { background: center / contain no-repeat url('https://fast.wistia.com/embed/medias/xe4aalo9yw/swatch'); display: block; filter: blur(5px); padding-top:75.21%; }</style>
<p><wistia-player media-id="xe4aalo9yw" aspect="1.3296296296296297"></wistia-player></p>
<p>A view of the actual data is always accessible via the data source drawer on the right-hand side.
In the case of <a href="#multiple-tables">multiple tables</a>, you&rsquo;ll see the active table<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup>, as well as other available tables below it.</p>
<img src="https://opensource.posit.co/blog/2026-09-29_querychat-tables-handoff/multi-table.png" alt="A view of QueryChat.app() with the data source drawer opened." class="shadow rounded" />
<p>The new <code>page()</code> method brings this same full-page chat layout to your own apps.
Your users get the chat front and center, and you can still add custom views on other <code>pages</code>, in the <code>drawer</code>, or in the <code>sidebar</code>.</p>
<p>Learn more about <a href="https://posit-dev.github.io/querychat/r/articles/build.html" target="_blank" rel="noopener">building custom apps in R</a> and <a href="https://posit-dev.github.io/querychat/py/build.html" target="_blank" rel="noopener">Python</a>.</p>
<div class="panel-tabset" data-tabset-group="language">
<ul id="tabset-3" class="panel-tabset-tabby">
<li><a data-tabby-default href="#tabset-3-1">R</a></li>
<li><a href="#tabset-3-2">Python</a></li>
</ul>
<div id="tabset-3-1">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="n">qc</span> <span class="o">&lt;-</span> <span class="n">QueryChat</span><span class="o">$</span><span class="nf">new</span><span class="p">(</span><span class="n">penguins</span><span class="p">,</span> <span class="s">&#34;penguins&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">ui</span> <span class="o">&lt;-</span> <span class="n">qc</span><span class="o">$</span><span class="nf">page</span><span class="p">(</span><span class="s">&#34;Penguins Explorer&#34;</span><span class="p">)</span></span></span></code></pre></div></div>
</div>
<div id="tabset-3-2">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">querychat.express</span> <span class="kn">import</span> <span class="n">QueryChat</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">palmerpenguins</span> <span class="kn">import</span> <span class="n">load_penguins</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">qc</span> <span class="o">=</span> <span class="n">QueryChat</span><span class="p">(</span><span class="n">load_penguins</span><span class="p">(),</span> <span class="s2">&#34;penguins&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">qc</span><span class="o">.</span><span class="n">page</span><span class="p">(</span><span class="s2">&#34;Penguins Explorer&#34;</span><span class="p">)</span></span></span></code></pre></div></div>
</div>
</div>
<h2 id="conversation-history">Conversation history
</h2>
<p>Another major improvement is persistent conversation history (<a href="https://opensource.posit.co/blog/2026-09-15_shinychat-r-0.5.0-python-0.7.1#return-to-earlier-conversations">mostly thanks to shinychat</a>).
In addition to starting new chats and returning to previous ones, conversations now persist across page reloads and timeouts.
As a result, it is now much more difficult to lose your progress.</p>
<img src="https://opensource.posit.co/blog/2026-09-29_querychat-tables-handoff/history.png" alt="A view of QueryChat.app() with the history sidebar opened." class="shadow rounded" />
<p>Also, now that shinychat supports <a href="https://opensource.posit.co/blog/2026-09-15_shinychat-r-0.5.0-python-0.7.1#edit-a-message-and-compare-answers">editable messages</a>, <a href="https://opensource.posit.co/blog/2026-09-15_shinychat-r-0.5.0-python-0.7.1#stream-responses-and-show-thinking">canceling responses</a>, <a href="https://opensource.posit.co/blog/2026-09-15_shinychat-r-0.5.0-python-0.7.1#attach-files">file attachments</a>, and more, querychat does too.</p>
<h2 id="multiple-tables">Multiple tables
</h2>
<p>querychat now supports multiple tables in a single chat instance.
If those tables reside in a singular source, like a database, you can add them all in one fell swoop with the <code>add_tables()</code> method.</p>
<div class="panel-tabset" data-tabset-group="language">
<ul id="tabset-4" class="panel-tabset-tabby">
<li><a data-tabby-default href="#tabset-4-1">R</a></li>
<li><a href="#tabset-4-2">Python</a></li>
</ul>
<div id="tabset-4-1">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="nf">library</span><span class="p">(</span><span class="n">querychat</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">qc</span> <span class="o">&lt;-</span> <span class="n">QueryChat</span><span class="o">$</span><span class="nf">new</span><span class="p">()</span>
</span></span><span class="line"><span class="cl"><span class="n">qc</span><span class="o">$</span><span class="nf">add_tables</span><span class="p">(</span><span class="n">db</span><span class="p">,</span> <span class="nf">c</span><span class="p">(</span><span class="s">&#34;customers&#34;</span><span class="p">,</span> <span class="s">&#34;orders&#34;</span><span class="p">,</span> <span class="s">&#34;order_items&#34;</span><span class="p">))</span></span></span></code></pre></div></div>
</div>
<div id="tabset-4-2">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">querychat</span> <span class="kn">import</span> <span class="n">QueryChat</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">qc</span> <span class="o">=</span> <span class="n">QueryChat</span><span class="p">()</span>
</span></span><span class="line"><span class="cl"><span class="n">qc</span><span class="o">.</span><span class="n">add_tables</span><span class="p">(</span><span class="n">db</span><span class="p">,</span> <span class="p">[</span><span class="s2">&#34;customers&#34;</span><span class="p">,</span> <span class="s2">&#34;orders&#34;</span><span class="p">,</span> <span class="s2">&#34;order_items&#34;</span><span class="p">])</span></span></span></code></pre></div></div>
</div>
</div>
<p>querychat&rsquo;s query and visualization tools handle joins across these tables, so a single question can span all of them.
To write a query like the one below, the LLM first needs to know what&rsquo;s in each table: column names, types, and value ranges.
So it starts by fetching the schema of each table it needs (&ldquo;Fetch schemas&rdquo;), then generates the query with that metadata in mind.</p>
<img src="https://opensource.posit.co/blog/2026-09-29_querychat-tables-handoff/cross-join.png" alt="A chat asking for average order value by acquisition channel. The LLM fetches schemas for the customers, orders, and order_items tables, then runs a SQL query that joins all three." class="shadow rounded" />
<p>In a custom app, the new <code>table()</code> method gives your server code reactive access to any table, including whatever filters the LLM has applied to it.
That means you can keep building your own plots and views in Shiny, and your users can drive them just by chatting.</p>
<div class="panel-tabset" data-tabset-group="language">
<ul id="tabset-5" class="panel-tabset-tabby">
<li><a data-tabby-default href="#tabset-5-1">R</a></li>
<li><a href="#tabset-5-2">Python</a></li>
</ul>
<div id="tabset-5-1">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="n">output</span><span class="o">$</span><span class="n">order_price</span> <span class="o">&lt;-</span> <span class="nf">renderPlot</span><span class="p">({</span>
</span></span><span class="line"><span class="cl">  <span class="n">orders_tbl</span> <span class="o">&lt;-</span> <span class="n">qc</span><span class="o">$</span><span class="nf">table</span><span class="p">(</span><span class="s">&#34;orders&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">  <span class="c1"># LLM can perform filter queries on $df()</span>
</span></span><span class="line"><span class="cl">  <span class="n">orders_df</span> <span class="o">&lt;-</span> <span class="n">orders_tbl</span><span class="o">$</span><span class="nf">df</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">  <span class="nf">hist</span><span class="p">(</span><span class="n">orders_df</span><span class="o">$</span><span class="n">price</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="p">})</span></span></span></code></pre></div></div>
</div>
<div id="tabset-5-2">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="nd">@render.plot</span>
</span></span><span class="line"><span class="cl"><span class="k">def</span> <span class="nf">_</span><span class="p">():</span>
</span></span><span class="line"><span class="cl">  <span class="n">orders_tbl</span> <span class="o">=</span> <span class="n">qc</span><span class="o">.</span><span class="n">table</span><span class="p">(</span><span class="s2">&#34;orders&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">  <span class="c1"># LLM can perform filter queries on .df()</span>
</span></span><span class="line"><span class="cl">  <span class="n">orders_df</span> <span class="o">=</span> <span class="n">orders_tbl</span><span class="o">.</span><span class="n">df</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">  <span class="n">plt</span><span class="o">.</span><span class="n">hist</span><span class="p">(</span><span class="n">orders_df</span><span class="p">[</span><span class="s2">&#34;price&#34;</span><span class="p">])</span></span></span></code></pre></div></div>
</div>
</div>
<h2 id="provide-context-data-dict">Provide context: <code>data-dict</code>
</h2>
<p>querychat does its best to gather context from the data itself.
When the LLM fetches a table&rsquo;s schema, it gets whatever metadata querychat can compute from the data.
That&rsquo;s a good start, but in practice it often isn&rsquo;t enough.
Column names can be cryptic, coded values need decoding, and nothing in the data says what &ldquo;active customer&rdquo; means to your business or how tables relate.
In the <a href="#multiple-tables">example above</a>, the LLM had to infer from column names alone that <code>orders.customer_id</code> points to <code>customers.id</code>.</p>
<p>A <strong>data dictionary</strong> is how you fill in what the data can&rsquo;t say about itself.
It&rsquo;s a YAML file that follows the <a href="https://data-dict.tidyverse.org/" target="_blank" rel="noopener">data-dict</a> spec.
Alongside plain-English descriptions, it has its own fields for column types, allowed values, keys, and the relationships between tables.
This is now the preferred way to describe your data:</p>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="nt">tables</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">customers</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">description</span><span class="p">:</span><span class="w"> </span><span class="l">One row per customer.</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">columns</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">acquisition_channel</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">type</span><span class="p">:</span><span class="w"> </span><span class="l">enum</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">values</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="l">organic, paid_search, social, referral]</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">description</span><span class="p">:</span><span class="w"> </span><span class="l">How the customer first found us.</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">orders</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">description</span><span class="p">:</span><span class="w"> </span><span class="l">One row per order.</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">columns</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">customer_id</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">type</span><span class="p">:</span><span class="w"> </span><span class="l">number(id)</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">constraints</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="l">foreign_key]</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">order_items</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">description</span><span class="p">:</span><span class="w"> </span><span class="l">One row per item in an order.</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">columns</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">price</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">type</span><span class="p">:</span><span class="w"> </span><span class="l">number(quantity)</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">description</span><span class="p">:</span><span class="w"> </span><span class="l">Item price in USD.</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">relationships</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="nt">description</span><span class="p">:</span><span class="w"> </span><span class="l">Each order belongs to one customer.</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">cardinality</span><span class="p">:</span><span class="w"> </span><span class="l">many-to-one</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">join</span><span class="p">:</span><span class="w"> </span><span class="l">orders.customer_id = customers.id</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="nt">description</span><span class="p">:</span><span class="w"> </span><span class="l">Each order has one or more items.</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">cardinality</span><span class="p">:</span><span class="w"> </span><span class="l">many-to-one</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">join</span><span class="p">:</span><span class="w"> </span><span class="l">order_items.order_id = orders.id</span></span></span></code></pre></div></div>
<p>Pass it in as <code>data_dict = &quot;dictionary.yml&quot;</code> (R) / <code>data_dict=&quot;dictionary.yml&quot;</code> (Python).
When the LLM fetches a table&rsquo;s schema, any column you&rsquo;ve documented comes straight from your dictionary, with nothing left to infer.
querychat only computes metadata from the data for the columns your dictionary doesn&rsquo;t cover.</p>
<h2 id="extract-insights-handoff">Extract insights: <code>/handoff</code>
</h2>
<p>Over the course of a conversation, querychat tends to produce a pile of results, some more useful than others.
The useful ones deserve to live on in a reproducible artifact that doesn&rsquo;t depend on the chat app.</p>
<p>That&rsquo;s the idea behind the new <strong><code>/handoff</code></strong> slash command.
It&rsquo;s available in every querychat app, with no setup required.
When a user types <code>/handoff</code> into the chat input, a wizard opens where they select the results that matter, choose an output format (e.g., Quarto, marimo, Shiny, Jupyter), and add any presentation instructions for the LLM to follow when it generates the handoff document.</p>
<img src="https://opensource.posit.co/blog/2026-09-29_querychat-tables-handoff/handoff-wizard.png" alt="The handoff wizard" class="shadow rounded" />
<p>When the user finishes the wizard, the handoff document&rsquo;s source code streams into a code editor, where they can revise it by hand or with AI assistance.
A download button then gives them a zip bundle with the handoff document, a README file, and the data sources (if they&rsquo;re small enough).</p>
<img src="https://opensource.posit.co/blog/2026-09-29_querychat-tables-handoff/handoff-download.png" alt="The handoff editor" class="shadow rounded" />
<h2 id="chat-with-pinned-data">Chat with pinned data
</h2>
<p>querychat can now chat with data pinned to a <a href="https://pins.rstudio.com/" target="_blank" rel="noopener">pins</a> board.
Pass the board and the pin name, and querychat reads the pin (parquet, CSV, JSON, RDS, and more) and uses its title, description, and tags as the starting data description:</p>
<div class="panel-tabset" data-tabset-group="language">
<ul id="tabset-6" class="panel-tabset-tabby">
<li><a data-tabby-default href="#tabset-6-1">R</a></li>
<li><a href="#tabset-6-2">Python</a></li>
</ul>
<div id="tabset-6-1">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-r" data-lang="r"><span class="line"><span class="cl"><span class="nf">library</span><span class="p">(</span><span class="n">pins</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="nf">library</span><span class="p">(</span><span class="n">querychat</span><span class="p">)</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">board</span> <span class="o">&lt;-</span> <span class="nf">board_connect</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="nf">querychat_app</span><span class="p">(</span><span class="n">board</span><span class="p">,</span> <span class="s">&#34;my_pin&#34;</span><span class="p">)</span></span></span></code></pre></div></div>
</div>
<div id="tabset-6-2">
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pip install <span class="s2">&#34;querychat[pins]&#34;</span></span></span></code></pre></div></div>
<div class="code-block"><div class="highlight"><pre tabindex="0" class="chroma"><code class="language-python" data-lang="python"><span class="line"><span class="cl"><span class="kn">import</span> <span class="nn">pins</span>
</span></span><span class="line"><span class="cl"><span class="kn">from</span> <span class="nn">querychat</span> <span class="kn">import</span> <span class="n">QueryChat</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">board</span> <span class="o">=</span> <span class="n">pins</span><span class="o">.</span><span class="n">board_connect</span><span class="p">()</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">qc</span> <span class="o">=</span> <span class="n">QueryChat</span><span class="p">(</span><span class="n">board</span><span class="p">,</span> <span class="s2">&#34;my_pin&#34;</span><span class="p">)</span>
</span></span><span class="line"><span class="cl"><span class="n">qc</span><span class="o">.</span><span class="n">app</span><span class="p">()</span></span></span></code></pre></div></div>
</div>
</div>
<p>For more control, such as setting the table name used in SQL, use the new <code>PinSource</code> class directly.
Multiple pins, or pins mixed with ordinary data frames, also work together in one chat.
Everything is materialized into a shared DuckDB connection behind the scenes, so the LLM can join and filter across all of it.
See the <a href="https://posit-dev.github.io/querychat/r/articles/data-sources.html" target="_blank" rel="noopener">data sources guide for R</a> and <a href="https://posit-dev.github.io/querychat/py/data-sources.html" target="_blank" rel="noopener">Python</a> for details.</p>
<h2 id="a-few-changes-for-existing-apps">A few changes for existing apps
</h2>
<p>This release also includes a handful of breaking changes, mostly around how querychat manages connections and bookmarking now that history is built in.
If you&rsquo;re upgrading, skim the <a href="https://github.com/posit-dev/querychat/blob/main/pkg-r/NEWS.md" target="_blank" rel="noopener">R NEWS</a> or <a href="https://github.com/posit-dev/querychat/blob/main/pkg-py/CHANGELOG.md" target="_blank" rel="noopener">Python CHANGELOG</a> breaking-changes sections before you do.</p>
<h2 id="learn-more">Learn more
</h2>
<ul>
<li><a href="https://posit-dev.github.io/querychat/py/" target="_blank" rel="noopener">querychat documentation</a> (<a href="https://posit-dev.github.io/querychat/r/" target="_blank" rel="noopener">R</a>) &mdash; full guides on data sources, context, tools, and deployment</li>
<li><a href="https://data-dict.tidyverse.org/" target="_blank" rel="noopener">data-dict</a> &mdash; the data dictionary spec querychat now reads</li>
<li><a href="https://ggsql.org" target="_blank" rel="noopener">ggsql</a> &mdash; the grammar of graphics for SQL that powers querychat&rsquo;s visualizations</li>
<li><a href="https://posit-dev.github.io/shinychat/py/" target="_blank" rel="noopener">shinychat</a> (<a href="https://posit-dev.github.io/shinychat/r/" target="_blank" rel="noopener">R</a>) &mdash; the chat UI toolkit querychat builds on</li>
<li><a href="https://posit-dev.github.io/chatlas/" target="_blank" rel="noopener">chatlas</a> (<a href="https://ellmer.tidyverse.org" target="_blank" rel="noopener">ellmer</a>) &mdash; the underlying LLM tool-calling libraries</li>
<li><a href="https://github.com/posit-dev/querychat" target="_blank" rel="noopener">Source on GitHub</a> &mdash; issues, discussions, and contributions welcome</li>
</ul>
<h2 id="acknowledgements">Acknowledgements
</h2>
<p>We thank everyone who contributed to these releases, for opening issues, submitting pull requests, and providing feedback:
<a href="https://github.com/gadenbuie" target="_blank" rel="noopener">@gadenbuie</a>,
<a href="https://github.com/hadley" target="_blank" rel="noopener">@hadley</a>,
<a href="https://github.com/iainwallacebms" target="_blank" rel="noopener">@iainwallacebms</a>,
<a href="https://github.com/iamYannC" target="_blank" rel="noopener">@iamYannC</a>,
<a href="https://github.com/jnhyeon" target="_blank" rel="noopener">@jnhyeon</a>,
<a href="https://github.com/kolabearafk" target="_blank" rel="noopener">@kolabearafk</a>, and
<a href="https://github.com/thisisnic" target="_blank" rel="noopener">@thisisnic</a>.</p>
<div class="footnotes" role="doc-endnotes">
<hr>
<ol>
<li id="fn:1">
<p>By default, the active table is the first one supplied.
However, if the LLM is prompted to show a filtered/sorted view of a table, then that table becomes active (and the drawer will automatically open).&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
</ol>
</div>
]]></description>
      <enclosure url="https://opensource.posit.co/blog/2026-09-29_querychat-tables-handoff/featured.png" length="227292" type="image/png" />
    </item>
  </channel>
</rss>
