thanks so much, this worked perfectly.
For reference, for my k8s setup I had to put this in singleuser section of values.yaml
singleuser:
extraFiles:
jupyter_server_config.json:
mountPath: /usr/local/etc/jupyter/jupyter_server_config.json
data:
ContentsManager:
allow_hidden: true
FileContentsManager:
always_delete_dir: true