guysv / ilua

Portable Lua kernel for Jupyter
GNU General Public License v2.0
115 stars 11 forks source link

How to pip install ilua in specify lua version? #21

Closed shining-byte closed 2 years ago

shining-byte commented 2 years ago

pip install ilua default use lua 5.1,I want lua 5.2 version,How to get this. Thanks.

shining-byte commented 2 years ago

I find if system haven't install lua,will default install 5.1 versioon, otherwise will follow system version.

guysv commented 2 years ago

FYI you can pass ilua -i <lua interpreter> to use a custom interpreter

shining-byte commented 2 years ago

FYI you can pass ilua -i <lua interpreter> to use a custom interpreter I know,but I use ilua in JuypterLab.

xerron commented 11 months ago

change ~/.local/share/jupyter/kernels/lua/kernel.json to:

example luajit, 5.1 , 5.2 ... etc

{
  "argv": [
    "python",
    "-m",
    "ilua.app",
    "-i",
    "luajit",
    "-c",
    "{connection_file}"
  ],
  "display_name": "Lua",
  "language": "lua",
  "interrupt_mode": "message"
}