Hello,
Then below pre_spawner_hook doesn’t work. Would anyone have any idea?
hub:
extraConfig:
pre_spawn_hook: |
async def pre_spawn_hook(spawner):
user_options = spawner.user_options
if user_options['profile'] == 'something':
spawner.init_containers = [{
"name":"xxxx",
"image": "busybox",
"command": ["sh","-c","mkdir -p /etc/jupyter/xxx"]
}]
It seems like the busybox is pulled but the directory is not created.
best