How to reload python node

From the doc for python node: Create a New Python based KNIME Extension
I have to restart the KNIME everytime I make change to the python file. Is there a faster way to just reload the node I am developing on?

1 Like

Hi wenhuizhao,

please have a look at this chapter of the documentation: Create a New Python based KNIME Extension

In short:
If you have in the config.yml set debug_mode: true, then…

  • Changes in the configure and execute methods are loaded without restart.
  • Changes to already existing parameters are loaded without restart.
  • Changes outside of that require a restart. For example, changing the node description, the node’s input and output tables, a new node, and other changes in the file like top level imports.

Additionally, keep in mind that the changes which need a restart can require that you drag&drop the node again into the workflow.

Does this answer the question? Don’t hesitate to ask further questions!

Best regards
Steffen

4 Likes

Thanks. Got it working!

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.