Syncing files between local directory and remote kernel

Hi,
I am wondering if there is a solution to automatically sync the content of local client (say jupyter lab)'s current directory and a remote kernel.
The need is to be able to refer a jupyter lab’s local file from a remote kernel that was created by Enterprise Gateway.

Thanks,
Debashis

Hi @debashis1982,

This is typically accomplished via mounted volumes/file systems, depending on your configuration. If you are, for example, deploying remote kernels as pods in Kubernetes, you can add mount instructions into the kernel’s launch template. This, coupled with the env KERNEL_WORKING_DIR and mirrorWorkingDirs helm variable, allow for the kernel’s cwd to be adjusted to help facilitate access to “local” files from the kernel.

Please open an issue in the Enterprise Gateway repo should you run into issues and we can help get you moving forward.

Thank you for your response @kevin-bates We have successfully tested mounting volumes. But we wanted to know if there are other solutions for cases where volume mounts are not possible due to infrastructure or policy related limitations.

Thanks,
Debashis