Hub
Pricing About
NodeNode / Source

Python Snippet (deprecated)

Community NodesPython Scripting

This node has been deprecated and its use is not recommended. Please search for updated nodes instead.

Like

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)

Node details

Input ports
  1. Type: Table
    Data table
    A data table
Output ports
  1. Type: Table
    Data table returned from the snippet
    The data table that the snippet returns

Extension

The Python Snippet (deprecated) node is part of this extension:

  1. Go to item

Related workflows & nodes

  1. Go to item
  2. Go to item
  3. Go to item

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits