Title: Help needed: Disable or move Jupyter notebook checkpoints in JupyterHub for Kubernetes

magesh krishna12:22

Title: Help needed: Disable or move Jupyter notebook checkpoints in JupyterHub for Kubernetes

Message:

Hi json

I’m running Jupyter notebooks inside JupyterHub for k8s and facing an issue with .ipynb_checkpoints.

What I want:

Either disable checkpoints entirely, or

Move all checkpoint files to a single central folder (ideally the root directory /).

What I tried:

c.FileCheckpoints.checkpoint_dir = ‘_ipynb_checkpoints’

Result: Checkpoints are still created in the parent directory as intended but i want to create in the root if i gave root path again it was creating hiddenly.

c.FileContentsManager.checkpoints_kwargs = {‘root_dir’: ‘/’}

Result: Jupyter still creates hidden folders (.ipynb_checkpoints) inside notebook directories.

Problem:

I cannot completely disable checkpoint creation from the config.

Goal:

Either disable checkpoints, or

Store all checkpoints in one central, accessible folder without cluttering the notebook directories.

Has anyone solved this issue in a multi-user JupyterHub / Kubernetes setup? Any advice on how to configure FileContentsManager or use a custom plugin would be appreciated.

Thanks in advance!