Hub
Pricing About
NodeNode / Manipulator

Python Snippet 2:2

Community NodesPython Scripting
Drag & drop
Like

The node executes Python code. There are two ways to configure which code will be executed:

  1. Select (Templates Tab; double-click or "Use this template") and configure a Python template from the template repository.
  2. Write you own Python code (Script Editor Tab)

The Python installation which is used for execution can be set in the Preferences under KNIME > Community Scripting > Python Scripting . The settings allow to switch between a Python2 and Python3 installation. They further provide to set template resources (URLs or file locations) for either plot and snippet respectively.

Further, the node can be executed in an 'Open External' mode (checkbox at the Script Editor Tab) which then would push the KNIME data to Python for troubleshooting or prototyping (either as a Jupyter notebook or via command line).

For detailed information check out the Wiki Page

Node details

Input ports
  1. Type: Table
    Data table (kIn1)
    A data table
    Provided as pandas data frame named kIn1 in Python.
  2. Type: Table
    Data table (kIn2)
    A data table
    Provided as pandas data frame named kIn2 in Python.
Output ports
  1. Type: Table
    Data table (pyOut1) returned from Python
    he data table that the Python snippet returns.
    Expected as pandas data frame named pyOut1 in Python
  2. Type: Table
    Data table (pyOut2) returned from Python
    he data table that the Python snippet returns.
    Expected as pandas data frame named pyOut2 in Python

Extension

The Python Snippet 2:2 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