-
Notifications
You must be signed in to change notification settings - Fork 131
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
jupyter-kernel-gateway hanging/slow #376
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Sorry about the early post - accidentally hit enter too early |
Hi @carlskii - this repo is "lightly maintained" so bear with us. Would you be able to restart your JKG server with |
Sure here you go:
Seems to back to |
Sigh. The logging is not using a helpful format string that would contain timestamps. Also, this output is not including the startup of JKG - where the kernel is actually started IIUC - although, without timestamps, this is essentially useless. That said, the fact there are 13 seconds(!) between trace statements for those that DO provide timestamps is alarming. |
Here's the entire startup output from JKG:
|
It seems that the stream is not being sent back to the client. If I terminate the client, that corresponds with this:
|
Thanks for the update.
That's interesting. I'll try looking into this a bit but can't make any guarantees of a timely response. |
Thanks - bit of a bummer really. Was hoping to use this for a project and keep everything In a Jupyter context. |
FWIW - adding this option to the command line will produce better log output:
I can reproduce this as well. I'm a little suspicious that using the older notebook (non-async) kernel manager with more recent (async-oriented) packages might be problematic here. JKG should really be updated to use classes from In fact, if I downgrade
and the client shows...
If I run the same
So |
Hi @carlskii - in looking at bringing this package up to date, I found that using I uninstall
So, for now, please downgrade your This package is woefully out of date and making it "current" will take some effort - although nothing unlike we've had to do in other parts of the Jupyter ecosystem - so there should be precedent for anything we need to do. |
Thanks so much for your help. Wondering if I could just start a Jupyter Lab server and reverse engineer the calls that are used in that rather than using JKG? Or maybe the downgrade and wait for the updated JKG is the better way to go. |
Not sure exactly what you want to do, but I think the |
Yeah I'll stick with JKG for now - I tried |
Seems to be working pretty well with the older client. Silly quick question: The web socket demo (nodeJS) is returning my data like this:
Do you know what encoding is being used - can't seem to decode it. Seems that the python demo deals with the decoding. i.e. looks like this:
|
@carlskii - I've created JKG 2.5.2 that includes the cap to jupyter_client and the log formatting changes. As a result, I'm going to close this issue as fixed by #378 as 2.5.2 should be minimally viable for now. We'll try to circle back to bring this package up to date at a later time when we address #377. Sorry for the inconvenience. |
Excellent thanks. |
Hi @carlskii - I just noticed your previous question when submitting my closing comment. I'm sorry, I'm purely a back-end dev and don't know how to answer your question. |
Description
I've followed this documentation exactly. https://jupyter-kernel-gateway.readthedocs.io/en/latest/getting-started.html#install and have worked through the first example which basically proves the basic functionality.
Reproduce
When I run the
curl http://127.0.0.1:10100/hello/world
command the server shows that a connection has been received:However the response never gets returned, it just hangs indefinitely. Here are my versions:
Selected Jupyter core packages...
IPython : 8.9.0
ipykernel : 6.21.1
ipywidgets : not installed
jupyter_client : 8.0.2
jupyter_core : 5.2.0
jupyter_server : 2.2.1
jupyterlab : 3.6.0rc0
nbclient : 0.7.2
nbconvert : 7.2.9
nbformat : 5.7.3
notebook : 6.5.2
qtconsole : not installed
traitlets : 5.9.0
jupyter kernelgateway: 2.5.1
I'm running on an M! Mac but I have the same issue on Ubuntu 20.10.
I also tried the basic node client from here: (https://github.com/jupyter/kernel_gateway_demos/blob/master/node_client_example/src/client.js)
This sort of works, but it's extremely slow - a simple `print("Hello World")' takes around 30-40 seconds to resopond.
The text was updated successfully, but these errors were encountered: