Running Python scripts by using developer utilities

The developer version supports the execution of Python scripts.

watsonx.data Developer edition

About this task

Perform the following steps to work with the Presto engine host:

Procedure

You can run Python scripts by using the python-run command.
Start an interactive Python session
Use the following command to start a session to run Python scripts:
bin/python-run
Run a Python script
Set the LH_SANDBOX_DIR mount by referring Sandbox directory
Use the following command to run python file from your LH_SANDBOX_DIR mount:
bin/python-run <PATH_SANDBOX_DIR_PYTHON_FILE>
Parameter value:
  • PATH_SANDBOX_DIR_PYTHON_FILE: Specify the Python query location available in your sandbox directory. For example: /home/jmouse/mysandbox/sample.py