-
-
Notifications
You must be signed in to change notification settings - Fork 325
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
Inline Code Complete with Jupyter-AI Not Working #920
Comments
Can you share the logs from Jupyter server (user pod/container if this is running in JupyterHub) and from browser dev tools console from the time when you attempt to get completions? |
Had to reload the entire server. Now it works. |
Inline code completion is a hit or miss. It stopped working again today. I am using JupyterLabs Server in Ubuntu 22.04. Can you please share from where I can get the logs? |
Unless you run JupyterLab Desktop, then see the template here: https://github.com/jupyterlab/jupyterlab-desktop/issues/new?assignees=&labels=bug&projects=&template=bug_report.md |
Are there specific instances where the inline code completion stops firing by design? Like when Kernal is running or if there are multiple notebooks open etc? |
I am having the exact same issue where the inline code completion just does not work after a little bit of time in the notebook. If I reload the browser window, then it continues working again for some period of time. There is nothing in the logs for the server, but if I look in the Javascript console, I get this message when I try to manually invoke the inline completer:
When there is a successful inline completion, I get the following message in the server logs, but nothing when the completer does not work.
Note that reloading the browser window does restore functionality for some period of time. This is on a Jupyterhub on k8s instance, so the jupyter lab server is a container running on a kubernetes cluster, if that makes any difference. |
In these cases, does the chat interface continue working or does it fail too? |
It appears that the chat interface is working fine, and it appears to remember previous context just fine. I'm happy to help troubleshoot this in any way possible. |
More logs from the frontend around the time when it starts happening would be useful. Does it include something like "Will try to reconnect in ..."? For reference, and anyone with ideas, the code for completions websocket handlers is in: jupyter-ai/packages/jupyter-ai/src/completions/handler.ts Lines 12 to 149 in 7531f42
and for chat in: jupyter-ai/packages/jupyter-ai/src/chat_handler.ts Lines 10 to 256 in 7531f42
|
I was trying to get it to fail while I was actively on the jupyter lab page, but I couldn't. It seems (in my limited testing), that it is most likely to fail when I have navigated to another tab and then come back to Jupyter lab. However, given that, the console in Chrome seems to mix all the messages, and I can't figure out how to limit it to just the single page, so I am not 100% sure what is relevant. When I navigate back to Jupyterlab, I see the following messages at the end of the console log:
This is with me confirming that it has failed by manually trying to invoke inline completion. Does this give more context? Again, I don't want to dump the entire log because it seems to have everything from the browsing session in it. Chat continues to work just fine. |
Let's see if #949 helps here. |
Using GPT-4o-mini
The same model works in chat. But for inline code completion I get nothing.
Using the latest version of jupyter-ai and jupyterlabs
Here is a loom video of the problem: https://www.loom.com/share/207ffccdcabd4abe97d81ac83778f15f?sid=89130e09-5294-4d2b-ac9c-24f3309c92d8
The text was updated successfully, but these errors were encountered: