# Execute Workflow with Python - Inspect Output

**URL:** <https://forum.knime.com/t/execute-workflow-with-python-inspect-output/85243>\
**Category:** KNIME Analytics Platform\
**Tags:** python\
**Created:** [December 11, 2024, 2:41pm UTC](https://forum.knime.com/t/execute-workflow-with-python-inspect-output/85243 "2024-12-11T14:41:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [December 11, 2024, 8:14pm UTC](https://forum.knime.com/t/execute-workflow-with-python-inspect-output/85243/4 "2024-12-11T20:14:07Z")

</div>

@Brock_Tibert you would need a [Container Output (Table) – KNIME Community Hub](https://hub.knime.com/n/sma6KF7pwZETNOdi) 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.

> **[KNIME and Jupyter | KNIME](https://www.knime.com/blog/knime-and-jupyter)**
>
> Use Python code found in Jupyter notebooks from Python scripting nodes in KNIME.

Another approach could be to try and call the workflow from another one and [apply the input and output port](https://forum.knime.com/t/call-workflow-table-based-additional-table-input-ports-possible/83894/2) and then see if everything would work.

> **[Call Workflow - Main – mlauber71](https://hub.knime.com/mlauber71/spaces/Examples/KNIME%20-%20Call%20Workflow/Call%20Workflow%20-%20Main~-OjK8KaTPRdnoL_4/current-state)**
>
> Playing around with Call Workflow - main-workflow to "Call Workflow - Sub" with the new "KNIME Workflow Services" two ways to communicate data with the sub-wor…

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:

> [@Auto-ML. Output port has no data to display.](https://forum.knime.com/t/auto-ml-output-port-has-no-data-to-display/83943/4):
>
> One remark about AutoML. It seems that when you want to store the resulting workflow and load it again you will have to remove the input and output that has been stored with the workflow so as to allow the use of the new data. Also then with the Workflow Executor you will have to adjust the input and output sessions once. Now the Executor is ready to receive the new data (which obviously has to have the same structure as the training data). And will give the results:

---

_[View the full topic](https://forum.knime.com/t/execute-workflow-with-python-inspect-output/85243)._
