jupyter / kernel_gateway_demos

Demos associated with the kernel gateway incubator project
BSD 3-Clause "New" or "Revised" License
152 stars 76 forks source link

Pass env vars in "KG_WHITELIST" to kernel endpoint #45

Closed ricedavida closed 7 years ago

ricedavida commented 7 years ago

This feature is designed to be paired with Jupyter Kernel Gateways env_whitelist option. "--JupyterWebsocketPersonality.env_whitelist= Default: [] Environment variables allowed to be set when a client requests a new kernel"

To use this feature, simply add the env var names into "KG_WHITELIST" using a colon delimited list.

example: export KG_WHITELIST=SPARK_OPTS:SPARK_USER

parente commented 7 years ago

/cc @jtyberg

ricedavida commented 7 years ago

@jtyberg I updated the Pull Request to align with your suggestions. It is now KG_ENV_WHITELIST and has a comma delimited list.