Skip to content
This repository was archived by the owner on Feb 27, 2026. It is now read-only.
This repository was archived by the owner on Feb 27, 2026. It is now read-only.

Can't process Kernel Binary messages  #5746

@kjcho-msft

Description

@kjcho-msft

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions