openvino_notebooks / .docker /jupyter_kernel_gateway_config.py
malvika2003's picture
Upload folder using huggingface_hub
db5855f verified
raw
history blame
460 Bytes
import os
c.KernelGatewayApp.ip = "*"
c.KernelGatewayApp.port = 8080
c.KernelGatewayApp.env_process_whitelist = [
"LD_LIBRARY_PATH",
"LD_PRELOAD",
"NSS_WRAPPER_PASSWD",
"NSS_WRAPPER_GROUP",
]
image_config_file = "/opt/app-root/src/.jupyter/jupyter_kernel_gateway_config.py"
if os.path.exists(image_config_file):
with open(image_config_file) as fp:
exec(compile(fp.read(), image_config_file, "exec"), globals())