-
Notifications
You must be signed in to change notification settings - Fork 31
JupyterHub gets wrong class in MainKernelSpecHandler.get() #32
Comments
Hello. You don't mention the error that is actually produced, but I assume its the classic ...
This occurs when the class mappings have not been established, yet the nb2kg extension is installed and enabled. This implies your single-user configuration is either not getting detected or is incorrect. Looking at @lresende's blog post your Notebook configuration is likely missing the 3 class mappings. If you're running in a Kubernetes environment, you can address this by using the elyra/nb2kg image - which is built directly on the jupyterhub/k8s-singleuser-sample image. If you're not running in Kubernetes, then you need to add the class mappings to the per-user notebook configuration used by JupyterHub. FYI - these configuration issues are dramatically decreased in the 6.0 release of Notebook where NB2KG is actually embedded in Notebook and all you'll need is the one argument |
@kevin-bates yes, exactly this error. And seems notebook 6.0 release does not exist yet? Currently I suppose what we need to do to connect the gateway is
So after 6.0 release we just need to keep step 1 and 2, for step 3, we just need to add Am I right? Also want to ask when would 6.0 release? |
Yes - you're correct regarding the configuration steps to get Notebook/Lab using Enterprise Gateway. Please note that we provide pre-built kernelspecs for our supported configurations. You can find these as artifacts associated with our releases. Regarding 6.0, my guess is that it's still a ways away as there are a good number of PRs that are probably destined for 6.0 rather than say, 5.8.0. As a result, you'll need to go with the current configuration steps/documentation for the time being. |
seems its configuration problem, the jupyterhub can not directly read the notebook configuration. I guess it should take |
I believe you're correct. @lresende has some ansible scripts for setting up Hub with EG in Kubernetes. In there he adds an If you're also configuring for Kubernetes, ignore the setting of |
@kevin-bates finally we take it as To sum up, seems the most important steps are By the way jupyterhub spawns the same notebook with jupyter notebook if we takes the We will keep our project going and try to keep up with the simplest configuration after notebook 6.0 release |
Also |
nb2kg/nb2kg/handlers.py
Line 341 in 61863c8
if we use the same configuration (this config works in jupyter notebook) to start jupyterhub
we found this code
ksm
isKernelSpecManager
, butksm.list_kernel_specs()
this method belongs to classRemoteKernelSpecManager
, thus would raise an errorHowever this error does not occur when we use it in jupyter notebook
Any idea?
The text was updated successfully, but these errors were encountered: