Skip to content
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

Can't process Kernel Binary messages #5746

Open
kjcho-msft opened this issue Jul 5, 2023 · 0 comments
Open

Can't process Kernel Binary messages #5746

kjcho-msft opened this issue Jul 5, 2023 · 0 comments

Comments

@kjcho-msft
Copy link

kjcho-msft commented Jul 5, 2023

Describe the bug
When kernel sends binary messages, nteract can't handle them correctly.

To Reproduce
Steps to reproduce the behavior:
Make sure you have nglview extension installed.

pip install nglview
jupyter-nbextension enable nglview --py --sys-prefix

Run the following:

from IPython.display import display
import nglview
view = nglview.demo()
display(view)

Expected behavior
nglview renders correctly

Observed
When you run the cell above, kernel sends Binary messages
image

and it causes the following error.
SyntaxError: Unexpected token 'o', "[object Blob]" is not valid JSON
at JSON.parse ()
at deserializer (WebSocketSubject.js:10:1)
at socket.onmessage (WebSocketSubject.js:178:1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant