Which embedded Python interpreter used in KNIME

Hi Team,

Could anyone let us know which embedded python interpreter is used in KNIME Java code to call the python functions directly from Java code?

Thanks
Ravikiran

Hi @ravikiran,
KNIME is not using an embedded interpreter, it uses a Java ProcessBuilder to call to native python. You can take a look at the implementation here: https://github.com/knime/knime-python/

We rely on a user installed python environment, see here how it is set up: https://docs.knime.com/2019-06/python_installation_guide/index.html

best,
Gabriel

1 Like

Hi Gabriel,

Thanks for the information.

BTW, I see the below plugins/jars. May I know what are these for (mainly the jep-2.4.1.jar)?
knime_4.0.1/plugins/org.knime.ext.jep_4.0.0.v201905311239/knime-jep.jar
knime_4.0.1/plugins/org.knime.ext.jep_4.0.0.v201905311239/lib/jep-2.4.1.jar

Thanks
Ravikiran

This project is using this libray
https://github.com/scijava/jep

That was wrong, it is using an internal library based on:
http://www.singularsys.com/jep/index.html

It is shipped with the target platform as the plugin org.knime.ext.jep

best,
Gabriel

1 Like