Test python nodes

Hi,

I have a practical question when developing new nodes in Python. Is there any way to do quick test from changes done in the code? I find quite tedious to do the change and recompile, uninstall the node, re-install it with the new changes (with the corresponding re-starts of Knime and do the test. Missing something here? Found this page but not clear to me:

https://www.knime.com/developer/documentation/test

Any help is appreciated.

Kind regards,
Fernando

Dear @fmgarcia85,

yes, you are making your life very hard :slight_smile:
Most of these steps are completely unnecessary. Please have a look at our Registering Python extensions during development section of our Python extension guide:

Best
Steffen

4 Likes

Thanks for refreshing my mind. You are completely right. Summer break delete that option from my mind. The question that I had then and now with this option is if I can edit two nodes in parallel. I remember doing test with two in parallel and didn’t work. I had to compile one and test the other in the way you suggest.

Thanks,
Fer

Hi Fernando @fmgarcia85,

you can add the extension ids of different repos in the config.yml (see step 5 of the tutorial) like this:

<first_extension_id>:
    src: <path/to/folder/of/first_extension>
    conda_env_path: <path/to/my_python_env>
    debug_mode: true
<second_extension_id>:
    src: <path/to/folder/of/second_extension>
    conda_env_path: <path/to/my_python_env>
    debug_mode: true

If the nodes are in the same repository then everything should work as described in my first answer. Does that help you already?

Best
Steffen

2 Likes

Hi @steffen_KNIME ,

Thanks you so much. That works perfectly and of course accelerate the testing. You saved me several hours.

Kind regards,
Fernando

1 Like

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