Execute Workflow with Python - Inspect Output

@Brock_Tibert you would need a Container Output (Table) – KNIME Community Hub in the knime workflow to use the syntax

output_table = wf.data_table_outputs[0] # output_table will be a pd.DataFrame

Otherwise the python module would not know what data to use.

Another approach could be to try and call the workflow from another one and apply the input and output port and then see if everything would work.

So you might have to tell your students to use these container outputs.

Workflows can also be stored and being re-used like in this AutoML example. You will have to toy around how to use the input saved with the original workflow. If you want to re-use it with other data you will have to configure it:

2 Likes