diff --git a/panel/io/ipywidget.py b/panel/io/ipywidget.py index 6d9f22f74c..f3121cee3c 100644 --- a/panel/io/ipywidget.py +++ b/panel/io/ipywidget.py @@ -28,7 +28,7 @@ def send(self, stream, msg_type, content=None, parent=None, ident=None, buffers= offsets = [start] for buffer in buffers[:-1]: - start += len(buffer) + start += memoryview(buffer).nbytes offsets.append(start) u32 = lambda n: n.to_bytes(4, "big")