From 8c74c98b8d43ccbed0b8cdd2d63d75ab1edef7bb Mon Sep 17 00:00:00 2001 From: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Date: Thu, 21 Aug 2025 12:44:38 -0400 Subject: [PATCH] docs: clarify adding custom packages to REPL component (#9450) clarify-custom-packages --- docs/docs/Components/components-processing.mdx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/docs/Components/components-processing.mdx b/docs/docs/Components/components-processing.mdx index 9855077fe..617a843f3 100644 --- a/docs/docs/Components/components-processing.mdx +++ b/docs/docs/Components/components-processing.mdx @@ -556,9 +556,14 @@ There are several ways you can address these inconsistencies: This component allows you to execute Python code with imported packages. +The **Python Interpreter** component can only import packages that are already installed in your Langflow environment. +If you encounter an `ImportError` when trying to use a package, you need to install it first. + +To install custom packages, see [Install custom dependencies](/install-custom-dependencies). + ### Use the Python Interpreter in a flow -1. To use this component in a flow,in the **Global Imports** field, add the packages you want to import as a comma-separated list, such as `math,pandas`. +1. To use this component in a flow, in the **Global Imports** field, add the packages you want to import as a comma-separated list, such as `math,pandas`. At least one import is required. 2. In the **Python Code** field, enter the Python code you want to execute. Use `print()` to see the output. 3. Optional: Enable **Tool Mode**, and then connect the **Python Interpreter** component to an **Agent** component as a tool.