0 ×

Python Snippet

DeprecatedPtyhon Scripting Integration for KNIME version 4.1.1.v202012070647 by Max Planck Institute of Molecular Cell Biology and Genetics (MPI-CBG)

This node executes a snippet/script using Python. The script for Python can be selected from a snippet template repository. RGG ( R GUI Generator ) is used to configure the Python code using a graphical user interface in a way that the user does not need to know scripting in Python. URL of the template file can be set in KNIME->Preferences->KNIME->Python Scripting
The input data table from KNIME is converted to a dictionary and imported into Python as a variable named "kIn". The output data table is sent back to KNIME as "pyOut".

Script Editor:
Copy, cut or paste and Python code to the editor and/or select the columns from your data table. If a template is loaded used the GUI to adapt the script to the input data.

Templates:
Select a snippet template from the template repository (double-click or "Use this template") to use that script and see the GUI. The description explains what a snippet does. Then configure the GUI according to your input data.

Output Options:
Specify the output table to avoid that the node shows a warning.

IMPORTANT:
TThis node is using Python as backend, make sure that Python is installed locally or that the node can connect to the Python server is running somewhere accessible. Check the node configurations: KNIME->Preferences->KNIME->Python Scripting.
Further documentation can be found on the Scripting integration Wiki (Python server)

Options

Script Editor/Unlink from Template
Gives access to the Python script after adaptation by the GUI.
Script Editor/Edit Template
Gives access to the RGG script.
Templates/Refresh
Loads again the template file.
Templates/Gallery
Generate a temporary webpage shown in a browser which gives an overview about all available templates.
Templates/Description,Source
Description explains what this snippet does. Source displays the RGG script.
Templates/Use this template
Click to load the GUI (or double-click onto the template)
Output Options/Add/Remove output columns
Specify the column names and types of the output table. If this is not done then KNIME shows a warning, because the output table is not defined.

Input Ports

Icon
A data table

Output Ports

Icon
The data table that the snippet returns

Best Friends (Incoming)

Best Friends (Outgoing)

Installation

To use this node in KNIME, install KNIME Python Scripting extension from the following update site:

KNIME 4.3

A zipped version of the software site can be downloaded here.

You don't know what to do with this link? Read our NodePit Product and Node Installation Guide that explains you in detail how to install nodes to your KNIME Analytics Platform.

Wait a sec! You want to explore and install nodes even faster? We highly recommend our NodePit for KNIME extension for your KNIME Analytics Platform. Browse NodePit from within KNIME, install nodes with just one click and share your workflows with NodePit Space.

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.