-
Notifications
You must be signed in to change notification settings - Fork 106
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 reports Kernel message validation error #460
Comments
Actually it looks like a simpler example already has problems. Using:
And the attached notebook, I get into a seemingly failed state by just re-evaluating the last cell a bunch of times. |
Hi! does it work with other versions of kernel (previous one)? |
Thanks for your reply. I've tried:
With similar results on the provided example notebook. In the below screenshot you can see the asterisk for the cell being evaluated, but the kernel status indicator showing 'idle'. |
A test with Jupyter 5.7.2 makes it seem harder to reproduce the failure condition; but because it occurs randomly it is hard to tell. I'm not sure how likely it is that this is the Kotlin kernel's problem. |
It is the error inside the browser, right? If yes, could you please try to extract the JSON that cannot be parsed (inside a debugger?) |
And could you please copy the contents of the notebook the screenshot of which you made |
Apologies for the delay; I tried to reply by Github e-mail, but apparently it did not work.
I had attached that notebook in an above comment as I haven't been able yet to pinpoint the data that produces the browser console error, but I did now come across errors on the server console that look similar:
I'll see if I can get the malformed JSON out of the browser debugger. |
First of all: great work on this. I'm impressed by how well this all works and I'm happy to see Kotlin compete with Python's dominance in data science.
I have set up Jupyter integration for a (closed source) Kotlin library. It generally works well, but I'm seeing some issues where sometimes the kernel seems to stop responding, or possibly delivering malformed responses. It always goes wrong on the re-evaluation of a cell whose response is HTML. Restarting the kernel and re-evaluating everything yields correct results.
On re-evaluation of such cells, I get console errors such as:
The Jupyter server log shows nothing irregular in my eyes. Looks to me like the proper response is composed:
Perhaps I'm also barking up the wrong tree here: I have no strong indication that this is coming from the Kotlin kernel, but I'm suspicious because first evaluation goes correct and because the error seems to surface on some re-evaluations, but not every.
The errors happen both in Jupyterlab frontend and the classic notebooks.
I'd be happy to supply more information if you can tell me how to obtain it.
The text was updated successfully, but these errors were encountered: