Skip to main content

Python (AX)

Synopsis

This operator attempts to provide the same functionality as the Python tool in Alteryx.

Description

This operator attempts to provide the same functionality as the Python tool in Alteryx. The only thing this custom operator does vs the standard Execute Python operator is that it decodes the UTF-8 characters that often appear in Alteryx workflow XMLs.


**This code is the proprietary and confidential information of Altair Engineering Inc. All use of this code is subject to the terms of Altair's non-disclosure agreement and partnership agreement. The code is strictly prohibited from distribution without prior written permission by Altair. **


Input

input 1

An input port

Output

result 1

A result port

Parameters

Script

The Python script as text.

Data management

The data management optimization to use. Determines, how the data is represented internally. The auto option (default) only compresses data if it is very sparse and otherwise optimizes for speed. Choose speed-optimized if you have enough memory and want to speed up your process. Choose memory-optimized if you have a lot of sparse data that has trouble fitting into memory with auto mode.

Notebook cell tag filter

Only for IPython Notebook (*.ipynb) files. Interpret the cells only tagged with this label. You can also provide a regular expression here. Regular expression 'r' will be extended to '^(r)$'. Interpret all cells, if no tag specified here.

Use default python

Use the default environment, as specified in the Preferences.