Skip to content

Error when send_message is called without buffers #2

Description

@ilyabo

Hi @davidbrochart!

It turns out that akernel actually solves the issue with the widget we are building. We can use await to call async methods on our widget and the akernel isn't blocked unlike the default one:

image

Do you think there is a chance of these changes being accepted into the default ipykernel?

Our widget calls self.send(msg) without passing buffers and we are hitting this error:
image

It works just fine if we use self.send(msg, buffers=[]) instead, but I think akernel should also handle buffers=None.

Actually, send_message in akernel has a mutable default list argument for buffers which is problematic. It should probably just have a check if buffers to is not None instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions