Follow these steps to import a Python script or Jupyter Notebook with the import function:
- Select the Alteryx menu.
- Select Import Script.
- Select Choose File.
- Navigate to a .py or .ipynb file and select Import.
from https://help.alteryx.com/20231/designer/python-tool