textual-plotext
A Textual widget wrapper for the Plotext plotting library
What it is and what it does
textual-plotext bridges Plotext, a terminal plotting library, into Textual applications by providing a `PlotextPlot` widget. Instead of calling Plotext functions directly, you access them through the widget's `plt` property, which handles rendering within the Textual event loop and automatically manages plot display without needing explicit `show()` calls.
The widget supports most Plotext plotting functions (scatter, line, bar, etc.) and utility functions like `sin()` and `colorize()`, but excludes file I/O, interactive REPL features, and GIF/video playback. It includes custom themes prefixed with `textual-` that use RGB colors for consistent appearance across terminals, and automatically switches between dark and light mode themes when the Textual app changes modes.
Use it for:
- Build terminal dashboards that display live data plots alongside other Textual widgets.
- Create monitoring tools that render real-time metrics as terminal-based charts.
- Embed scatter, line, or bar plots in CLI applications without leaving the terminal UI framework.
- Visualize mathematical functions or test signals directly within a Textual TUI.
- Develop data exploration tools that combine Textual forms and navigation with Plotext visualizations.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Wraps the Plotext plotting library as a Textual widget, allowing terminal-based plots to be embedded and rendered within Textual applications.
Yes, if you are already using Textual and need terminal-based plotting. The package has low install friction, no security vulnerabilities, and a permissive license. However, note that it is dormant (622 days since last release); adopt it for stable use cases but verify compatibility with your Plotext version and monitor for any upstream breaking changes.
Install
textual-plotext on PyPI
pip
pip install textual-plotextuv
uv add textual-plotextpoetry
poetry add textual-plotextInstalling textual-plotext
Before you install
Low install friction with only two runtime dependencies (plotext and textual). The package is dormant but has a stable last commit and no known vulnerabilities, making it safe to adopt for existing Textual projects.
License in practice
MIT license is permissive and imposes no significant restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
from textual.app import App, ComposeResult
from textual_plotext import PlotextPlot
class PlotApp(App):
def compose(self) -> ComposeResult:
yield PlotextPlot()
def on_mount(self) -> None:
plt = self.query_one(PlotextPlot).plt
plt.scatter(plt.sin())
plt.title("Plot")
Requires Textual and Plotext as runtime dependencies; Python 3.8.1 or later.
Verify before relying
- Whether the dormant status (622 days since last release) indicates ongoing maintenance or abandonment risk.
- Performance characteristics when rendering large datasets or frequent plot updates in Textual apps.
- Compatibility with recent Plotext versions and any breaking changes since the last release.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0.0,>=3.8.1) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — plotext, textual |
| Maintenance | dormant — 622 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 259,749/month — #8,406 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: textual_plotext-1.0.1-py3-none-any.whl
Tags
More Visualization packages
matplotlib creates static, animated, and…
permissive · top 1,000 on PyPI
contourpyContourPy calculates contours of 2D…
permissive · top 1,000 on PyPI
plotlyPlotly is an interactive, browser-based…
permissive · top 1,000 on PyPI
graphvizGenerates DOT language source code for graph…
permissive · top 1,000 on PyPI
streamlitStreamlit transforms Python scripts into…
permissive · top 1,000 on PyPI
leatherLeather is a lightweight Python charting…
permissive · top 1,000 on PyPI
plotextRenders plots directly in the terminal using…
permissive · top 5,000 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
textual-devtextual-dev provides a command-line tool for…
permissive · top 15,000 on PyPI
termplotlibtermplotlib renders line plots, histograms, and…
copyleft · top 15,000 on PyPI
textual-serveRuns any Textual terminal application in a web…
permissive · top 5,000 on PyPI
textual-autocompleteAdds fuzzy-matching autocomplete dropdowns to…
permissive · top 15,000 on PyPI
plotnineplotnine implements a grammar of graphics for…
permissive · top 5,000 on PyPI
plotillePlotille renders plots, scatter plots,…
permissive · top 15,000 on PyPI
timpleTimple extends Matplotlib with locators and…
permissive · top 15,000 on PyPI
textual-imageRenders images directly in terminal emulators…
copyleft · top 15,000 on PyPI