Hello,
I’m trying to use two different spawners in JupyterHub based on certain conditions, such as the user. For example, I want to use KubeSpawner
for some users and SlurmSpawner
for others. To achieve this, I’ve been trying to modify spawner.__class__
inside the pre_spawn_hook
However, this approach doesn’t seem to work as expected, and I am encountering issues when trying to change the spawner.__class__
.
Is there another way to achieve the goal of using two different spawners based on the user, without directly modifying spawner.__class__
? I would appreciate any advice or insights on how to approach this issue.
Thank you!