-
Notifications
You must be signed in to change notification settings - Fork 222
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
local notebook execution connected to enterprise gateway in kubernetes through port-forward #945
Comments
Oh I forgot to mention that the kernel is running and is returned from /api/kernels with the name |
Hi @teaglebuilt - thanks for opening the issue.
This information is coming from an EG server in which the When you run |
@kevin-bates , no i am not. I am port-forwarding using kubectl to have access to EG running in kubernetes namespace running on a local cluster. aka Docker Desktop. The python script with nbclient is not in kubernetes, but the lab is also not in kubernetes and is working with the EG fine through the port-forwarded connection with the command below
So with jupyterlab running locally and executing cells in a notebook that is assigned to a remote kernel, i would now like to test executing that notebook or cell outside of the notebook. Thats where this error occurs. Could it be that RemoteKernelManager could not work this way with nbclient? Before going further down a rabbit hole, i thought i would ask first to make sure I am not missing any basics. |
@kevin-bates also, this is not intended to always run outside of kubernetes. I am just learning and exploring |
Why is that? If the connection is accesible through the notebook, why not the client? Also, enterprise gateway did not spin up a pod as a remote kernel, I plan to configure it that way, but I think it started the kernel with a local process. I did not see a pod spawned on activation of the kernel, so iis it the remotekernelmanager or the nb client? Also, I really like this project. I will launch this in a pod to test nbclient from inside the cluster as well, but I also would like to target where the issue is on why nbclient cannot read through the proxied connection to the kernel but the notebook can. |
The design of EG is that EG essentially resides within the resource-managed cluster. For Kubernetes, that means it runs as a k8s service and spawns pods for each kernel.
If EG is configured within a Kubernetes cluster it can spin up kernels within its pod, but that is not the desired intention. Where/how a kernel is launched is a function of the Please feel free to ask questions, they are greatly appreciated, but it would be best to keep EG-relevant discussions here, in a single location until there's a need to span into other repositories due to the complexity of this topic and wide-range of jupyter applications - most all of which only know how to deal with local kernel management. Thanks. |
I'm closing this issue, please re-open if you feel your question/use-case was not adequately addressed. Thanks. |
Description
so just using this example from the documentation, to execute a notebook that is running locally but connected succesfully to the enterprise gateway which is running on kubernetes locally.
By simply port forwarding, my notebook has access to the gateway, yet I am not able to execute the notebook through the nbclient, and it really just does not find the kernel.
I did notice this conversation Kubernetes Ingress, but i have a successful connection to use enterprise gateway, is there some configuration that i am missing for the RemoteKernelManager to be able to do this?
Environment
virtualenv
version
pip
Screenshots / Logs
*Snippet
Traceback
The text was updated successfully, but these errors were encountered: