guysv / ilua

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

Allow redefining kernel help_links with ILUA_HELP_LINKS environment variable #23

Closed hroncok closed 2 years ago

hroncok commented 2 years ago

The ILUA_HELP_LINKS variable can be set in kernel.json file like this:

{
    "argv":
    [
        "python",
        "-m",
        "ilua.app",
        "-c",
        "{connection_file}",
        "-i",
        "rpmlua"
    ],
    "display_name": "RPM Lua",
    "language": "lua",
    "interrupt_mode": "message",
    "env": {
        "ILUA_HELP_LINKS": "[{\"text\": \"Lua in RPM\", \"url\": \"https://rpm-software-management.github.io/rpm/manual/lua.html\"}]"
    }
}

The nested json in json syntax is a bit hard to read, but OTOH json works well for serializing a list of dictionaries to an environment variable.

Fixes https://github.com/guysv/ilua/issues/15

guysv commented 2 years ago

great work 😅

hroncok commented 2 years ago

@guysv May I kindly ask you for a new release?

guysv commented 2 years ago

Oh man that maintenance was due. I hear you.