You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 27, 2026. It is now read-only.
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
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)
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.
Run the following:
Expected behavior
nglview renders correctly
Observed

When you run the cell above, kernel sends Binary messages
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)