The easiest solution โ Chaquopy
https://chaquo.com/chaquopy/
Works for me
Answer from Mikhail Sharin on Stack OverflowThe easiest solution โ Chaquopy
https://chaquo.com/chaquopy/
Works for me
I think there are two normal solutions.
Using Polyglot API of GraalVM (https://www.graalvm.org/sdk/javadoc/org/graalvm/polyglot/package-summary.html).
Creating a C interface implemented with Python (https://www.linuxjournal.com/article/8497) and calling it with JNI (https://docs.oracle.com/javase/8/docs/technotes/guides/jni/). However, this option needs you to manage your objects and memory very carefully (dispose all C pointers properly etc.)
Need Help: Integrating Python with Kotlin Multiplatform
How to Execute a python code from an Android App (developed in Kotlin) - Android - Kotlin Discussions
Run python script in intellij using kotlin - Stack Overflow
Running Python script from Java/Kotlin application on Heroku - Stack Overflow
Videos
Iโm currently working on a Kotlin Multiplatform project and Iโm exploring ways to integrate Python code into it. I came across Chaquopy (https://chaquo.com/chaquopy/), which is an SDK that allows Python code to run on Android. However, my project needs support across multiple platforms, not just Android.
does anyone have Any recommendations for tools or libraries that support this?