Icon

03_​Input_​Output_​Objects

Input Output Objects with Python Script

This workflow demonstrates how to use the Python Script node to load an existing pickle object in the workflow data area and transfer it for further use.

Configure Python Script node for passing objectsThe Python Script node can be provided with input table or object and it can output a table, object or an image basedon the user's selection of portsStep 1: Drag the Python Script node to KNIME Analytics PlatformStep 2: Click on the three dots on the node to add either an 'Output object (pickled)' or an 'Input object (pickled)' portStep 3: Write your script in the "Script" tab and press "execute script" to check if the execution was successful. Adopting Python Bundled Packages : Download and open this workflow to auto-install requirements and execute the Python scripts. This workflow uses anode from KNIME Python Integration, which installs Python and a number of pre-defined packages on your system.Supported on KNIME Analytics Platform 4.7 or higher. Load Pickle ObjectLoad Pickle ObjectImport Pickle Objects Python Script Python Script Python Script Configure Python Script node for passing objectsThe Python Script node can be provided with input table or object and it can output a table, object or an image basedon the user's selection of portsStep 1: Drag the Python Script node to KNIME Analytics PlatformStep 2: Click on the three dots on the node to add either an 'Output object (pickled)' or an 'Input object (pickled)' portStep 3: Write your script in the "Script" tab and press "execute script" to check if the execution was successful. Adopting Python Bundled Packages : Download and open this workflow to auto-install requirements and execute the Python scripts. This workflow uses anode from KNIME Python Integration, which installs Python and a number of pre-defined packages on your system.Supported on KNIME Analytics Platform 4.7 or higher. Load Pickle ObjectLoad Pickle ObjectImport Pickle Objects Python Script Python Script Python Script

Nodes

  • Python Script3 ×

Extensions

  • No modules found

Links