-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to import batchspawner.api in jupyterhub_config.py #126
Comments
+1 on this, thanks so much, been banging my head against a wall troubleshooting this. If you don't do this. You get a 404 from the singleserver auth call back to the hub. |
I have made some progress on this issue.
However, when it is configurer through wrapspawner, the import of batchspawner.api come after jupyterhub app is initialized, and it is too late to add content do Now that I know what is the issue, I am going to try to find a solution... |
After a few hours of research, it appears that the only way to add a custom handler to JupyterHub except for what I already did in So instead of
We will need to add this line to the documentation. |
Hi,
I've just got my jupyterhub + profilespawner + batchspawner setup working on a typical academic compute cluster (slurm). Thanks for all your work on this -- it's impressively slick!
I found that I had to add an "import batchspawner.api" to my jupyterhub_config.py file, otherwise the batchspawner's API endpoint didn't get registered. Unless I have done something wrong, it would be worth adding a one-liner to the README file to this effect. (I'll send a PR if you tell me that I'm not wrong.)
Specifically, my jupyterhub_config looks like this, and without the import, the API endpoint gets called but not responded-to!
Thanks!
The text was updated successfully, but these errors were encountered: