Skip to content

Python Scripting

Runner supports KNIME's Python scripting nodes. The recommended approach is to use the new Python nodes (org.knime.features.python3.scripting.feature.group), which include a bundled Python environment and require no additional setup beyond installing the extension. The legacy "Python (legacy)" nodes require a manual Python installation and are not officially supported.

Using the bundled Python environment

  1. Open the environment and use Extension Search to add KNIME Python Integration. Confirm that the feature org.knime.features.python3.scripting.feature.group is listed under Features.

  2. Under Preference Entries, add:

    KeyValue
    /instance/org.knime.python3.scripting.nodes/pythonEnvironmentTypebundled
  3. Save the environment and run your schedule.

Using a custom Python installation

If the bundled environment does not meet your needs — specific Python version, dependencies not available in the bundled distribution — you can install Python manually via a Dockerfile instruction.

  1. Open the environment and use Extension Search to add KNIME Python Integration as above.

  2. Under Additional Dockerfile Instructions, add a snippet to install Python and your dependencies. The example below installs Python 3.9 with py4j, pyarrow, numpy, and pandas — adapt the version and package list to your requirements:

    dockerfile
    ENV DEBIAN_FRONTEND=noninteractive
    RUN apt update && apt install -y software-properties-common
    RUN add-apt-repository ppa:deadsnakes/ppa
    RUN apt update && apt install -y python3.9 python3.9-distutils python3.9-venv
    RUN python3.9 -m ensurepip
    RUN pip3.9 install py4j pyarrow numpy pandas
  3. Under Preference Entries, add:

    KeyValue
    /instance/org.knime.python3.scripting.nodes/pythonEnvironmentTypemanual
    /instance/org.knime.python3.scripting.nodes/python3Pathpython3.9

    Make sure python3Path matches the Python binary name from your Dockerfile snippet.

  4. Save the environment and run your schedule.

See Environments for the full list of available settings.