This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Python Tool Doesn't Show Any Results or Errors on Run
When running the Python tool in Alteryx, the output is blank, and no results or errors are shown.
Python may have been previously installed by another app (e.g., Anaconda)
Product - Alteryx Designer
To ensure the issue is with the Python tool in Alteryx, create a simple 2-tool workflow with test data and code as below. Click Run in the Python tool and verify the tool returns no output and no errors.
Step 1 - Run the workflow with a Text Input Tool and Python code as below
Step 2 - Verify that the Alteryx engine reports no errors
Step 3 - Verify that the Browse tool shows no data available
The IPython kernel being called by the Jupyter Notebook may be referencing a previously installed or non-existent Python binary, rather than the Python binary installed with Alteryx.
Open an Administrator Command Prompt and navigate to:
Admin Version of Alteryx: C:\Program Files\Alteryx\bin\Miniconda3\PythonTool_venv\Scripts
Non-Admin Version of Alteryx: %LocalAppData%\Alteryx\bin\Miniconda3\PythonTool_venv\Scripts
Enter the command: jupyter kernelspec list
Navigate to the directory returned in step (2) in a File Explorer. If you have multiple directories, repeat steps 3-4 for each directory.
Open kernel.json in a Text Editor and verify that the first item in the argv list references the python.exe in the same directory as the directory from (1) or simply "python" in cases where the directory from (1) is included in your PATH Environmental Variable. To test if you have a valid argument, you can simply try entering the argument in a command prompt and it should open a Python shell.