Is There a Way to Execute Knime Workflows with Python?

I am trying to execute Knime workflows in Python scripts. I know it is possible via REST call as indicated here https://www.knime.com/blog/blending-knime-and-python.

Is there a way to execute the workflow in a more ‘local’ way, i.e. execute the file containing the workflows?

Thank you!
-H

Hi!

I believe it shouldn’t be a problem. From Python you should find a way to send command to MS DOS windows or Windows PowerShell. The command needs to start Knime workflow in batch mode.

Br,
Ivan

1 Like

Hi @howellyu,
take a look at https://www.knime.com/faq#q12 on how to start a KNIME workflow in batch mode, you can use these commands via Python system like @ipazin suggested: https://stackoverflow.com/questions/89228/calling-an-external-command-in-python
best,
Gabriel

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.