docs: clarify adding custom packages to REPL component (#9450)

clarify-custom-packages
This commit is contained in:
Mendon Kissling 2025-08-21 12:44:38 -04:00 • committed by GitHub
commit 8c74c98b8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -556,6 +556,11 @@ There are several ways you can address these inconsistencies:
This component allows you to execute Python code with imported packages. 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 ### 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`.