Problem with python script node

recently I need to apply some code from my jupyter notebook in Knime Python script node. In Jupyter and Pycharm it works fine, but in Knime it returns error.

In both cases I am using same Conda environment. I also tried to use Jupyter notebook from Knime, but it returns same error.
What can be reason to error and how to avoid it?

And this is the code by the way

What exactly is out? Is it defined in your code?
Maybe it is easier to debug when you share your whole code

1 Like

the question is not about just this case, I was mostly curious in which cases code in the same environment can run on Jupyter or Pycharm, but fail in Knime. It will be hard to debug it here, I was searching a hint.

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