Hub
Pricing About
  • Software
  • Blog
  • Forum
  • Events
  • Documentation
  • About KNIME
  • KNIME Community Hub
  • carstenhaubold
  • Spaces
  • Public
  • Examples
  • include_python_library_in_workflow
WorkflowWorkflow

include_python_library_in_workflow

Carsten Haubold profile image

Last edit:

Drag & drop
Like
Download workflow
Copy short link
Workflow preview
This workflow shows how a custom Python library can be shared with a KNIME workflow, by including the sources. There is one Python file in this workflow's data area (the ./data folder inside the workflow on disk). In the Python Script node, we add the data area to the Python path and import the module stored there. One could do the same for any pure-Python library. (To make workflow sharing work across operating systems, if the library needs different installations on different systems one would have to build some logic here to import the right module per OS.) Further example workflows for this setup: https://hub.knime.com/paolotamag/spaces/Public/latest/Storing_Data_Files_inside_the_Workflow_Data_Area~5NLgbd3FSmvs55-T https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_python_import_module~BQEN92dR6W0cUM8R

Used extensions & nodes

Created with KNIME Analytics Platform version 4.6.0 Note: Not all extensions may be displayed.
  • Go to item
    KNIME Base nodes Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.6.0

    knime
  • Go to item
    KNIME Python Integration Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.6.0

    knime
  1. Go to item
  2. Go to item
  3. Go to item
  4. Go to item
Loading deployments
Loading ad hoc executions

Legal

By using or downloading the workflow, you agree to our terms and conditions.

Discussion
Discussions are currently not available, please try again later.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • E-Learning course
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • KNIME Open Source Story
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more on KNIME Business Hub
© 2023 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Credits