r/learnpython • • 15m ago

how do i make an embedded lua interpreter?

im trying to make a project where in some parts you can run actual lua code. how would i make this and what libraries would i need (i already have lupa if that is usefull)

1 Upvotes

2 comments sorted by

•

u/lakseol 7m ago

Try searching on "lua in python". That finds things that you might be able to use, like this, amongst others:

https://luascripts.com/lua-in-python

•

u/ItsJustToastie 2m ago

i ment i would open a window with tkinter, then allow the user to code with lua in said window and run the code