As the title suggests, I am looking for a way to embed Python code into NetLogo. So far I have found the NetLogo Python extension but from my understanding this extension only runs in the NetLogo prompt below (where you put the Observer/Turtle/etc. commands), so more like a built-in interpreter.
My question is whether there is a way, using this extension or otherwise, to embed Python code into the body of a NetLogo project, for example like this:
; This is an extract of some method/subroutine
print global-peopleNum
(py:run
"print('hello')"
)
set-patch-size 20
; other regular NetLogo code
so that it resembles compiled code as opposed to interpreted.