Writing Python Code in Corticon - Forum - Corticon - Progress Community

Writing Python Code in Corticon

 Forum

Writing Python Code in Corticon

This question is not answered

Hi Guys,

Is there any way to write Python code same as we can write Java code in Corticon? I have Neutral Network implemented in Python so I want to use that in Corticon. Please let me know how can we do this? is there any library present which helps in doing this? or can we do this by implement classes?

Thanks in advance.

All Replies
  • Are you trying to call Corticon from Python or the other way around (call Python from Corticon)?

    If calling Corticon from Python you can certainly call it as a REST service. If you want a tighter integration you can explore Jython. It allows you to call Java code from Python. It may provide what you're looking for but it's not something we've tried ourselves.

    Jim



  • I am looking to call Python code from Corticon rulesheet (extended operators) or from corticon service callout functionality.

    I know that we can call java code from Corticon rulesheet (extended operators) or from corticon service callout functionality but I want the same thing for python code. if possible.

    Thanks in advance.

  • Sorry we can't provide much guidance on this. It's not something we've ever tried. Here's an article which explores 3 ways to call python from java, it may provide a starting point

    bytes.com/.../949995-three-ways-run-python-programs-java