I just found out that it is possible to run KNIME workflow from Jupyter. Even tried this (out of curiosity, actually), however I am wonderingnow on what is the status of the KNIME module for python (like, is it a serious development or just a gimmick).
I had two issues with it:
I could not find any documentation for using the Python module (to see what are names of data exchange variables of the workflow object)
from what I see by calling dir(wf) in Jupyter, it seems that only table-type data exchange is possible from Jupyter, no variables. Is this right?
It is a serious function. If you want to see how you could use this feature I have compiled a small example how to use Jupyter notebook (ressources) in KNIME and also how to include existing .PY files in KNIME.
And you can create and use flow variables in Python:
Also if you have problems bringing data from and to Python you could use Parquet or ORC files.
So what I can’t do is passing variable to the wf object.
Among the feature requests tracked on the github repository for knimepy (see https://github.com/knime/knimepy/issues) is a proposal to support the setting of flow variables. If this is what you mean, it would help if you could add some encouragement to the github issue, requesting that this indeed gets implemented.
I am wonderingnow on what is the status of the KNIME module for python (like, is it a serious development or just a gimmick)
I am the primary author of the knimepy package. Sometimes it helps to read things, imagining how they might be received by someone else, say the author of a tool. If you are serious about using this tool, I would appreciate your help by requesting features (ref: issues on github) that would genuinely help you in your work. Finding other ways to contribute back is also very much welcomed.
Hey Davin, thank you for the answer. My apologies if my question touched somebody’s feelings. Just I understand that Jupyter/Python side integration was created 1,5 years ago with Knime 3.7, and it does not seem too mature 19 months later, considering that there is no documentation (or I just am really bad at googling) and from forums it seems that feature is hardly used by anybody. Really, only way I could find out that there is no property for flow variables container input, was just listing all the wf object’s parameters from python side.
I read about Jupyter integration just today in KNIME newsletter email, so I immediately went and checked how it works. Do not have a real use case for now, though. Will check the features requesting part in github.