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.
on 08-06-2019 10:16 AM - edited 2 weeks ago
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.
Environment
Diagnosis
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
Cause
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.
Solution
Additional Resources
Very helpful. Thanks @DaveF !
Hi,
For the browse tool to display something on channel # 1 you have to put the following code.
if it's a dataframe
Alteryx.write (data, 1)
This will have output 1
[]
Hey @geraldo - thanks for catching that! I fixed the screenshot. This article is actually showing an uncommon environmental setup when the data won't show up in #1 because Jupyter is looking for python in the wrong place, and how to fix it.