This knowledge base shows how to set up VS Code to run Python example files for the Arena Python Package.
- Ensure that you have VS Code installed.
- Open VS Code, and install the Python extension for VS Code.

- Download the Arena Python Package from https://thinklucid.com/downloads-hub/

- Unzip the zip file to the folder of your choice.
- Ensure that you have Python installed. The Python version requirements are shown on the Downloads page.
- Open the Windows command prompt, and navigate to the directory containing the package
Example: “C:\projects\arena_api\arena_api-<>.<>.<>-py3-none-any\examples” - Set up a virtual environment inside this examples folder, and activate it. Type:
python -m venv ve_win_dev_py64 cd ve_win_dev_py64/scripts activate
- Navigate up to the example folder, and type:
pip install-r requirements_win.txt
This installs the required packages for the virtual environment to run.

- In the command prompt, go up one directory to the root folder where the *.whl file is located. To install the Arena Python Package, type:
pip install arena_api-<>.<>.<>-py3-none-any.whl
- To open VS Code, ensure that you are in the root folder in the command prompt and type:
code .
- In VS Code, open an example such as py_acquisition.py.
- Run the Python file as shown below.

- The Python code runs inside a PowerShell terminal inside of VS Code. Ob serve that the green text “(ve_win_dev_py64)” before the path shows the virtual environment name.

Troubleshooting the “Cannot be loading because running scripts is disabled” error.

- If you get this error, run
“Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser“
in a powershell window to allow .ps1 script execution.
- You can use any PowerShell window (inside VS Code, or one on your desktop)
- To check if the setting was changed, run
Get-ExecutionPolicy -List
and check that the policy for CurrentUser is RemoteSigned.

- If CurrentUser has the setting above, try running the Python script again
Once you are able to access the Python API, see the Python documentation that shipped with the Arena SDK, or the online Python documentation (registration required).