Embed Python

Kickstart Kotlin : Jython with Spring Boot

Submitted by Dickens A S on Fri, 03/20/2020 - 07:02

Easily create Kotlin based Jython project from these multiplatform boilerplate Gradle DSL

GitHub https://github.com/dickensas/kotlin-gradle-templates/tree/master/sboot-jython

Run gradle command

  gradle assemble

Run gradle command

  gradle run

Browse http://localhost:8080/index.html

On the screen you will see response from Jython via AJAX

Call Python from Kotlin or embed Python code inside Kotlin

Submitted by Dickens A S on Fri, 11/22/2019 - 11:47

Embedded Python inside Kotlin

GitHub: https://github.com/dickensas/kotlin-gradle-templates/tree/master/embed-python

Compile and Execute from MSYS2 or Cygwin with python development C header files  

Demo output

Embed Python

Python code which is running inside Kotlin