Skip to content

Commit

Permalink
Merge pull request #23 from hroncok/help_links_env
Browse files Browse the repository at this point in the history
Allow redefining kernel help_links with ILUA_HELP_LINKS environment variable
  • Loading branch information
guysv committed Jan 27, 2022
2 parents 49a486d + 67bbedb commit 05eb181
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ilua/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
stuff
"""

import json
import os
import re

Expand Down Expand Up @@ -57,6 +58,10 @@ class ILuaKernel(KernelBase):
"url": "https://www.lua.org/manual/"}
]

# Allow kernel definitions to override the help links
if "ILUA_HELP_LINKS" in os.environ:
help_links = json.loads(os.environ["ILUA_HELP_LINKS"])

def __init__(self, *args, **kwargs):
super(ILuaKernel, self).__init__(*args, **kwargs)
self.inspector = Inspector()
Expand Down

0 comments on commit 05eb181

Please sign in to comment.