jupyter / nb2kg

Other
73 stars 31 forks source link

Convey working directory of notebook #21

Closed kevin-bates closed 5 years ago

kevin-bates commented 5 years ago

When communicating with a Gateway that launches container-based kernels, it is desirable to mirror the notebook's working directory in cases where the container is sharing the notebook directory's volume. This is a common configuration in Jupyter Hub installations running on Kubernetes where the Notebook/Lab instance enables the mounting of the user's home directory and those same mounts are used via the Enterprise Gateway kernel images. This change adds KERNEL_WORKING_DIR to the json body of the kernel creation request which enables the receiving Gateway to potentially act on that value when launching kernel images.