> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pdia-data-integration/10.2-data-integration/pdi-transformation-steps-reference-overview/python-executor/options-python-executor/script-tab/source-panel.md).

# Source panel

The options on this tab vary depending on the script source.

* **Embed** (default): Select this option to embed the Python script specified in the **Manual Python script** field. The transformation will run using this Python script.
* **Link from file**: If you choose this option, you can link out to virtual file systems.

Enter the following information in the fields for the specified source.

| Option                                                 | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Manual Python script** (**Embed**)                   | Enter the Python script (`#` python script) you want to embed for this transformation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Location** (**Link from file**)                      | Indicates the file system or specific cluster where the python execution file you want to link from is located. For the supported file system types, see [VFS browser](/pdia-data-integration/10.2-data-integration/data-integration-perspective-in-the-pdi-client/virtual-file-system-browser/vfs-browser-connecting-to-virtual-file-systems.md).                                                                                                                                                                                                                                                                                                                                       |
| **File name** (**Link from file**)                     | <p>Specify the fully qualified URL of the local Python execution file you want to link from for this transformation.</p><p>Click <strong>Browse</strong> to navigate to the source file or folder in the <a href="/pages/WsdZkQ5CFxuDHEEN8RtM">VFS browser</a>. This field supports variable injections using <code>${}</code> notation.</p>                                                                                                                                                                                                                                                                                                                                             |
| **Use a Python virtual environment** (check box/field) | <p>Use this option if you have multiple versions of Python installed locally and you want to select a particular version for this step. Options include:- Select this check box if you want to specify a version of Python to run other than the default version. In the field, enter the version of Python you want to use to run this transformation. Click the <strong>Browse</strong> button to locate the Python execute file on your local server. This field supports variable injections using <code>${}</code> notation.</p><ul><li>Clear this check box if you have previously installed Python on your system and want to use this version as your default version.</li></ul> |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pentaho.com/pdia-data-integration/10.2-data-integration/pdi-transformation-steps-reference-overview/python-executor/options-python-executor/script-tab/source-panel.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
