From c728cde9cbebd0087746da5245b1038418c3fdff Mon Sep 17 00:00:00 2001 From: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Date: Wed, 7 Jan 2026 16:02:45 -0500 Subject: [PATCH] docs: pass variable input to python interpreter component (#11217) * pass-input-to-repl * Apply suggestions from code review Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> --------- Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> --- docs/docs/Components/python-interpreter.mdx | 153 ++++++++++++++++++++ 1 file changed, 153 insertions(+) diff --git a/docs/docs/Components/python-interpreter.mdx b/docs/docs/Components/python-interpreter.mdx index 3cfb5dded0..48d042960a 100644 --- a/docs/docs/Components/python-interpreter.mdx +++ b/docs/docs/Components/python-interpreter.mdx @@ -77,6 +77,159 @@ Output: If you don't include the package imports in the chat, the agent can still create the table using `pd.DataFrame`, because the `pandas` package is imported globally by the **Python Interpreter** component in the **Global Imports** field. +## Pass inputs to the Python Interpreter + +To pass inputs to the **Python Interpreter** component, you need to customize the component's code to add input fields. +After the input field is added to the component code, the port becomes available for connections. +For example, to connect a [**Text** component](/text-input-and-output) and pass a URL value to the **Python Interpreter** component, do the following: + +1. Add a **Python Interpreter** component to your flow. +2. To modify the **Python Interpreter** component's code, click