Textual v4.0.0: The Streaming Release

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Textual v4.0.0 lets Python TUI apps render Markdown live as LLM APIs stream it, useful for anyone building terminal chat tools.

Read this as

Textual is a Python framework for building interactive apps that run in the terminal, using keyboard-driven text instead of graphics. Version 4.0.0 adds streaming Markdown, meaning formatted text can appear on screen as it is generated piece by piece. This matters because chatbots such as ChatGPT send their answers as a continuous stream of Markdown. Will McGugan, who created the framework, demonstrates it with a script that streams model answers to the console.

Textualize no longer operates as a commercial company, but creator Will McGugan continues releasing the framework as free open source software. Version 4.0.0 targets the growing market of developers wiring LLM APIs into command-line tools, since most model APIs emit Markdown streams. For teams that chose paid alternatives, the project remains maintained at no cost, though no business support or revenue is mentioned.

Textual v4.0.0 adds streaming Markdown support (PR #5950), rendering partial Markdown incrementally as LLM APIs stream tokens. Will McGugan built the demo by adapting a snapshot test from Textual's test suite, combining it with Simon Willison's async llm Python library for async model calls. The resulting script runs via 'uv run' against gpt-4.1-mini and streams headers and tables to the console. No benchmark or performance figures are given.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Textual Textualize Will McGugan Simon Willison o3 Python

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.