Is there any way i can make a NetLogo extension using Python?

Hi everyone, i’m new in this forum and I didn’t find anyone asking this question so I decided to write this post (sorry for my bad english, it’s not my native language). I’m doing a research for a project of mine , and for this project I needed to build an extension that adds reinforcement learning algorithms (yes, i know that there is an already existent extension for Q-Learning), so I read the documentation for writing an netlogo extension and I saw nothing saying that it could be done with python. Java already has some reinforcement learning libraries, the more famous one being BURLAP, but there’s almost no tutorials and videos on the internet teaching how to use it, so I hoped to find a way that I can make a Netlogo extension using Python, seeing that it has many libraries for reinforcement learning in general

Hi @MRissardi05,

Unfortunately, NetLogo extensions must be written in Java or Scala, since those are the languages that are used to develop the app itself. However, NetLogo does provide a Python extension, which you can use to run Python code from your model. So as long as you don’t need any specific inter-operability with NetLogo’s internals, that should work for you. Let us know if you have any trouble using the Python extension, or if it doesn’t satisfy your needs!

Isaac B.

1 Like