Nodes/ComfyUI-Data-Analysis/Pandas Show Text
ComfyUI Node

Pandas Show Text

The 'just let me see it' text viewer every workflow ends with

By HowToSD·Created 2 years ago·Updated about a year ago· 23
Pandas Show Text
    • STRING
    text

    Every ComfyUI user eventually installs a "show text" node, because the default canvas is terrible at showing you a string mid-pipeline. Pandas Show Text is this pack's version of that workhorse. Feed it any string and it displays the text right on the node, no browser console spelunking required. In the ComfyUI-Data-Analysis world it's usually the last node in a chain: the thing you point at a Pandas To String output, a JSON blob, or the result of a datetime conversion so you can actually read what your data pipeline produced.

    How it works

    It's a direct descendant of pythongosssss's famous show_text node - the repo's source file says so in its header comment, and the mechanism is identical. The node runs, serializes whatever string it received, and writes that value back into its own widget by locating itself in the workflow JSON passed along as extra_pnginfo. Because the value lands in the widget, it survives: save the workflow (or share a PNG of it) and the displayed text is preserved in the file. That's genuinely handy for provenance - your "hits per year" answer travels with the workflow that produced it.

    One subtlety worth knowing: the text input is declared with forceInput: True. That means you can't just type into a field - the node expects a wire feeding it a string. It's a display node, not a text editor. Give it something connected.

    Inputs and outputs

    • text (STRING) - the string to show. Connect anything string-typed: Pandas To String, Pandas Show Series, a CSV row, a date you just formatted with Pandas Strftime.

    Output is a STRING (as a list) - the same text, if you want to feed it onward. Realistically it terminates a branch.

    Typical wiring that makes sense of it all: Pandas Load CSVPandas SummaryPandas To StringPandas Show Text. Run, resize the node, and read your summary statistics in place.

    Installing this pack

    This node ships in ComfyUI-Data-Analysis by Hide Inada (HowToSD). It's a CPU-only pack - no GPU, no model downloads - but it does need pandas and the rest of its stack, which a default ComfyUI won't have (pandas, matplotlib, seaborn, scipy, scikit-learn, openpyxl, lxml).

    ComfyUI Manager: Manager → Custom Node Manager → search "Data analysis" → install ComfyUI-Data-Analysis → restart ComfyUI, refresh the browser. Manager installs the Python dependencies automatically.

    Git clone:

    cd ComfyUI/custom_nodes
    git clone https://github.com/HowToSD/ComfyUI-Data-Analysis.git
    mv ComfyUI-Data-Analysis data-analysis   # example workflows depend on this folder name
    pip install -r data-analysis/requirements.txt
    

    Restart ComfyUI afterward.

    Troubleshooting

    • Node shows nothing after running. The widget is only populated when the node executes, so a disconnected or bypassed node stays blank. Confirm the string wire is attached and re-queue.
    • The input won't let you type a value. That's the forceInput behavior - it wants a connection, not a typed string. Build the text upstream instead.
    • Wrong or stale text. The widget holds the last value written; if upstream changed but you didn't re-run, it still shows the old run's output. Queue again.
    CategoryData Analysis

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING